summary refs log tree commit diff stats
path: root/hw/pci-bridge/pci_expander_bridge.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-06-24 13:35:17 +0200
committerMichael S. Tsirkin <mst@redhat.com>2016-07-04 14:50:00 +0300
commit5ec7d09818881b87052c41259e5cb781683977d2 (patch)
tree06cac78b541411546049d8a0848945a5eb77a869 /hw/pci-bridge/pci_expander_bridge.c
parente2c8f9e44e07d8210049abaa6042ec3c956f1dd4 (diff)
downloadfocaccia-qemu-5ec7d09818881b87052c41259e5cb781683977d2.tar.gz
focaccia-qemu-5ec7d09818881b87052c41259e5cb781683977d2.zip
xen: fix ram init regression
Commit "8156d48 pc: allow raising low memory via max-ram-below-4g
option" causes a regression on xen, because it uses a different
memory split.

This patch initializes max-ram-below-4g to zero and leaves the
initialization to the memory initialization functions.  That way
they can pick different default values (max-ram-below-4g is zero
still) or use the user supplied value (max-ram-below-4g is non-zero).

Also skip the whole ram split calculation on Xen.  xen_ram_init()
does its own split calculation anyway so it is superfluous, also
this way xen_ram_init can actually see whenever max-ram-below-4g
is zero or not.

Reported-by: Anthony PERARD <anthony.perard@citrix.com>
Tested-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci-bridge/pci_expander_bridge.c')
0 files changed, 0 insertions, 0 deletions