]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/acpi-build.c
acpi: Fix PCI hole handling on build_srat()
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 9 Jan 2014 19:12:43 +0000 (17:12 -0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 26 Jan 2014 11:11:45 +0000 (13:11 +0200)
commit4c8a949b2416158a311abefc09a20153aa107e93
tree55962c1399784493d7fbb6f49ce37e443809ce84
parentf30ee8a9682be4abfcb05c6389894f8cfc35c3f0
acpi: Fix PCI hole handling on build_srat()

The original SeaBIOS code used the RamSize variable, that was used by
SeaBIOS for the size of RAM below 4GB, not for all RAM. When copied to
QEMU, the code was changed to use the full RAM size, and this broke the
build_srat() code that handles the PCI hole.

Change build_srat() to use ram_size_below_4g instead of ram_size, to
restore the original behavior from SeaBIOS.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c