summary refs log tree commit diff stats
path: root/hw/intc
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2023-01-16 18:46:05 +0100
committerThomas Huth <thuth@redhat.com>2023-01-18 12:27:21 +0100
commit75d7150c636569f6687f7e70a33be893be43eb5f (patch)
treeea1b398243bfa81a1f479afd25e99c30902ebb93 /hw/intc
parent66ef41d29e8a49187b294c2dd3ce083edb2ce606 (diff)
downloadfocaccia-qemu-75d7150c636569f6687f7e70a33be893be43eb5f.tar.gz
focaccia-qemu-75d7150c636569f6687f7e70a33be893be43eb5f.zip
s390x/pv: Implement a CGS check helper
When a protected VM is started with the maximum number of CPUs (248),
the service call providing information on the CPUs requires more
buffer space than allocated and QEMU disgracefully aborts :

    LOADPARM=[........]
    Using virtio-blk.
    Using SCSI scheme.
    ...................................................................................
    qemu-system-s390x: KVM_S390_MEM_OP failed: Argument list too long

When protected virtualization is initialized, compute the maximum
number of vCPUs supported by the machine and return useful information
to the user before the machine starts in case of error.

Suggested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20230116174607.2459498-2-clg@kaod.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/intc')
0 files changed, 0 insertions, 0 deletions