s390x: fix memory detection for guests > 64GB
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 12 May 2011 08:50:44 +0000 (10:50 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 20 May 2011 15:35:13 +0000 (17:35 +0200)
commit989470f3e6f1fa05f0edd4cde6a4b33768238102
tree449174d7566f3812befecbbb33c63aeec9419521
parentb2b2a0ea48e80ef60339e2725b70d671580bb382
s390x: fix memory detection for guests > 64GB

the s390 memory detection has a 16bit field that specifies the amount of
increments. This patch adopts the memory size to always fit into that
scheme. This also fixes virtio detection for these guests, since the
descriptor page is located after the main memory.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/s390-virtio.c
target-s390x/op_helper.c