qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Cao jin <caoj.fnst@cn.fujitsu.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] Convert to realize()
Date: Sun, 10 Jan 2016 18:14:05 +0800	[thread overview]
Message-ID: <56922EED.90102@cn.fujitsu.com> (raw)
In-Reply-To: <87si2zex1v.fsf@blackfin.pond.sub.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 <caoj.fnst@cn.fujitsu.com> writes:
>
>> for educational PCI device
>>
>> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
>> ---
>>   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 <armbru@redhat.com>
>
>
> .
>

-- 
Yours Sincerely,

Cao jin




  reply	other threads:[~2016-01-10 10:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1450428935-18329-1-git-send-email-caoj.fnst@cn.fujitsu.com>
2015-12-18 12:55 ` [Qemu-trivial] [Qemu-devel] [PATCH] Convert to realize() Markus Armbruster
2016-01-10 10:14   ` Cao jin [this message]
2016-01-10 18:04 ` [Qemu-trivial] " Michael Tokarev
2016-01-11  1:18   ` Cao jin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56922EED.90102@cn.fujitsu.com \
    --to=caoj.fnst@cn.fujitsu.com \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).