From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNJAw-0002sl-39 for qemu-devel@nongnu.org; Fri, 29 Aug 2014 06:13:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNJAd-0001ka-9E for qemu-devel@nongnu.org; Fri, 29 Aug 2014 06:12:58 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:50929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNJAc-0001hm-KQ for qemu-devel@nongnu.org; Fri, 29 Aug 2014 06:12:39 -0400 Received: from /spool/local by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 29 Aug 2014 20:12:36 +1000 From: Alexey Kardashevskiy Date: Fri, 29 Aug 2014 20:12:18 +1000 Message-Id: <1409307142-2600-15-git-send-email-aik@ozlabs.ru> In-Reply-To: <1409307142-2600-1-git-send-email-aik@ozlabs.ru> References: <1409307142-2600-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [RFC PATCH v3 14/18] spapr_pci_vfio: Call spapr_pci::reset on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Alex Williamson , qemu-ppc@nongnu.org, Alexander Graf , David Gibson 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 --- 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