mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-15 08:59:30 -07:00
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>
This commit is contained in:
parent
ca8336f385
commit
95bee274fd
2 changed files with 67 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue