diff options
| author | Igor Mammedov | 2014-06-02 15:25:12 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-06-19 15:41:48 +0200 |
| commit | 95bee274fd1d22dc6d35e52987f8b5d29fe754dd (patch) | |
| tree | a55512e0acadb1f17cc072cf7f5659da94c97260 /include/hw | |
| parent | pc: exit QEMU if compat machine doesn't support memory hotlpug (diff) | |
| download | qemu-95bee274fd1d22dc6d35e52987f8b5d29fe754dd.tar.gz qemu-95bee274fd1d22dc6d35e52987f8b5d29fe754dd.tar.xz qemu-95bee274fd1d22dc6d35e52987f8b5d29fe754dd.zip | |
pc: add memory hotplug handler to PC_MACHINE
that will perform mapping of PC_DIMM device into guest's RAM address space
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/i386/pc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 501d9a0773..c3ed8586df 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -31,9 +31,17 @@ struct PCMachineState { MemoryRegion hotplug_memory; }; +/** + * PCMachineClass: + * @get_hotplug_handler: pointer to parent class callback @get_hotplug_handler + */ struct PCMachineClass { /*< private >*/ MachineClass parent_class; + + /*< public >*/ + HotplugHandler *(*get_hotplug_handler)(MachineState *machine, + DeviceState *dev); }; typedef struct PCMachineState PCMachineState; |
