qemu/hw/s390x
Christian Borntraeger dcddc75e47 s390x: Limit s390-ccw machines to 248 CPUs
The sclp scp read info call fills in a buffer with information about the
system. With more than 248 CPUs we overflow the 4k buffer of the SCCB,
leading to random data corruption. Basically ALL guest operating systems
call scp read info, so let's limit the machines to 248 CPUs to make it
obvious that >=249 does not work.

As KVM also limits itself to 248 and TCG on s390 does not support
SMP, this should cause no regression for any user as no VMs with more
than 248 VCPUs were ever possible.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2016-06-14 14:00:05 +02:00
..
Makefile.objs s390x: remove s390-virtio devices 2016-01-13 10:53:42 +01:00
css.c s390x/css: introduce property type for device ids 2016-06-14 13:34:50 +02:00
event-facility.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
ipl.c s390: remove misleading comment 2016-05-18 15:04:26 +03:00
ipl.h s390x/ipl: Add ssid field to IplParameterBlock 2016-05-17 15:50:29 +02:00
s390-pci-bus.c s390x/pci: add length checking for pci sclp handlers 2016-05-17 15:50:29 +02:00
s390-pci-bus.h s390x/pci: remove whitespace 2016-05-17 15:50:29 +02:00
s390-pci-inst.c s390x/pci: enhance mpcifc_service_call 2016-05-17 15:50:29 +02:00
s390-pci-inst.h s390x/pci: enhance mpcifc_service_call 2016-05-17 15:50:29 +02:00
s390-skeys-kvm.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
s390-skeys.c s390: use FILE instead of QEMUFile for creating text file 2016-05-26 11:31:05 +05:30
s390-virtio-ccw.c s390x: Limit s390-ccw machines to 248 CPUs 2016-06-14 14:00:05 +02:00
s390-virtio-hcall.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
s390-virtio.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
s390-virtio.h s390x/cpu: Cleanup init in preparation for hotplug 2016-03-10 10:37:15 +01:00
sclp.c s390x/pci: separate s390_sclp_configure function 2016-05-17 15:50:29 +02:00
sclpcpu.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
sclpquiesce.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
virtio-ccw.c virtio-ccw: Provide traces for indicator changes 2016-06-14 14:00:05 +02:00
virtio-ccw.h s390x/css: introduce property type for device ids 2016-06-14 13:34:50 +02:00