From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIEVQ-0001HX-41 for qemu-devel@nongnu.org; Fri, 15 Aug 2014 06:13:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIEV8-0001CG-RN for qemu-devel@nongnu.org; Fri, 15 Aug 2014 06:13:08 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:38535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIEV8-00019k-43 for qemu-devel@nongnu.org; Fri, 15 Aug 2014 06:12:50 -0400 Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Aug 2014 20:12:46 +1000 From: Alexey Kardashevskiy Date: Fri, 15 Aug 2014 20:12:31 +1000 Message-Id: <1408097555-28126-10-git-send-email-aik@ozlabs.ru> In-Reply-To: <1408097555-28126-1-git-send-email-aik@ozlabs.ru> References: <1408097555-28126-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [RFC PATCH v2 09/13] 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 , Alexander Graf , Gavin Shan , Alex Williamson , qemu-ppc@nongnu.org, David Gibson This enables use of the parent class rest() callback in VFIO. Signed-off-by: Alexey Kardashevskiy --- I honestly do not remember why I did not do this when I added VFIO at the first place... --- 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 51b4314..11b4272 100644 --- a/hw/ppc/spapr_pci_vfio.c +++ b/hw/ppc/spapr_pci_vfio.c @@ -73,18 +73,12 @@ static void spapr_phb_vfio_finish_realize(sPAPRPHBState *sphb, Error **errp) object_unref(OBJECT(tcet)); } -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