]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/i386/pc.h
pc,pc-dimm: Extract hotplug related fields in PCMachineState to a structure
[mirror_qemu.git] / include / hw / i386 / pc.h
index 86c565147cae31bfc094d248c547b5e1996e6aac..328c8f72e0cf4f52c2fd5cef9348f7b152b41163 100644 (file)
 #include "hw/pci/pci.h"
 #include "hw/boards.h"
 #include "hw/compat.h"
+#include "hw/mem/pc-dimm.h"
 
 #define HPET_INTCAP "hpet-intcap"
 
 /**
  * PCMachineState:
- * @hotplug_memory_base: address in guest RAM address space where hotplug memory
- * address space begins.
- * @hotplug_memory: hotplug memory addess space container
  * @acpi_dev: link to ACPI PM device that performs ACPI hotplug handling
  * @enforce_aligned_dimm: check that DIMM's address/size is aligned by
  *                        backend's alignment value if provided
@@ -32,8 +30,7 @@ struct PCMachineState {
     MachineState parent_obj;
 
     /* <public> */
-    ram_addr_t hotplug_memory_base;
-    MemoryRegion hotplug_memory;
+    MemoryHotplugState hotplug_memory;
 
     HotplugHandler *acpi_dev;
     ISADevice *rtc;