From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tbs6M-0007Oy-8C for qemu-devel@nongnu.org; Fri, 23 Nov 2012 07:11:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tbs6G-0004z2-F3 for qemu-devel@nongnu.org; Fri, 23 Nov 2012 07:11:22 -0500 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:49651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tbs6G-0004yx-61 for qemu-devel@nongnu.org; Fri, 23 Nov 2012 07:11:16 -0500 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 23 Nov 2012 12:11:15 -0000 Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qANCB5lT31129826 for ; Fri, 23 Nov 2012 12:11:05 GMT Received: from d06av11.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qANCBBtI005363 for ; Fri, 23 Nov 2012 05:11:12 -0700 Date: Fri, 23 Nov 2012 13:11:08 +0100 From: Cornelia Huck Message-ID: <20121123131108.156dc028@BR9GNB5Z> In-Reply-To: <1353595852-30776-3-git-send-email-fred.konrad@greensocs.com> References: <1353595852-30776-1-git-send-email-fred.konrad@greensocs.com> <1353595852-30776-3-git-send-email-fred.konrad@greensocs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH v2 2/3] virtio-pci : add a virtio-bus interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fred.konrad@greensocs.com Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, e.voevodin@samsung.com, mark.burton@greensocs.com, qemu-devel@nongnu.org, stefanha@redhat.com, afaerber@suse.de On Thu, 22 Nov 2012 15:50:51 +0100 fred.konrad@greensocs.com wrote: > +static void virtiopci_class_init(ObjectClass *oc, void *data) > +{ > + DeviceClass *dc = DEVICE_CLASS(oc); > + PCIDeviceClass *pc = PCI_DEVICE_CLASS(oc); > + > + pc->init = virtiopci_qdev_init; > + pc->exit = virtio_exit_pci; Doesn't the exit function need to be symmetric to the init function? > + pc->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET; > + pc->revision = VIRTIO_PCI_ABI_VERSION; > + pc->class_id = PCI_CLASS_OTHERS; > + /* TODO : Add the correct device information below */ > + /* pc->exit = > + * pc->device_id = > + * pc->subsystem_vendor_id = > + * pc->subsystem_id = > + * dc->reset = > + * dc->vmsd = > + */ > + dc->props = virtiopci_properties; > + dc->desc = "virtio-pci transport."; > +}