This enables use of the parent class rest() callback in VFIO. This effectively enables reset of PHBs TCE IOMMU object(s) which are not bus devices and do not get reset by qemu_devices_reset() called from a machine reset callback.
Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru> --- hw/ppc/spapr_pci_vfio.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hw/ppc/spapr_pci_vfio.c b/hw/ppc/spapr_pci_vfio.c index efed23f..e53880e 100644 --- a/hw/ppc/spapr_pci_vfio.c +++ b/hw/ppc/spapr_pci_vfio.c @@ -75,18 +75,12 @@ static void spapr_phb_vfio_finish_realize(sPAPRPHBState *sphb, Error **errp) sphb->windows_num = 1; } -static void spapr_phb_vfio_reset(DeviceState *qdev) -{ - /* Do nothing */ -} - static void spapr_phb_vfio_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); sPAPRPHBClass *spc = SPAPR_PCI_HOST_BRIDGE_CLASS(klass); dc->props = spapr_phb_vfio_properties; - dc->reset = spapr_phb_vfio_reset; spc->finish_realize = spapr_phb_vfio_finish_realize; } -- 2.0.0