mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qom: move properties from qdev to object
This is mostly code movement although not entirely. This makes properties part of the Object base class which means that we can now start using Object in a meaningful way outside of qdev. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0beb494207
commit
57c9fafe0f
14 changed files with 801 additions and 817 deletions
1
hw/pci.c
1
hw/pci.c
|
@ -1517,6 +1517,7 @@ static int pci_unplug_device(DeviceState *qdev)
|
|||
qerror_report(QERR_DEVICE_NO_HOTPLUG, object_get_typename(OBJECT(dev)));
|
||||
return -1;
|
||||
}
|
||||
object_unparent(OBJECT(dev));
|
||||
return dev->bus->hotplug(dev->bus->hotplug_qdev, dev,
|
||||
PCI_HOTPLUG_DISABLED);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue