qemu-e2k/hw/s390x
Christian Borntraeger 408e5ace51 s390x/sclp: fix maxram calculation
We clamp down ram_size to match the sclp increment size. We do
not do the same for maxram_size, which means for large guests
with some sizes (e.g. -m 50000) maxram_size differs from ram_size.
This can break other code (e.g. CMMA migration) which uses maxram_size
to calculate the number of pages and then throws some errors.

Fixes: 82fab5c5b9 ("s390x/sclp: remove memory hotplug support")
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
CC: qemu-stable@nongnu.org
CC: David Hildenbrand <david@redhat.com>
Message-Id: <1532959766-53343-1-git-send-email-borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2018-07-30 17:41:52 +02:00
..
3270-ccw.c
ccw-device.c
ccw-device.h
css-bridge.c
css.c vfio-ccw: remove orb.c64 (64 bit data addresses) check 2018-06-18 10:50:32 +02:00
event-facility.c
ipl.c loader: Check access size when calling rom_ptr() to avoid crashes 2018-07-02 10:37:38 +02:00
ipl.h
Makefile.objs s390x/tod: factor out TOD into separate device 2018-07-02 10:37:38 +02:00
s390-ccw.c
s390-pci-bus.c iommu: Add IOMMU index argument to translate method 2018-06-15 15:23:34 +01:00
s390-pci-bus.h
s390-pci-inst.c iommu: Add IOMMU index argument to notifier APIs 2018-06-15 15:23:34 +01:00
s390-pci-inst.h
s390-pci-stub.c
s390-skeys-kvm.c
s390-skeys.c hw/s390x: Use the IEC binary prefix definitions 2018-07-02 15:41:14 +02:00
s390-stattrib-kvm.c s390x/storage attributes: fix CMMA_BLOCK_SIZE usage 2018-07-11 14:36:54 +02:00
s390-stattrib.c s390x/storage attributes: fix CMMA_BLOCK_SIZE usage 2018-07-11 14:36:54 +02:00
s390-virtio-ccw.c s390x/tod: factor out TOD into separate device 2018-07-02 10:37:38 +02:00
s390-virtio-hcall.c
s390-virtio-hcall.h
sclp.c s390x/sclp: fix maxram calculation 2018-07-30 17:41:52 +02:00
sclpcpu.c
sclpquiesce.c
tod-kvm.c s390x/tod: factor out TOD into separate device 2018-07-02 10:37:38 +02:00
tod-qemu.c s390x/tcg: properly implement the TOD 2018-07-02 10:37:38 +02:00
tod.c s390x/tcg: properly implement the TOD 2018-07-02 10:37:38 +02:00
trace-events
virtio-ccw.c error: Remove NULL checks on error_propagate() calls 2018-07-11 14:36:54 +02:00
virtio-ccw.h