All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Convert to realize()
@ 2015-12-18  8:55 Cao jin
  2015-12-18 12:55 ` Markus Armbruster
  2016-01-10 18:04 ` Michael Tokarev
  0 siblings, 2 replies; 5+ messages in thread
From: Cao jin @ 2015-12-18  8:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: jslaby, armbru

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;
-- 
2.1.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] Convert to realize()
  2015-12-18  8:55 [Qemu-devel] [PATCH] Convert to realize() Cao jin
@ 2015-12-18 12:55 ` Markus Armbruster
  2016-01-10 10:14   ` Cao jin
  2016-01-10 18:04 ` Michael Tokarev
  1 sibling, 1 reply; 5+ messages in thread
From: Markus Armbruster @ 2015-12-18 12:55 UTC (permalink / raw)
  To: Cao jin; +Cc: qemu-trivial, jslaby, qemu-devel

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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] Convert to realize()
  2015-12-18 12:55 ` Markus Armbruster
@ 2016-01-10 10:14   ` Cao jin
  0 siblings, 0 replies; 5+ messages in thread
From: Cao jin @ 2016-01-10 10:14 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-trivial, qemu-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] Convert to realize()
  2015-12-18  8:55 [Qemu-devel] [PATCH] Convert to realize() Cao jin
  2015-12-18 12:55 ` Markus Armbruster
@ 2016-01-10 18:04 ` Michael Tokarev
  2016-01-11  1:18   ` Cao jin
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Tokarev @ 2016-01-10 18:04 UTC (permalink / raw)
  To: Cao jin, qemu-devel; +Cc: qemu-trivial, jslaby, armbru

18.12.2015 11:55, Cao jin wrote:
> for educational PCI device

Applied to -trivial, adding "hw/misc/edu:" prefix to the subject line, thanks!

10.01.2016 13:14, Cao jin wrote:
> 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?

I didn't process almost anything before 2.5.0 release, and next
there were Cristmas and New Year holidays.  As you can see, some
patches are now going.

Thanks,

/mjt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] Convert to realize()
  2016-01-10 18:04 ` Michael Tokarev
@ 2016-01-11  1:18   ` Cao jin
  0 siblings, 0 replies; 5+ messages in thread
From: Cao jin @ 2016-01-11  1:18 UTC (permalink / raw)
  To: Michael Tokarev, qemu-devel; +Cc: qemu-trivial, jslaby, armbru

Thanks for your work:)

On 01/11/2016 02:04 AM, Michael Tokarev wrote:
> 18.12.2015 11:55, Cao jin wrote:
>> for educational PCI device
>
> Applied to -trivial, adding "hw/misc/edu:" prefix to the subject line, thanks!
>
> 10.01.2016 13:14, Cao jin wrote:
>> 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?
>
> I didn't process almost anything before 2.5.0 release, and next
> there were Cristmas and New Year holidays.  As you can see, some
> patches are now going.
>
> Thanks,
>
> /mjt
>
>
>

-- 
Yours Sincerely,

Cao jin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-11  1:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-18  8:55 [Qemu-devel] [PATCH] Convert to realize() Cao jin
2015-12-18 12:55 ` Markus Armbruster
2016-01-10 10:14   ` Cao jin
2016-01-10 18:04 ` Michael Tokarev
2016-01-11  1:18   ` Cao jin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.