diff options
| author | Bharata B Rao <bharata@linux.vnet.ibm.com> | 2015-06-29 13:50:22 +0530 |
|---|---|---|
| committer | Eduardo Habkost <ehabkost@redhat.com> | 2015-07-03 17:47:58 -0300 |
| commit | a7d69ff10b085ba6f8236600829532984cdea714 (patch) | |
| tree | 6083a0b55241be8f089effa410ea0824439d99c2 /include/hw/i386/pc.h | |
| parent | 35360642d043c2a5366e8a04a10e5545e7353bd5 (diff) | |
| download | focaccia-qemu-a7d69ff10b085ba6f8236600829532984cdea714.tar.gz focaccia-qemu-a7d69ff10b085ba6f8236600829532984cdea714.zip | |
pc,pc-dimm: Extract hotplug related fields in PCMachineState to a structure
Move hotplug_memory_base and hotplug_memory fields of PCMachineState into a separate structure so that the same can be made use of from other architectures supporing memory hotplug. Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/i386/pc.h')
| -rw-r--r-- | include/hw/i386/pc.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 86c565147c..328c8f72e0 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -15,14 +15,12 @@ #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; |