All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions
@ 2019-05-28 16:40 Philippe Mathieu-Daudé
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly Philippe Mathieu-Daudé
                   ` (9 more replies)
  0 siblings, 10 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

v1 was a simple patch:
'use qbus_reset_all() directly instead of qbus_reset_all_fn'
where I was looking inside the definition of BusState.

Peter suggested to use the prefered QOM style, using the BUS/DEVICE
macros. While here, I also cleaned the rest of the codebase.

Philippe Mathieu-Daudé (10):
  hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly
  hw/scsi: Use the QOM BUS() macro to access BusState.qbus
  hw/pci-bridge: Use the QOM BUS() macro to access BusState.qbus
  hw/s390x/event-facility: Use the QOM BUS() macro to access
    BusState.qbus
  hw/sd: Use the QOM BUS() macro to access BusState.qbus
  hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev
  hw/isa: Use the QOM DEVICE() macro to access DeviceState.qdev
  hw/usb-storage: Use the QOM DEVICE() macro to access DeviceState.qdev
  hw/vfio/pci: Use the QOM DEVICE() macro to access DeviceState.qdev
  hw/watchdog/wdt_i6300esb: Use DEVICE() macro to access
    DeviceState.qdev

 hw/audio/ac97.c            | 2 +-
 hw/isa/lpc_ich9.c          | 2 +-
 hw/isa/vt82c686.c          | 2 +-
 hw/pci/pci_bridge.c        | 2 +-
 hw/s390x/event-facility.c  | 4 ++--
 hw/scsi/lsi53c895a.c       | 2 +-
 hw/scsi/mptsas.c           | 4 ++--
 hw/scsi/virtio-scsi.c      | 2 +-
 hw/scsi/vmw_pvscsi.c       | 4 ++--
 hw/sd/milkymist-memcard.c  | 2 +-
 hw/sd/ssi-sd.c             | 2 +-
 hw/usb/dev-storage.c       | 2 +-
 hw/vfio/pci.c              | 4 ++--
 hw/watchdog/wdt_i6300esb.c | 2 +-
 14 files changed, 18 insertions(+), 18 deletions(-)

-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-06-02  7:02   ` Dmitry Fleytman
  2019-06-06  9:29   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus Philippe Mathieu-Daudé
                   ` (8 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Since the BusState is accesible from the SCSIBus object,
it is pointless to use qbus_reset_all_fn.
Use qbus_reset_all() directly.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
v2: Use BUS() macro (Peter Maydell)

One step toward removing qbus_reset_all_fn()
---
 hw/scsi/vmw_pvscsi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
index 584b4be07e..c39e33fa35 100644
--- a/hw/scsi/vmw_pvscsi.c
+++ b/hw/scsi/vmw_pvscsi.c
@@ -440,7 +440,7 @@ static void
 pvscsi_reset_adapter(PVSCSIState *s)
 {
     s->resetting++;
-    qbus_reset_all_fn(&s->bus);
+    qbus_reset_all(BUS(&s->bus));
     s->resetting--;
     pvscsi_process_completion_queue(s);
     assert(QTAILQ_EMPTY(&s->pending_queue));
@@ -848,7 +848,7 @@ pvscsi_on_cmd_reset_bus(PVSCSIState *s)
     trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_RESET_BUS");
 
     s->resetting++;
-    qbus_reset_all_fn(&s->bus);
+    qbus_reset_all(BUS(&s->bus));
     s->resetting--;
     return PVSCSI_COMMAND_PROCESSING_SUCCEEDED;
 }
-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-06-06  9:41   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-06-06  9:54   ` Laurent Vivier
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 03/10] hw/pci-bridge: " Philippe Mathieu-Daudé
                   ` (7 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Rather than looking inside the definition of a BusState with "s->bus.qbus",
use the QOM prefered style: "BUS(&s->bus)".

This patch was generated using the following Coccinelle script:

    // Use BUS() macros to access BusState.qbus
    @use_bus_macro_to_access_qbus@
    expression obj;
    identifier bus;
    @@
    -&obj->bus.qbus
    +BUS(&obj->bus)

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/scsi/lsi53c895a.c  | 2 +-
 hw/scsi/mptsas.c      | 4 ++--
 hw/scsi/virtio-scsi.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c
index da7239d94f..a8b7a199f9 100644
--- a/hw/scsi/lsi53c895a.c
+++ b/hw/scsi/lsi53c895a.c
@@ -1860,7 +1860,7 @@ static void lsi_reg_writeb(LSIState *s, int offset, uint8_t val)
         }
         if (val & LSI_SCNTL1_RST) {
             if (!(s->sstat0 & LSI_SSTAT0_RST)) {
-                qbus_reset_all(&s->bus.qbus);
+                qbus_reset_all(BUS(&s->bus));
                 s->sstat0 |= LSI_SSTAT0_RST;
                 lsi_script_scsi_interrupt(s, LSI_SIST0_RST, 0);
             }
diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c
index 929404fb48..e800683e91 100644
--- a/hw/scsi/mptsas.c
+++ b/hw/scsi/mptsas.c
@@ -540,7 +540,7 @@ reply_maybe_async:
         break;
 
     case MPI_SCSITASKMGMT_TASKTYPE_RESET_BUS:
-        qbus_reset_all(&s->bus.qbus);
+        qbus_reset_all(BUS(&s->bus));
         break;
 
     default:
@@ -803,7 +803,7 @@ static void mptsas_soft_reset(MPTSASState *s)
     s->intr_mask = MPI_HIM_DIM | MPI_HIM_RIM;
     mptsas_update_interrupt(s);
 
-    qbus_reset_all(&s->bus.qbus);
+    qbus_reset_all(BUS(&s->bus));
     s->intr_status = 0;
     s->intr_mask = save_mask;
 
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
index 839f120256..2a71b78e22 100644
--- a/hw/scsi/virtio-scsi.c
+++ b/hw/scsi/virtio-scsi.c
@@ -696,7 +696,7 @@ static void virtio_scsi_reset(VirtIODevice *vdev)
 
     assert(!s->dataplane_started);
     s->resetting++;
-    qbus_reset_all(&s->bus.qbus);
+    qbus_reset_all(BUS(&s->bus));
     s->resetting--;
 
     vs->sense_size = VIRTIO_SCSI_SENSE_DEFAULT_SIZE;
-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 03/10] hw/pci-bridge: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly Philippe Mathieu-Daudé
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-05-28 16:52   ` Marcel Apfelbaum
  2019-06-06  9:31   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 04/10] hw/s390x/event-facility: " Philippe Mathieu-Daudé
                   ` (6 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Rather than looking inside the definition of a BusState with "s->bus.qbus",
use the QOM prefered style: "BUS(&s->bus)".

This patch was generated using the following Coccinelle script:

    // Use BUS() macros to access BusState.qbus
    @use_bus_macro_to_access_qbus@
    expression obj;
    identifier bus;
    @@
    -&obj->bus.qbus
    +BUS(&obj->bus)

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/pci/pci_bridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c
index c6d9ded320..8d954885c0 100644
--- a/hw/pci/pci_bridge.c
+++ b/hw/pci/pci_bridge.c
@@ -273,7 +273,7 @@ void pci_bridge_write_config(PCIDevice *d,
     newctl = pci_get_word(d->config + PCI_BRIDGE_CONTROL);
     if (~oldctl & newctl & PCI_BRIDGE_CTL_BUS_RESET) {
         /* Trigger hot reset on 0->1 transition. */
-        qbus_reset_all(&s->sec_bus.qbus);
+        qbus_reset_all(BUS(&s->sec_bus));
     }
 }
 
-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 04/10] hw/s390x/event-facility: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 03/10] hw/pci-bridge: " Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-05-28 17:00   ` Cornelia Huck
  2019-06-06  9:32   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 05/10] hw/sd: " Philippe Mathieu-Daudé
                   ` (5 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Rather than looking inside the definition of a BusState with "s->bus.qbus",
use the QOM prefered style: "BUS(&s->bus)".

This patch was generated using the following Coccinelle script:

    // Use BUS() macros to access BusState.qbus
    @use_bus_macro_to_access_qbus@
    expression obj;
    identifier bus;
    @@
    -&obj->bus.qbus
    +BUS(&obj->bus)

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/s390x/event-facility.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/s390x/event-facility.c b/hw/s390x/event-facility.c
index ee5b83448b..e574223a22 100644
--- a/hw/s390x/event-facility.c
+++ b/hw/s390x/event-facility.c
@@ -466,12 +466,12 @@ static void init_event_facility(Object *obj)
     new = object_new(TYPE_SCLP_QUIESCE);
     object_property_add_child(obj, TYPE_SCLP_QUIESCE, new, NULL);
     object_unref(new);
-    qdev_set_parent_bus(DEVICE(new), &event_facility->sbus.qbus);
+    qdev_set_parent_bus(DEVICE(new), BUS(&event_facility->sbus));
 
     new = object_new(TYPE_SCLP_CPU_HOTPLUG);
     object_property_add_child(obj, TYPE_SCLP_CPU_HOTPLUG, new, NULL);
     object_unref(new);
-    qdev_set_parent_bus(DEVICE(new), &event_facility->sbus.qbus);
+    qdev_set_parent_bus(DEVICE(new), BUS(&event_facility->sbus));
     /* the facility will automatically realize the devices via the bus */
 }
 
-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 05/10] hw/sd: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
                   ` (3 preceding siblings ...)
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 04/10] hw/s390x/event-facility: " Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-05-28 16:47   ` Peter Maydell
  2019-06-06  9:38   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 06/10] hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev Philippe Mathieu-Daudé
                   ` (4 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Rather than looking inside the definition of a BusState with "s->bus.qbus",
use the QOM prefered style: "BUS(&s->bus)".

This patch was generated using the following Coccinelle script:

    // Use BUS() macros to access BusState.qbus
    @use_bus_macro_to_access_qbus@
    expression obj;
    identifier bus;
    @@
    -&obj->bus.qbus
    +BUS(&obj->bus)

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/sd/milkymist-memcard.c | 2 +-
 hw/sd/ssi-sd.c            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/sd/milkymist-memcard.c b/hw/sd/milkymist-memcard.c
index df42aa1c54..dd1ba649d9 100644
--- a/hw/sd/milkymist-memcard.c
+++ b/hw/sd/milkymist-memcard.c
@@ -277,7 +277,7 @@ static void milkymist_memcard_realize(DeviceState *dev, Error **errp)
     /* FIXME use a qdev drive property instead of drive_get_next() */
     dinfo = drive_get_next(IF_SD);
     blk = dinfo ? blk_by_legacy_dinfo(dinfo) : NULL;
-    carddev = qdev_create(&s->sdbus.qbus, TYPE_SD_CARD);
+    carddev = qdev_create(BUS(&s->sdbus), TYPE_SD_CARD);
     qdev_prop_set_drive(carddev, "drive", blk, &err);
     object_property_set_bool(OBJECT(carddev), true, "realized", &err);
     if (err) {
diff --git a/hw/sd/ssi-sd.c b/hw/sd/ssi-sd.c
index 623d0333e8..25e1009277 100644
--- a/hw/sd/ssi-sd.c
+++ b/hw/sd/ssi-sd.c
@@ -249,7 +249,7 @@ static void ssi_sd_realize(SSISlave *d, Error **errp)
     /* Create and plug in the sd card */
     /* FIXME use a qdev drive property instead of drive_get_next() */
     dinfo = drive_get_next(IF_SD);
-    carddev = qdev_create(&s->sdbus.qbus, TYPE_SD_CARD);
+    carddev = qdev_create(BUS(&s->sdbus), TYPE_SD_CARD);
     if (dinfo) {
         qdev_prop_set_drive(carddev, "drive", blk_by_legacy_dinfo(dinfo), &err);
     }
-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 06/10] hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
                   ` (4 preceding siblings ...)
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 05/10] hw/sd: " Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-05-28 16:46   ` Peter Maydell
  2019-06-06  9:36   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 07/10] hw/isa: " Philippe Mathieu-Daudé
                   ` (3 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Rather than looking inside the definition of a DeviceState with
"s->qdev", use the QOM prefered style: "DEVICE(s)".

This patch was generated using the following Coccinelle script
(with a bit of manual fix-up, removing an extra space to please
checkpatch.pl):

    // Use DEVICE() macros to access DeviceState.qdev
    @use_device_macro_to_access_qdev@
    expression obj;
    identifier dev;
    @@
    -&obj->dev.qdev
    +DEVICE(obj)

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/audio/ac97.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c
index 2265622d44..a4e8d99e77 100644
--- a/hw/audio/ac97.c
+++ b/hw/audio/ac97.c
@@ -1388,7 +1388,7 @@ static void ac97_realize(PCIDevice *dev, Error **errp)
     pci_register_bar (&s->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &s->io_nam);
     pci_register_bar (&s->dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->io_nabm);
     AUD_register_card ("ac97", &s->card);
-    ac97_on_reset (&s->dev.qdev);
+    ac97_on_reset(DEVICE(s));
 }
 
 static void ac97_exit(PCIDevice *dev)
-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 07/10] hw/isa: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
                   ` (5 preceding siblings ...)
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 06/10] hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-05-28 16:53   ` Marcel Apfelbaum
  2019-06-06  9:33   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 08/10] hw/usb-storage: " Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Rather than looking inside the definition of a DeviceState with
"s->qdev", use the QOM prefered style: "DEVICE(s)".

This patch was generated using the following Coccinelle script:

    // Use DEVICE() macros to access DeviceState.qdev
    @use_device_macro_to_access_qdev@
    expression obj;
    identifier dev;
    @@
    -&obj->dev.qdev
    +DEVICE(obj)

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/isa/lpc_ich9.c | 2 +-
 hw/isa/vt82c686.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
index 031ee9cd93..35d17246e9 100644
--- a/hw/isa/lpc_ich9.c
+++ b/hw/isa/lpc_ich9.c
@@ -412,7 +412,7 @@ void ich9_lpc_pm_init(PCIDevice *lpc_pci, bool smm_enabled)
                                  true);
     }
 
-    ich9_lpc_reset(&lpc->d.qdev);
+    ich9_lpc_reset(DEVICE(lpc));
 }
 
 /* APM */
diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c
index 85d0532dd5..d46754f61c 100644
--- a/hw/isa/vt82c686.c
+++ b/hw/isa/vt82c686.c
@@ -369,7 +369,7 @@ static void vt82c686b_pm_realize(PCIDevice *dev, Error **errp)
     pci_conf[0x90] = s->smb_io_base | 1;
     pci_conf[0x91] = s->smb_io_base >> 8;
     pci_conf[0xd2] = 0x90;
-    pm_smbus_init(&s->dev.qdev, &s->smb, false);
+    pm_smbus_init(DEVICE(s), &s->smb, false);
     memory_region_add_subregion(get_system_io(), s->smb_io_base, &s->smb.io);
 
     apm_init(dev, &s->apm, NULL, s);
-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 08/10] hw/usb-storage: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
                   ` (6 preceding siblings ...)
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 07/10] hw/isa: " Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-05-29  5:02   ` Gerd Hoffmann
  2019-06-06  9:34   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 09/10] hw/vfio/pci: " Philippe Mathieu-Daudé
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 10/10] hw/watchdog/wdt_i6300esb: Use " Philippe Mathieu-Daudé
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Rather than looking inside the definition of a DeviceState with
"s->qdev", use the QOM prefered style: "DEVICE(s)".

This patch was generated using the following Coccinelle script:

    // Use DEVICE() macros to access DeviceState.qdev
    @use_device_macro_to_access_qdev@
    expression obj;
    identifier dev;
    @@
    -&obj->dev.qdev
    +DEVICE(obj)

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/usb/dev-storage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c
index cd5551d94f..0e4e93ef16 100644
--- a/hw/usb/dev-storage.c
+++ b/hw/usb/dev-storage.c
@@ -616,7 +616,7 @@ static void usb_msd_storage_realize(USBDevice *dev, Error **errp)
      * The hack is probably a bad idea.
      */
     blk_ref(blk);
-    blk_detach_dev(blk, &s->dev.qdev);
+    blk_detach_dev(blk, DEVICE(s));
     s->conf.blk = NULL;
 
     usb_desc_create_serial(dev);
-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 09/10] hw/vfio/pci: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
                   ` (7 preceding siblings ...)
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 08/10] hw/usb-storage: " Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-06-03 18:56   ` Alex Williamson
  2019-06-06  9:39   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 10/10] hw/watchdog/wdt_i6300esb: Use " Philippe Mathieu-Daudé
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Rather than looking inside the definition of a DeviceState with
"s->qdev", use the QOM prefered style: "DEVICE(s)".

This patch was generated using the following Coccinelle script:

    // Use DEVICE() macros to access DeviceState.qdev
    @use_device_macro_to_access_qdev@
    expression obj;
    identifier dev;
    @@
    -&obj->dev.qdev
    +DEVICE(obj)

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/vfio/pci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 8e555db12e..2a4091d216 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2717,7 +2717,7 @@ static void vfio_req_notifier_handler(void *opaque)
         return;
     }
 
-    qdev_unplug(&vdev->pdev.qdev, &err);
+    qdev_unplug(DEVICE(vdev), &err);
     if (err) {
         warn_reportf_err(err, VFIO_MSG_PREFIX, vdev->vbasedev.name);
     }
@@ -2839,7 +2839,7 @@ static void vfio_realize(PCIDevice *pdev, Error **errp)
     vdev->vbasedev.name = g_path_get_basename(vdev->vbasedev.sysfsdev);
     vdev->vbasedev.ops = &vfio_pci_ops;
     vdev->vbasedev.type = VFIO_DEVICE_TYPE_PCI;
-    vdev->vbasedev.dev = &vdev->pdev.qdev;
+    vdev->vbasedev.dev = DEVICE(vdev);
 
     tmp = g_strdup_printf("%s/iommu_group", vdev->vbasedev.sysfsdev);
     len = readlink(tmp, group_path, sizeof(group_path));
-- 
2.20.1



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

* [Qemu-devel] [PATCH v2 10/10] hw/watchdog/wdt_i6300esb: Use DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
                   ` (8 preceding siblings ...)
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 09/10] hw/vfio/pci: " Philippe Mathieu-Daudé
@ 2019-05-28 16:40 ` Philippe Mathieu-Daudé
  2019-06-06  9:42   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  2019-06-06  9:55   ` Laurent Vivier
  9 siblings, 2 replies; 31+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-05-28 16:40 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, Aleksandar Rikalo, Markus Armbruster,
	David Hildenbrand, Alex Williamson, qemu-s390x, Halil Pasic,
	Christian Borntraeger, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Philippe Mathieu-Daudé,
	Richard Henderson

Rather than looking inside the definition of a DeviceState with
"s->qdev", use the QOM prefered style: "DEVICE(s)".

This patch was generated using the following Coccinelle script:

    // Use DEVICE() macros to access DeviceState.qdev
    @use_device_macro_to_access_qdev@
    expression obj;
    identifier dev;
    @@
    -&obj->dev.qdev
    +DEVICE(obj)

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/watchdog/wdt_i6300esb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c
index 1c6eddf86a..f2d1e86526 100644
--- a/hw/watchdog/wdt_i6300esb.c
+++ b/hw/watchdog/wdt_i6300esb.c
@@ -200,7 +200,7 @@ static void i6300esb_timer_expired(void *vp)
         if (d->reboot_enabled) {
             d->previous_reboot_flag = 1;
             watchdog_perform_action(); /* This reboots, exits, etc */
-            i6300esb_reset(&d->dev.qdev);
+            i6300esb_reset(DEVICE(d));
         }
 
         /* In "free running mode" we start stage 1 again. */
-- 
2.20.1



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

* Re: [Qemu-devel] [PATCH v2 06/10] hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 06/10] hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev Philippe Mathieu-Daudé
@ 2019-05-28 16:46   ` Peter Maydell
  2019-06-06  9:36   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Peter Maydell @ 2019-05-28 16:46 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, qemu-s390x, Dmitry Fleytman, Alex Williamson,
	Aleksandar Markovic, Michael S. Tsirkin, QEMU Trivial,
	David Hildenbrand, QEMU Developers, Markus Armbruster,
	Halil Pasic, Aleksandar Rikalo, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Christian Borntraeger,
	Richard Henderson

On Tue, 28 May 2019 at 17:42, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>
> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
>
> This patch was generated using the following Coccinelle script
> (with a bit of manual fix-up, removing an extra space to please
> checkpatch.pl):
>
>     // Use DEVICE() macros to access DeviceState.qdev
>     @use_device_macro_to_access_qdev@
>     expression obj;
>     identifier dev;
>     @@
>     -&obj->dev.qdev
>     +DEVICE(obj)
>
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/audio/ac97.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c
> index 2265622d44..a4e8d99e77 100644
> --- a/hw/audio/ac97.c
> +++ b/hw/audio/ac97.c
> @@ -1388,7 +1388,7 @@ static void ac97_realize(PCIDevice *dev, Error **errp)
>      pci_register_bar (&s->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &s->io_nam);
>      pci_register_bar (&s->dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->io_nabm);
>      AUD_register_card ("ac97", &s->card);
> -    ac97_on_reset (&s->dev.qdev);
> +    ac97_on_reset(DEVICE(s));
>  }

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>.

As an aside, this function has a lot of uses of "&s->dev" to
get the PCIDevice* given an AC97LinkState*. This isn't
necessary as the function has been passed the PCIDevice*
as its argument, so all the uses of "&s->dev" here could
just be written as "dev".

thanks
-- PMM


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

* Re: [Qemu-devel] [PATCH v2 05/10] hw/sd: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 05/10] hw/sd: " Philippe Mathieu-Daudé
@ 2019-05-28 16:47   ` Peter Maydell
  2019-06-06  9:38   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Peter Maydell @ 2019-05-28 16:47 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, qemu-s390x, Dmitry Fleytman, Alex Williamson,
	Aleksandar Markovic, Michael S. Tsirkin, QEMU Trivial,
	David Hildenbrand, QEMU Developers, Markus Armbruster,
	Halil Pasic, Aleksandar Rikalo, Michael Walle, Gerd Hoffmann,
	Cornelia Huck, Paolo Bonzini, Christian Borntraeger,
	Richard Henderson

On Tue, 28 May 2019 at 17:42, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>
> Rather than looking inside the definition of a BusState with "s->bus.qbus",
> use the QOM prefered style: "BUS(&s->bus)".
>
> This patch was generated using the following Coccinelle script:
>
>     // Use BUS() macros to access BusState.qbus
>     @use_bus_macro_to_access_qbus@
>     expression obj;
>     identifier bus;
>     @@
>     -&obj->bus.qbus
>     +BUS(&obj->bus)
>
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/sd/milkymist-memcard.c | 2 +-
>  hw/sd/ssi-sd.c            | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM


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

* Re: [Qemu-devel] [PATCH v2 03/10] hw/pci-bridge: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 03/10] hw/pci-bridge: " Philippe Mathieu-Daudé
@ 2019-05-28 16:52   ` Marcel Apfelbaum
  2019-06-06  9:31   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Marcel Apfelbaum @ 2019-05-28 16:52 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, Markus Armbruster, David Hildenbrand,
	Alex Williamson, qemu-s390x, Halil Pasic, Christian Borntraeger,
	Michael Walle, Gerd Hoffmann, Aleksandar Markovic, Cornelia Huck,
	Paolo Bonzini, Richard Henderson



On 5/28/19 7:40 PM, Philippe Mathieu-Daudé wrote:
> Rather than looking inside the definition of a BusState with "s->bus.qbus",
> use the QOM prefered style: "BUS(&s->bus)".
>
> This patch was generated using the following Coccinelle script:
>
>      // Use BUS() macros to access BusState.qbus
>      @use_bus_macro_to_access_qbus@
>      expression obj;
>      identifier bus;
>      @@
>      -&obj->bus.qbus
>      +BUS(&obj->bus)
>
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>   hw/pci/pci_bridge.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c
> index c6d9ded320..8d954885c0 100644
> --- a/hw/pci/pci_bridge.c
> +++ b/hw/pci/pci_bridge.c
> @@ -273,7 +273,7 @@ void pci_bridge_write_config(PCIDevice *d,
>       newctl = pci_get_word(d->config + PCI_BRIDGE_CONTROL);
>       if (~oldctl & newctl & PCI_BRIDGE_CTL_BUS_RESET) {
>           /* Trigger hot reset on 0->1 transition. */
> -        qbus_reset_all(&s->sec_bus.qbus);
> +        qbus_reset_all(BUS(&s->sec_bus));
>       }
>   }
>   

Reviewed-by: Marcel Apfelbaum<marcel.apfelbaum@gmail.com>

Thanks,
Marcel





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

* Re: [Qemu-devel] [PATCH v2 07/10] hw/isa: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 07/10] hw/isa: " Philippe Mathieu-Daudé
@ 2019-05-28 16:53   ` Marcel Apfelbaum
  2019-06-06  9:33   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Marcel Apfelbaum @ 2019-05-28 16:53 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, Markus Armbruster, David Hildenbrand,
	Alex Williamson, qemu-s390x, Halil Pasic, Christian Borntraeger,
	Michael Walle, Gerd Hoffmann, Aleksandar Markovic, Cornelia Huck,
	Paolo Bonzini, Richard Henderson



On 5/28/19 7:40 PM, Philippe Mathieu-Daudé wrote:
> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
>
> This patch was generated using the following Coccinelle script:
>
>      // Use DEVICE() macros to access DeviceState.qdev
>      @use_device_macro_to_access_qdev@
>      expression obj;
>      identifier dev;
>      @@
>      -&obj->dev.qdev
>      +DEVICE(obj)
>
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>   hw/isa/lpc_ich9.c | 2 +-
>   hw/isa/vt82c686.c | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
> index 031ee9cd93..35d17246e9 100644
> --- a/hw/isa/lpc_ich9.c
> +++ b/hw/isa/lpc_ich9.c
> @@ -412,7 +412,7 @@ void ich9_lpc_pm_init(PCIDevice *lpc_pci, bool smm_enabled)
>                                    true);
>       }
>   
> -    ich9_lpc_reset(&lpc->d.qdev);
> +    ich9_lpc_reset(DEVICE(lpc));
>   }
>   
>   /* APM */
> diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c
> index 85d0532dd5..d46754f61c 100644
> --- a/hw/isa/vt82c686.c
> +++ b/hw/isa/vt82c686.c
> @@ -369,7 +369,7 @@ static void vt82c686b_pm_realize(PCIDevice *dev, Error **errp)
>       pci_conf[0x90] = s->smb_io_base | 1;
>       pci_conf[0x91] = s->smb_io_base >> 8;
>       pci_conf[0xd2] = 0x90;
> -    pm_smbus_init(&s->dev.qdev, &s->smb, false);
> +    pm_smbus_init(DEVICE(s), &s->smb, false);
>       memory_region_add_subregion(get_system_io(), s->smb_io_base, &s->smb.io);
>   
>       apm_init(dev, &s->apm, NULL, s);

Reviewed-by: Marcel Apfelbaum<marcel.apfelbaum@gmail.com>

Thanks,
Marcel



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

* Re: [Qemu-devel] [PATCH v2 04/10] hw/s390x/event-facility: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 04/10] hw/s390x/event-facility: " Philippe Mathieu-Daudé
@ 2019-05-28 17:00   ` Cornelia Huck
  2019-06-06  9:32   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Cornelia Huck @ 2019-05-28 17:00 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Alex Williamson,
	Aleksandar Markovic, Michael S. Tsirkin, qemu-trivial,
	David Hildenbrand, qemu-devel, Markus Armbruster, Halil Pasic,
	Aleksandar Rikalo, Michael Walle, Gerd Hoffmann, qemu-s390x,
	Paolo Bonzini, Christian Borntraeger, Richard Henderson

On Tue, 28 May 2019 18:40:14 +0200
Philippe Mathieu-Daudé <philmd@redhat.com> wrote:

> Rather than looking inside the definition of a BusState with "s->bus.qbus",
> use the QOM prefered style: "BUS(&s->bus)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use BUS() macros to access BusState.qbus
>     @use_bus_macro_to_access_qbus@
>     expression obj;
>     identifier bus;
>     @@
>     -&obj->bus.qbus
>     +BUS(&obj->bus)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/s390x/event-facility.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Cornelia Huck <cohuck@redhat.com>

(I assume this will go through the trivial tree?)


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

* Re: [Qemu-devel] [PATCH v2 08/10] hw/usb-storage: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 08/10] hw/usb-storage: " Philippe Mathieu-Daudé
@ 2019-05-29  5:02   ` Gerd Hoffmann
  2019-06-06  9:34   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Gerd Hoffmann @ 2019-05-29  5:02 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Alex Williamson,
	Aleksandar Markovic, Michael S. Tsirkin, qemu-trivial,
	Markus Armbruster, David Hildenbrand, qemu-devel, qemu-s390x,
	Halil Pasic, Aleksandar Rikalo, Michael Walle, Cornelia Huck,
	Paolo Bonzini, Christian Borntraeger, Richard Henderson

On Tue, May 28, 2019 at 06:40:18PM +0200, Philippe Mathieu-Daudé wrote:
> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use DEVICE() macros to access DeviceState.qdev
>     @use_device_macro_to_access_qdev@
>     expression obj;
>     identifier dev;
>     @@
>     -&obj->dev.qdev
>     +DEVICE(obj)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>



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

* Re: [Qemu-devel] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly Philippe Mathieu-Daudé
@ 2019-06-02  7:02   ` Dmitry Fleytman
  2019-06-06  9:29   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Dmitry Fleytman @ 2019-06-02  7:02 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Peter Maydell, Cornelia Huck, Alex Williamson,
	Aleksandar Markovic, Michael S. Tsirkin, qemu-trivial,
	David Hildenbrand, QEMU Developers, Markus Armbruster,
	Halil Pasic, Aleksandar Rikalo, Michael Walle, Gerd Hoffmann,
	qemu-s390x, Paolo Bonzini, Christian Borntraeger,
	Richard Henderson

Reviewed-by: Dmitry Fleytman <dmitry.fleytman@gmail.com>

> On 28 May 2019, at 19:40, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
> 
> Since the BusState is accesible from the SCSIBus object,
> it is pointless to use qbus_reset_all_fn.
> Use qbus_reset_all() directly.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> v2: Use BUS() macro (Peter Maydell)
> 
> One step toward removing qbus_reset_all_fn()
> ---
> hw/scsi/vmw_pvscsi.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
> index 584b4be07e..c39e33fa35 100644
> --- a/hw/scsi/vmw_pvscsi.c
> +++ b/hw/scsi/vmw_pvscsi.c
> @@ -440,7 +440,7 @@ static void
> pvscsi_reset_adapter(PVSCSIState *s)
> {
>     s->resetting++;
> -    qbus_reset_all_fn(&s->bus);
> +    qbus_reset_all(BUS(&s->bus));
>     s->resetting--;
>     pvscsi_process_completion_queue(s);
>     assert(QTAILQ_EMPTY(&s->pending_queue));
> @@ -848,7 +848,7 @@ pvscsi_on_cmd_reset_bus(PVSCSIState *s)
>     trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_RESET_BUS");
> 
>     s->resetting++;
> -    qbus_reset_all_fn(&s->bus);
> +    qbus_reset_all(BUS(&s->bus));
>     s->resetting--;
>     return PVSCSI_COMMAND_PROCESSING_SUCCEEDED;
> }
> -- 
> 2.20.1
> 



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

* Re: [Qemu-devel] [PATCH v2 09/10] hw/vfio/pci: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 09/10] hw/vfio/pci: " Philippe Mathieu-Daudé
@ 2019-06-03 18:56   ` Alex Williamson
  2019-06-06  9:39   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Alex Williamson @ 2019-06-03 18:56 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Aleksandar Markovic,
	Michael S. Tsirkin, qemu-trivial, Markus Armbruster,
	David Hildenbrand, qemu-devel, qemu-s390x, Halil Pasic,
	Aleksandar Rikalo, Michael Walle, Gerd Hoffmann, Cornelia Huck,
	Paolo Bonzini, Christian Borntraeger, Richard Henderson

On Tue, 28 May 2019 18:40:19 +0200
Philippe Mathieu-Daudé <philmd@redhat.com> wrote:

> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use DEVICE() macros to access DeviceState.qdev
>     @use_device_macro_to_access_qdev@
>     expression obj;
>     identifier dev;
>     @@
>     -&obj->dev.qdev
>     +DEVICE(obj)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/vfio/pci.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)


Acked-by: Alex Williamson <alex.williamson@redhat.com>


> diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
> index 8e555db12e..2a4091d216 100644
> --- a/hw/vfio/pci.c
> +++ b/hw/vfio/pci.c
> @@ -2717,7 +2717,7 @@ static void vfio_req_notifier_handler(void *opaque)
>          return;
>      }
>  
> -    qdev_unplug(&vdev->pdev.qdev, &err);
> +    qdev_unplug(DEVICE(vdev), &err);
>      if (err) {
>          warn_reportf_err(err, VFIO_MSG_PREFIX, vdev->vbasedev.name);
>      }
> @@ -2839,7 +2839,7 @@ static void vfio_realize(PCIDevice *pdev, Error **errp)
>      vdev->vbasedev.name = g_path_get_basename(vdev->vbasedev.sysfsdev);
>      vdev->vbasedev.ops = &vfio_pci_ops;
>      vdev->vbasedev.type = VFIO_DEVICE_TYPE_PCI;
> -    vdev->vbasedev.dev = &vdev->pdev.qdev;
> +    vdev->vbasedev.dev = DEVICE(vdev);
>  
>      tmp = g_strdup_printf("%s/iommu_group", vdev->vbasedev.sysfsdev);
>      len = readlink(tmp, group_path, sizeof(group_path));



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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly Philippe Mathieu-Daudé
  2019-06-02  7:02   ` Dmitry Fleytman
@ 2019-06-06  9:29   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:29 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Since the BusState is accesible from the SCSIBus object,
> it is pointless to use qbus_reset_all_fn.
> Use qbus_reset_all() directly.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> v2: Use BUS() macro (Peter Maydell)
> 
> One step toward removing qbus_reset_all_fn()
> ---
>  hw/scsi/vmw_pvscsi.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
> index 584b4be07e..c39e33fa35 100644
> --- a/hw/scsi/vmw_pvscsi.c
> +++ b/hw/scsi/vmw_pvscsi.c
> @@ -440,7 +440,7 @@ static void
>  pvscsi_reset_adapter(PVSCSIState *s)
>  {
>      s->resetting++;
> -    qbus_reset_all_fn(&s->bus);
> +    qbus_reset_all(BUS(&s->bus));
>      s->resetting--;
>      pvscsi_process_completion_queue(s);
>      assert(QTAILQ_EMPTY(&s->pending_queue));
> @@ -848,7 +848,7 @@ pvscsi_on_cmd_reset_bus(PVSCSIState *s)
>      trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_RESET_BUS");
>  
>      s->resetting++;
> -    qbus_reset_all_fn(&s->bus);
> +    qbus_reset_all(BUS(&s->bus));
>      s->resetting--;
>      return PVSCSI_COMMAND_PROCESSING_SUCCEEDED;
>  }
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 03/10] hw/pci-bridge: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 03/10] hw/pci-bridge: " Philippe Mathieu-Daudé
  2019-05-28 16:52   ` Marcel Apfelbaum
@ 2019-06-06  9:31   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:31 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a BusState with "s->bus.qbus",
> use the QOM prefered style: "BUS(&s->bus)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use BUS() macros to access BusState.qbus
>     @use_bus_macro_to_access_qbus@
>     expression obj;
>     identifier bus;
>     @@
>     -&obj->bus.qbus
>     +BUS(&obj->bus)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/pci/pci_bridge.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c
> index c6d9ded320..8d954885c0 100644
> --- a/hw/pci/pci_bridge.c
> +++ b/hw/pci/pci_bridge.c
> @@ -273,7 +273,7 @@ void pci_bridge_write_config(PCIDevice *d,
>      newctl = pci_get_word(d->config + PCI_BRIDGE_CONTROL);
>      if (~oldctl & newctl & PCI_BRIDGE_CTL_BUS_RESET) {
>          /* Trigger hot reset on 0->1 transition. */
> -        qbus_reset_all(&s->sec_bus.qbus);
> +        qbus_reset_all(BUS(&s->sec_bus));
>      }
>  }
>  
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 04/10] hw/s390x/event-facility: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 04/10] hw/s390x/event-facility: " Philippe Mathieu-Daudé
  2019-05-28 17:00   ` Cornelia Huck
@ 2019-06-06  9:32   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:32 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a BusState with "s->bus.qbus",
> use the QOM prefered style: "BUS(&s->bus)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use BUS() macros to access BusState.qbus
>     @use_bus_macro_to_access_qbus@
>     expression obj;
>     identifier bus;
>     @@
>     -&obj->bus.qbus
>     +BUS(&obj->bus)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/s390x/event-facility.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/s390x/event-facility.c b/hw/s390x/event-facility.c
> index ee5b83448b..e574223a22 100644
> --- a/hw/s390x/event-facility.c
> +++ b/hw/s390x/event-facility.c
> @@ -466,12 +466,12 @@ static void init_event_facility(Object *obj)
>      new = object_new(TYPE_SCLP_QUIESCE);
>      object_property_add_child(obj, TYPE_SCLP_QUIESCE, new, NULL);
>      object_unref(new);
> -    qdev_set_parent_bus(DEVICE(new), &event_facility->sbus.qbus);
> +    qdev_set_parent_bus(DEVICE(new), BUS(&event_facility->sbus));
>  
>      new = object_new(TYPE_SCLP_CPU_HOTPLUG);
>      object_property_add_child(obj, TYPE_SCLP_CPU_HOTPLUG, new, NULL);
>      object_unref(new);
> -    qdev_set_parent_bus(DEVICE(new), &event_facility->sbus.qbus);
> +    qdev_set_parent_bus(DEVICE(new), BUS(&event_facility->sbus));
>      /* the facility will automatically realize the devices via the bus */
>  }
>  
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 07/10] hw/isa: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 07/10] hw/isa: " Philippe Mathieu-Daudé
  2019-05-28 16:53   ` Marcel Apfelbaum
@ 2019-06-06  9:33   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:33 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use DEVICE() macros to access DeviceState.qdev
>     @use_device_macro_to_access_qdev@
>     expression obj;
>     identifier dev;
>     @@
>     -&obj->dev.qdev
>     +DEVICE(obj)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/isa/lpc_ich9.c | 2 +-
>  hw/isa/vt82c686.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
> index 031ee9cd93..35d17246e9 100644
> --- a/hw/isa/lpc_ich9.c
> +++ b/hw/isa/lpc_ich9.c
> @@ -412,7 +412,7 @@ void ich9_lpc_pm_init(PCIDevice *lpc_pci, bool smm_enabled)
>                                   true);
>      }
>  
> -    ich9_lpc_reset(&lpc->d.qdev);
> +    ich9_lpc_reset(DEVICE(lpc));
>  }
>  
>  /* APM */
> diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c
> index 85d0532dd5..d46754f61c 100644
> --- a/hw/isa/vt82c686.c
> +++ b/hw/isa/vt82c686.c
> @@ -369,7 +369,7 @@ static void vt82c686b_pm_realize(PCIDevice *dev, Error **errp)
>      pci_conf[0x90] = s->smb_io_base | 1;
>      pci_conf[0x91] = s->smb_io_base >> 8;
>      pci_conf[0xd2] = 0x90;
> -    pm_smbus_init(&s->dev.qdev, &s->smb, false);
> +    pm_smbus_init(DEVICE(s), &s->smb, false);
>      memory_region_add_subregion(get_system_io(), s->smb_io_base, &s->smb.io);
>  
>      apm_init(dev, &s->apm, NULL, s);
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 08/10] hw/usb-storage: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 08/10] hw/usb-storage: " Philippe Mathieu-Daudé
  2019-05-29  5:02   ` Gerd Hoffmann
@ 2019-06-06  9:34   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:34 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use DEVICE() macros to access DeviceState.qdev
>     @use_device_macro_to_access_qdev@
>     expression obj;
>     identifier dev;
>     @@
>     -&obj->dev.qdev
>     +DEVICE(obj)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/usb/dev-storage.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c
> index cd5551d94f..0e4e93ef16 100644
> --- a/hw/usb/dev-storage.c
> +++ b/hw/usb/dev-storage.c
> @@ -616,7 +616,7 @@ static void usb_msd_storage_realize(USBDevice *dev, Error **errp)
>       * The hack is probably a bad idea.
>       */
>      blk_ref(blk);
> -    blk_detach_dev(blk, &s->dev.qdev);
> +    blk_detach_dev(blk, DEVICE(s));
>      s->conf.blk = NULL;
>  
>      usb_desc_create_serial(dev);
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 06/10] hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 06/10] hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev Philippe Mathieu-Daudé
  2019-05-28 16:46   ` Peter Maydell
@ 2019-06-06  9:36   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:36 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
> 
> This patch was generated using the following Coccinelle script
> (with a bit of manual fix-up, removing an extra space to please
> checkpatch.pl):
> 
>     // Use DEVICE() macros to access DeviceState.qdev
>     @use_device_macro_to_access_qdev@
>     expression obj;
>     identifier dev;
>     @@
>     -&obj->dev.qdev
>     +DEVICE(obj)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/audio/ac97.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c
> index 2265622d44..a4e8d99e77 100644
> --- a/hw/audio/ac97.c
> +++ b/hw/audio/ac97.c
> @@ -1388,7 +1388,7 @@ static void ac97_realize(PCIDevice *dev, Error **errp)
>      pci_register_bar (&s->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &s->io_nam);
>      pci_register_bar (&s->dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->io_nabm);
>      AUD_register_card ("ac97", &s->card);
> -    ac97_on_reset (&s->dev.qdev);
> +    ac97_on_reset(DEVICE(s));
>  }
>  
>  static void ac97_exit(PCIDevice *dev)
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 05/10] hw/sd: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 05/10] hw/sd: " Philippe Mathieu-Daudé
  2019-05-28 16:47   ` Peter Maydell
@ 2019-06-06  9:38   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:38 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a BusState with "s->bus.qbus",
> use the QOM prefered style: "BUS(&s->bus)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use BUS() macros to access BusState.qbus
>     @use_bus_macro_to_access_qbus@
>     expression obj;
>     identifier bus;
>     @@
>     -&obj->bus.qbus
>     +BUS(&obj->bus)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/sd/milkymist-memcard.c | 2 +-
>  hw/sd/ssi-sd.c            | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/sd/milkymist-memcard.c b/hw/sd/milkymist-memcard.c
> index df42aa1c54..dd1ba649d9 100644
> --- a/hw/sd/milkymist-memcard.c
> +++ b/hw/sd/milkymist-memcard.c
> @@ -277,7 +277,7 @@ static void milkymist_memcard_realize(DeviceState *dev, Error **errp)
>      /* FIXME use a qdev drive property instead of drive_get_next() */
>      dinfo = drive_get_next(IF_SD);
>      blk = dinfo ? blk_by_legacy_dinfo(dinfo) : NULL;
> -    carddev = qdev_create(&s->sdbus.qbus, TYPE_SD_CARD);
> +    carddev = qdev_create(BUS(&s->sdbus), TYPE_SD_CARD);
>      qdev_prop_set_drive(carddev, "drive", blk, &err);
>      object_property_set_bool(OBJECT(carddev), true, "realized", &err);
>      if (err) {
> diff --git a/hw/sd/ssi-sd.c b/hw/sd/ssi-sd.c
> index 623d0333e8..25e1009277 100644
> --- a/hw/sd/ssi-sd.c
> +++ b/hw/sd/ssi-sd.c
> @@ -249,7 +249,7 @@ static void ssi_sd_realize(SSISlave *d, Error **errp)
>      /* Create and plug in the sd card */
>      /* FIXME use a qdev drive property instead of drive_get_next() */
>      dinfo = drive_get_next(IF_SD);
> -    carddev = qdev_create(&s->sdbus.qbus, TYPE_SD_CARD);
> +    carddev = qdev_create(BUS(&s->sdbus), TYPE_SD_CARD);
>      if (dinfo) {
>          qdev_prop_set_drive(carddev, "drive", blk_by_legacy_dinfo(dinfo), &err);
>      }
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 09/10] hw/vfio/pci: Use the QOM DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 09/10] hw/vfio/pci: " Philippe Mathieu-Daudé
  2019-06-03 18:56   ` Alex Williamson
@ 2019-06-06  9:39   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:39 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use DEVICE() macros to access DeviceState.qdev
>     @use_device_macro_to_access_qdev@
>     expression obj;
>     identifier dev;
>     @@
>     -&obj->dev.qdev
>     +DEVICE(obj)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/vfio/pci.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
> index 8e555db12e..2a4091d216 100644
> --- a/hw/vfio/pci.c
> +++ b/hw/vfio/pci.c
> @@ -2717,7 +2717,7 @@ static void vfio_req_notifier_handler(void *opaque)
>          return;
>      }
>  
> -    qdev_unplug(&vdev->pdev.qdev, &err);
> +    qdev_unplug(DEVICE(vdev), &err);
>      if (err) {
>          warn_reportf_err(err, VFIO_MSG_PREFIX, vdev->vbasedev.name);
>      }
> @@ -2839,7 +2839,7 @@ static void vfio_realize(PCIDevice *pdev, Error **errp)
>      vdev->vbasedev.name = g_path_get_basename(vdev->vbasedev.sysfsdev);
>      vdev->vbasedev.ops = &vfio_pci_ops;
>      vdev->vbasedev.type = VFIO_DEVICE_TYPE_PCI;
> -    vdev->vbasedev.dev = &vdev->pdev.qdev;
> +    vdev->vbasedev.dev = DEVICE(vdev);
>  
>      tmp = g_strdup_printf("%s/iommu_group", vdev->vbasedev.sysfsdev);
>      len = readlink(tmp, group_path, sizeof(group_path));
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus Philippe Mathieu-Daudé
@ 2019-06-06  9:41   ` Laurent Vivier
  2019-06-06  9:54   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:41 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a BusState with "s->bus.qbus",
> use the QOM prefered style: "BUS(&s->bus)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use BUS() macros to access BusState.qbus
>     @use_bus_macro_to_access_qbus@
>     expression obj;
>     identifier bus;
>     @@
>     -&obj->bus.qbus
>     +BUS(&obj->bus)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/scsi/lsi53c895a.c  | 2 +-
>  hw/scsi/mptsas.c      | 4 ++--
>  hw/scsi/virtio-scsi.c | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 

Reviewed-by: Laurent Vivier <laurent@vivier.eu>



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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 10/10] hw/watchdog/wdt_i6300esb: Use DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 10/10] hw/watchdog/wdt_i6300esb: Use " Philippe Mathieu-Daudé
@ 2019-06-06  9:42   ` Laurent Vivier
  2019-06-06  9:55   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:42 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use DEVICE() macros to access DeviceState.qdev
>     @use_device_macro_to_access_qdev@
>     expression obj;
>     identifier dev;
>     @@
>     -&obj->dev.qdev
>     +DEVICE(obj)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/watchdog/wdt_i6300esb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Laurent Vivier <laurent@vivier.eu>



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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus Philippe Mathieu-Daudé
  2019-06-06  9:41   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
@ 2019-06-06  9:54   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:54 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a BusState with "s->bus.qbus",
> use the QOM prefered style: "BUS(&s->bus)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use BUS() macros to access BusState.qbus
>     @use_bus_macro_to_access_qbus@
>     expression obj;
>     identifier bus;
>     @@
>     -&obj->bus.qbus
>     +BUS(&obj->bus)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/scsi/lsi53c895a.c  | 2 +-
>  hw/scsi/mptsas.c      | 4 ++--
>  hw/scsi/virtio-scsi.c | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c
> index da7239d94f..a8b7a199f9 100644
> --- a/hw/scsi/lsi53c895a.c
> +++ b/hw/scsi/lsi53c895a.c
> @@ -1860,7 +1860,7 @@ static void lsi_reg_writeb(LSIState *s, int offset, uint8_t val)
>          }
>          if (val & LSI_SCNTL1_RST) {
>              if (!(s->sstat0 & LSI_SSTAT0_RST)) {
> -                qbus_reset_all(&s->bus.qbus);
> +                qbus_reset_all(BUS(&s->bus));
>                  s->sstat0 |= LSI_SSTAT0_RST;
>                  lsi_script_scsi_interrupt(s, LSI_SIST0_RST, 0);
>              }
> diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c
> index 929404fb48..e800683e91 100644
> --- a/hw/scsi/mptsas.c
> +++ b/hw/scsi/mptsas.c
> @@ -540,7 +540,7 @@ reply_maybe_async:
>          break;
>  
>      case MPI_SCSITASKMGMT_TASKTYPE_RESET_BUS:
> -        qbus_reset_all(&s->bus.qbus);
> +        qbus_reset_all(BUS(&s->bus));
>          break;
>  
>      default:
> @@ -803,7 +803,7 @@ static void mptsas_soft_reset(MPTSASState *s)
>      s->intr_mask = MPI_HIM_DIM | MPI_HIM_RIM;
>      mptsas_update_interrupt(s);
>  
> -    qbus_reset_all(&s->bus.qbus);
> +    qbus_reset_all(BUS(&s->bus));
>      s->intr_status = 0;
>      s->intr_mask = save_mask;
>  
> diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
> index 839f120256..2a71b78e22 100644
> --- a/hw/scsi/virtio-scsi.c
> +++ b/hw/scsi/virtio-scsi.c
> @@ -696,7 +696,7 @@ static void virtio_scsi_reset(VirtIODevice *vdev)
>  
>      assert(!s->dataplane_started);
>      s->resetting++;
> -    qbus_reset_all(&s->bus.qbus);
> +    qbus_reset_all(BUS(&s->bus));
>      s->resetting--;
>  
>      vs->sense_size = VIRTIO_SCSI_SENSE_DEFAULT_SIZE;
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 10/10] hw/watchdog/wdt_i6300esb: Use DEVICE() macro to access DeviceState.qdev
  2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 10/10] hw/watchdog/wdt_i6300esb: Use " Philippe Mathieu-Daudé
  2019-06-06  9:42   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
@ 2019-06-06  9:55   ` Laurent Vivier
  1 sibling, 0 replies; 31+ messages in thread
From: Laurent Vivier @ 2019-06-06  9:55 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, qemu-trivial
  Cc: Fam Zheng, Peter Maydell, Dmitry Fleytman, Michael S. Tsirkin,
	Aleksandar Rikalo, David Hildenbrand, Markus Armbruster,
	Halil Pasic, qemu-s390x, Alex Williamson, Michael Walle,
	Aleksandar Markovic, Cornelia Huck, Paolo Bonzini,
	Richard Henderson, Christian Borntraeger, Gerd Hoffmann

Le 28/05/2019 à 18:40, Philippe Mathieu-Daudé a écrit :
> Rather than looking inside the definition of a DeviceState with
> "s->qdev", use the QOM prefered style: "DEVICE(s)".
> 
> This patch was generated using the following Coccinelle script:
> 
>     // Use DEVICE() macros to access DeviceState.qdev
>     @use_device_macro_to_access_qdev@
>     expression obj;
>     identifier dev;
>     @@
>     -&obj->dev.qdev
>     +DEVICE(obj)
> 
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
>  hw/watchdog/wdt_i6300esb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/watchdog/wdt_i6300esb.c b/hw/watchdog/wdt_i6300esb.c
> index 1c6eddf86a..f2d1e86526 100644
> --- a/hw/watchdog/wdt_i6300esb.c
> +++ b/hw/watchdog/wdt_i6300esb.c
> @@ -200,7 +200,7 @@ static void i6300esb_timer_expired(void *vp)
>          if (d->reboot_enabled) {
>              d->previous_reboot_flag = 1;
>              watchdog_perform_action(); /* This reboots, exits, etc */
> -            i6300esb_reset(&d->dev.qdev);
> +            i6300esb_reset(DEVICE(d));
>          }
>  
>          /* In "free running mode" we start stage 1 again. */
> 

Applied to my trivial-patches branch.

Thanks,
Laurent


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

end of thread, other threads:[~2019-06-06  9:57 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-28 16:40 [Qemu-devel] [PATCH v2 00/10] qom: Use BUS()/DEVICE() macros instead of looking inside definitions Philippe Mathieu-Daudé
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 01/10] hw/scsi/vmw_pvscsi: Use qbus_reset_all() directly Philippe Mathieu-Daudé
2019-06-02  7:02   ` Dmitry Fleytman
2019-06-06  9:29   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 02/10] hw/scsi: Use the QOM BUS() macro to access BusState.qbus Philippe Mathieu-Daudé
2019-06-06  9:41   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-06-06  9:54   ` Laurent Vivier
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 03/10] hw/pci-bridge: " Philippe Mathieu-Daudé
2019-05-28 16:52   ` Marcel Apfelbaum
2019-06-06  9:31   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 04/10] hw/s390x/event-facility: " Philippe Mathieu-Daudé
2019-05-28 17:00   ` Cornelia Huck
2019-06-06  9:32   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 05/10] hw/sd: " Philippe Mathieu-Daudé
2019-05-28 16:47   ` Peter Maydell
2019-06-06  9:38   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 06/10] hw/audio/ac97: Use the QOM DEVICE() macro to access DeviceState.qdev Philippe Mathieu-Daudé
2019-05-28 16:46   ` Peter Maydell
2019-06-06  9:36   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 07/10] hw/isa: " Philippe Mathieu-Daudé
2019-05-28 16:53   ` Marcel Apfelbaum
2019-06-06  9:33   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 08/10] hw/usb-storage: " Philippe Mathieu-Daudé
2019-05-29  5:02   ` Gerd Hoffmann
2019-06-06  9:34   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 09/10] hw/vfio/pci: " Philippe Mathieu-Daudé
2019-06-03 18:56   ` Alex Williamson
2019-06-06  9:39   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-05-28 16:40 ` [Qemu-devel] [PATCH v2 10/10] hw/watchdog/wdt_i6300esb: Use " Philippe Mathieu-Daudé
2019-06-06  9:42   ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2019-06-06  9:55   ` Laurent Vivier

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.