summary refs log tree commit diff stats
path: root/include/hw/i386
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2014-01-09 17:12:42 -0200
committerMichael S. Tsirkin <mst@redhat.com>2014-01-26 13:11:45 +0200
commitf30ee8a9682be4abfcb05c6389894f8cfc35c3f0 (patch)
tree9a766eede0ae25fe39f6fd6dd6eb19201f4756e9 /include/hw/i386
parent306077640a652e090779498aadbeb0c605feaacd (diff)
downloadfocaccia-qemu-f30ee8a9682be4abfcb05c6389894f8cfc35c3f0.tar.gz
focaccia-qemu-f30ee8a9682be4abfcb05c6389894f8cfc35c3f0.zip
pc: Save size of RAM below 4GB
The ram_below_4g value will be useful in other places, such as the ACPI
table code, and other code that currently requires passing
below_4g_mem_size around in function arguments.

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>
Diffstat (limited to 'include/hw/i386')
-rw-r--r--include/hw/i386/pc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 92eabebb2c..3e1e81b27b 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -35,7 +35,7 @@ typedef struct PcPciInfo {
 struct PcGuestInfo {
     bool has_pci_info;
     bool isapc_ram_fw;
-    hwaddr ram_size;
+    hwaddr ram_size, ram_size_below_4g;
     unsigned apic_id_limit;
     bool apic_xrupt_override;
     uint64_t numa_nodes;