From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aICxx-0004rU-Up for qemu-devel@nongnu.org; Sun, 10 Jan 2016 05:11:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aICxu-0006q8-Or for qemu-devel@nongnu.org; Sun, 10 Jan 2016 05:11:17 -0500 References: <1450428935-18329-1-git-send-email-caoj.fnst@cn.fujitsu.com> <87si2zex1v.fsf@blackfin.pond.sub.org> From: Cao jin Message-ID: <56922EED.90102@cn.fujitsu.com> Date: Sun, 10 Jan 2016 18:14:05 +0800 MIME-Version: 1.0 In-Reply-To: <87si2zex1v.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] Convert to realize() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Hi mjt, seems the patch is still pending in qemu-trivial, and besides, I have several others also pending in there,may I know how are they going? On 12/18/2015 08:55 PM, Markus Armbruster wrote: > Copying qemu-trivial. > > Cao jin writes: > >> for educational PCI device >> >> Signed-off-by: Cao jin >> --- >> hw/misc/edu.c | 6 ++---- >> 1 file changed, 2 insertions(+), 4 deletions(-) >> >> diff --git a/hw/misc/edu.c b/hw/misc/edu.c >> index fe50b42..43d5b18 100644 >> --- a/hw/misc/edu.c >> +++ b/hw/misc/edu.c >> @@ -327,7 +327,7 @@ static void *edu_fact_thread(void *opaque) >> return NULL; >> } >> >> -static int pci_edu_init(PCIDevice *pdev) >> +static void pci_edu_realize(PCIDevice *pdev, Error **errp) >> { >> EduState *edu = DO_UPCAST(EduState, pdev, pdev); >> uint8_t *pci_conf = pdev->config; >> @@ -344,8 +344,6 @@ static int pci_edu_init(PCIDevice *pdev) >> memory_region_init_io(&edu->mmio, OBJECT(edu), &edu_mmio_ops, edu, >> "edu-mmio", 1 << 20); >> pci_register_bar(pdev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &edu->mmio); >> - >> - return 0; >> } >> >> static void pci_edu_uninit(PCIDevice *pdev) >> @@ -385,7 +383,7 @@ static void edu_class_init(ObjectClass *class, void *data) >> { >> PCIDeviceClass *k = PCI_DEVICE_CLASS(class); >> >> - k->init = pci_edu_init; >> + k->realize = pci_edu_realize; >> k->exit = pci_edu_uninit; >> k->vendor_id = PCI_VENDOR_ID_QEMU; >> k->device_id = 0x11e8; > > Reviewed-by: Markus Armbruster > > > . > -- Yours Sincerely, Cao jin