All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface
@ 2026-12-04  5:43 Oscar Alejandro Sánchez Lucero
  2026-12-04  5:43 ` [PATCH 1/6] hw/misc/xlnx-versal-cfu: Convert " Oscar Alejandro Sánchez Lucero
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Oscar Alejandro Sánchez Lucero @ 2026-12-04  5:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: Francisco Iglesias, Alistair Francis, Edgar E. Iglesias,
	Peter Maydell, qemu-arm, Tao Tang, Philippe Mathieu-Daudé,
	Michael S. Tsirkin, Oscar Alejandro Sánchez Lucero

Convert Xilinx Versal/Zynq, PCI test/shared-memory, and LED devices in
hw/misc/ from the deprecated device_class_set_legacy_reset() API to the
three-phase Resettable interface by implementing the hold phase.

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
---
Oscar Alejandro Sánchez Lucero (6):
      hw/misc/xlnx-versal-cfu: Convert to Resettable interface
      hw/misc/xlnx-zynq-ddrc: Convert to Resettable interface
      hw/misc/iommu-testdev: Convert to Resettable interface
      hw/misc/ivshmem-pci: Convert to Resettable interface
      hw/misc/led: Convert to Resettable interface
      hw/misc/pci-testdev: Convert to Resettable interface

 hw/misc/iommu-testdev.c   | 7 ++++---
 hw/misc/ivshmem-pci.c     | 7 ++++---
 hw/misc/led.c             | 7 ++++---
 hw/misc/pci-testdev.c     | 7 ++++---
 hw/misc/xlnx-versal-cfu.c | 7 ++++---
 hw/misc/xlnx-zynq-ddrc.c  | 7 ++++---
 6 files changed, 24 insertions(+), 18 deletions(-)
---
base-commit: f210851c088e477e9b79fa906b60c4f15a8bb011
change-id: 20261204-misc-resettable-xilinx-pci-8544f5b18208

Best regards,
--  
Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>



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

* [PATCH 1/6] hw/misc/xlnx-versal-cfu: Convert to Resettable interface
  2026-12-04  5:43 [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface Oscar Alejandro Sánchez Lucero
@ 2026-12-04  5:43 ` Oscar Alejandro Sánchez Lucero
  2026-12-04  5:43 ` [PATCH 2/6] hw/misc/xlnx-zynq-ddrc: " Oscar Alejandro Sánchez Lucero
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Oscar Alejandro Sánchez Lucero @ 2026-12-04  5:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: Francisco Iglesias, Alistair Francis, Edgar E. Iglesias,
	Peter Maydell, qemu-arm, Tao Tang, Philippe Mathieu-Daudé,
	Michael S. Tsirkin, Oscar Alejandro Sánchez Lucero

Convert hw/misc/xlnx-versal-cfu.c from the deprecated
device_class_set_legacy_reset() interface to the three-phase Resettable
interface, implementing the hold phase.

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
---
 hw/misc/xlnx-versal-cfu.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/hw/misc/xlnx-versal-cfu.c b/hw/misc/xlnx-versal-cfu.c
index 86df37d6e8..2432b89665 100644
--- a/hw/misc/xlnx-versal-cfu.c
+++ b/hw/misc/xlnx-versal-cfu.c
@@ -159,9 +159,9 @@ static const RegisterAccessInfo cfu_apb_regs_info[] = {
     }
 };
 
-static void cfu_apb_reset(DeviceState *dev)
+static void cfu_apb_hold_reset(Object *obj, ResetType type)
 {
-    XlnxVersalCFUAPB *s = XLNX_VERSAL_CFU_APB(dev);
+    XlnxVersalCFUAPB *s = XLNX_VERSAL_CFU_APB(obj);
     unsigned int i;
 
     for (i = 0; i < ARRAY_SIZE(s->regs_info); ++i) {
@@ -499,8 +499,9 @@ static const VMStateDescription vmstate_cfu_sfr = {
 static void cfu_apb_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
+    ResettableClass *rc = RESETTABLE_CLASS(klass);
 
-    device_class_set_legacy_reset(dc, cfu_apb_reset);
+    rc->phases.hold = cfu_apb_hold_reset;
     dc->vmsd = &vmstate_cfu_apb;
     device_class_set_props(dc, cfu_props);
 }

-- 
2.53.0



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

* [PATCH 2/6] hw/misc/xlnx-zynq-ddrc: Convert to Resettable interface
  2026-12-04  5:43 [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface Oscar Alejandro Sánchez Lucero
  2026-12-04  5:43 ` [PATCH 1/6] hw/misc/xlnx-versal-cfu: Convert " Oscar Alejandro Sánchez Lucero
@ 2026-12-04  5:43 ` Oscar Alejandro Sánchez Lucero
  2026-12-04  5:43 ` [PATCH 3/6] hw/misc/iommu-testdev: " Oscar Alejandro Sánchez Lucero
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Oscar Alejandro Sánchez Lucero @ 2026-12-04  5:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: Francisco Iglesias, Alistair Francis, Edgar E. Iglesias,
	Peter Maydell, qemu-arm, Tao Tang, Philippe Mathieu-Daudé,
	Michael S. Tsirkin, Oscar Alejandro Sánchez Lucero

Convert hw/misc/xlnx-zynq-ddrc.c from the deprecated
device_class_set_legacy_reset() interface to the three-phase Resettable
interface, implementing the hold phase.

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
---
 hw/misc/xlnx-zynq-ddrc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/hw/misc/xlnx-zynq-ddrc.c b/hw/misc/xlnx-zynq-ddrc.c
index 9e4f2f37a8..945fc17d92 100644
--- a/hw/misc/xlnx-zynq-ddrc.c
+++ b/hw/misc/xlnx-zynq-ddrc.c
@@ -347,9 +347,9 @@ static const RegisterAccessInfo xlnx_zynq_ddrc_regs_info[] = {
       .reset = 0x00000601 },
 };
 
-static void zynq_ddrctrl_reset(DeviceState *dev)
+static void zynq_ddrctrl_hold_reset(Object *obj, ResetType type)
 {
-    DDRCTRLState *s = DDRCTRL(dev);
+    DDRCTRLState *s = DDRCTRL(obj);
     int i;
 
     for (i = 0; i < ZYNQ_DDRCTRL_NUM_REG; ++i) {
@@ -400,8 +400,9 @@ static void zynq_ddrctrl_init(Object *obj)
 static void zynq_ddrctrl_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
+    ResettableClass *rc = RESETTABLE_CLASS(klass);
 
-    device_class_set_legacy_reset(dc, zynq_ddrctrl_reset);
+    rc->phases.hold = zynq_ddrctrl_hold_reset;
     dc->vmsd = &vmstate_zynq_ddrctrl;
 }
 

-- 
2.53.0



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

* [PATCH 3/6] hw/misc/iommu-testdev: Convert to Resettable interface
  2026-12-04  5:43 [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface Oscar Alejandro Sánchez Lucero
  2026-12-04  5:43 ` [PATCH 1/6] hw/misc/xlnx-versal-cfu: Convert " Oscar Alejandro Sánchez Lucero
  2026-12-04  5:43 ` [PATCH 2/6] hw/misc/xlnx-zynq-ddrc: " Oscar Alejandro Sánchez Lucero
@ 2026-12-04  5:43 ` Oscar Alejandro Sánchez Lucero
  2026-12-04  5:43 ` [PATCH 4/6] hw/misc/ivshmem-pci: " Oscar Alejandro Sánchez Lucero
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Oscar Alejandro Sánchez Lucero @ 2026-12-04  5:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: Francisco Iglesias, Alistair Francis, Edgar E. Iglesias,
	Peter Maydell, qemu-arm, Tao Tang, Philippe Mathieu-Daudé,
	Michael S. Tsirkin, Oscar Alejandro Sánchez Lucero

Convert hw/misc/iommu-testdev.c from the deprecated
device_class_set_legacy_reset() interface to the three-phase Resettable
interface, implementing the hold phase.

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
---
 hw/misc/iommu-testdev.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/hw/misc/iommu-testdev.c b/hw/misc/iommu-testdev.c
index 15eb6de78a..ecfb86916b 100644
--- a/hw/misc/iommu-testdev.c
+++ b/hw/misc/iommu-testdev.c
@@ -272,9 +272,9 @@ static void iommu_testdev_realize(PCIDevice *pdev, Error **errp)
     pci_register_bar(pdev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &s->bar0);
 }
 
-static void iommu_testdev_reset(DeviceState *dev)
+static void iommu_testdev_hold_reset(Object *obj, ResetType type)
 {
-    IOMMUTestDevState *s = IOMMU_TESTDEV(dev);
+    IOMMUTestDevState *s = IOMMU_TESTDEV(obj);
 
     s->dma_vaddr = 0;
     s->dma_paddr = 0;
@@ -287,6 +287,7 @@ static void iommu_testdev_reset(DeviceState *dev)
 static void iommu_testdev_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
+    ResettableClass *rc = RESETTABLE_CLASS(klass);
     PCIDeviceClass *pc = PCI_DEVICE_CLASS(klass);
 
     pc->realize = iommu_testdev_realize;
@@ -296,7 +297,7 @@ static void iommu_testdev_class_init(ObjectClass *klass, const void *data)
     pc->class_id = PCI_CLASS_OTHERS;
     dc->desc = "A test device for IOMMU";
     set_bit(DEVICE_CATEGORY_MISC, dc->categories);
-    device_class_set_legacy_reset(dc, iommu_testdev_reset);
+    rc->phases.hold = iommu_testdev_hold_reset;
 }
 
 static const TypeInfo iommu_testdev_info = {

-- 
2.53.0



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

* [PATCH 4/6] hw/misc/ivshmem-pci: Convert to Resettable interface
  2026-12-04  5:43 [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface Oscar Alejandro Sánchez Lucero
                   ` (2 preceding siblings ...)
  2026-12-04  5:43 ` [PATCH 3/6] hw/misc/iommu-testdev: " Oscar Alejandro Sánchez Lucero
@ 2026-12-04  5:43 ` Oscar Alejandro Sánchez Lucero
  2026-12-04  5:43 ` [PATCH 5/6] hw/misc/led: " Oscar Alejandro Sánchez Lucero
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Oscar Alejandro Sánchez Lucero @ 2026-12-04  5:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: Francisco Iglesias, Alistair Francis, Edgar E. Iglesias,
	Peter Maydell, qemu-arm, Tao Tang, Philippe Mathieu-Daudé,
	Michael S. Tsirkin, Oscar Alejandro Sánchez Lucero

Convert hw/misc/ivshmem-pci.c from the deprecated
device_class_set_legacy_reset() interface to the three-phase Resettable
interface, implementing the hold phase.

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
---
 hw/misc/ivshmem-pci.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/hw/misc/ivshmem-pci.c b/hw/misc/ivshmem-pci.c
index 372e9dc58d..7345e44624 100644
--- a/hw/misc/ivshmem-pci.c
+++ b/hw/misc/ivshmem-pci.c
@@ -730,9 +730,9 @@ static void ivshmem_msix_vector_use(IVShmemState *s)
 
 static void ivshmem_disable_irqfd(IVShmemState *s);
 
-static void ivshmem_reset(DeviceState *d)
+static void ivshmem_hold_reset(Object *obj, ResetType type)
 {
-    IVShmemState *s = IVSHMEM_COMMON(d);
+    IVShmemState *s = IVSHMEM_COMMON(obj);
 
     ivshmem_disable_irqfd(s);
 
@@ -1006,6 +1006,7 @@ static int ivshmem_post_load(void *opaque, int version_id)
 static void ivshmem_common_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
+    ResettableClass *rc = RESETTABLE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
 
     k->realize = ivshmem_common_realize;
@@ -1015,7 +1016,7 @@ static void ivshmem_common_class_init(ObjectClass *klass, const void *data)
     k->device_id = PCI_DEVICE_ID_IVSHMEM;
     k->class_id = PCI_CLASS_MEMORY_RAM;
     k->revision = 1;
-    device_class_set_legacy_reset(dc, ivshmem_reset);
+    rc->phases.hold = ivshmem_hold_reset;
     set_bit(DEVICE_CATEGORY_MISC, dc->categories);
     dc->desc = "Inter-VM shared memory";
 }

-- 
2.53.0



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

* [PATCH 5/6] hw/misc/led: Convert to Resettable interface
  2026-12-04  5:43 [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface Oscar Alejandro Sánchez Lucero
                   ` (3 preceding siblings ...)
  2026-12-04  5:43 ` [PATCH 4/6] hw/misc/ivshmem-pci: " Oscar Alejandro Sánchez Lucero
@ 2026-12-04  5:43 ` Oscar Alejandro Sánchez Lucero
  2026-12-04  5:43 ` [PATCH 6/6] hw/misc/pci-testdev: " Oscar Alejandro Sánchez Lucero
  2026-12-04 11:35 ` [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices " Daniel P. Berrangé
  6 siblings, 0 replies; 11+ messages in thread
From: Oscar Alejandro Sánchez Lucero @ 2026-12-04  5:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: Francisco Iglesias, Alistair Francis, Edgar E. Iglesias,
	Peter Maydell, qemu-arm, Tao Tang, Philippe Mathieu-Daudé,
	Michael S. Tsirkin, Oscar Alejandro Sánchez Lucero

Convert hw/misc/led.c from the deprecated
device_class_set_legacy_reset() interface to the three-phase Resettable
interface, implementing the hold phase.

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
---
 hw/misc/led.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/hw/misc/led.c b/hw/misc/led.c
index 8b758c1b76..b94d4ac89b 100644
--- a/hw/misc/led.c
+++ b/hw/misc/led.c
@@ -66,9 +66,9 @@ static void led_set_state_gpio_handler(void *opaque, int line, int new_state)
     led_set_state(s, !!new_state == s->gpio_active_high);
 }
 
-static void led_reset(DeviceState *dev)
+static void led_hold_reset(Object *obj, ResetType type)
 {
-    LEDState *s = LED(dev);
+    LEDState *s = LED(obj);
 
     led_set_state(s, s->gpio_active_high);
 }
@@ -110,10 +110,11 @@ static const Property led_properties[] = {
 static void led_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
+    ResettableClass *rc = RESETTABLE_CLASS(klass);
 
     dc->desc = "LED";
     dc->vmsd = &vmstate_led;
-    device_class_set_legacy_reset(dc, led_reset);
+    rc->phases.hold = led_hold_reset;
     dc->realize = led_realize;
     set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
     device_class_set_props(dc, led_properties);

-- 
2.53.0



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

* [PATCH 6/6] hw/misc/pci-testdev: Convert to Resettable interface
  2026-12-04  5:43 [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface Oscar Alejandro Sánchez Lucero
                   ` (4 preceding siblings ...)
  2026-12-04  5:43 ` [PATCH 5/6] hw/misc/led: " Oscar Alejandro Sánchez Lucero
@ 2026-12-04  5:43 ` Oscar Alejandro Sánchez Lucero
  2026-12-04 11:35 ` [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices " Daniel P. Berrangé
  6 siblings, 0 replies; 11+ messages in thread
From: Oscar Alejandro Sánchez Lucero @ 2026-12-04  5:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: Francisco Iglesias, Alistair Francis, Edgar E. Iglesias,
	Peter Maydell, qemu-arm, Tao Tang, Philippe Mathieu-Daudé,
	Michael S. Tsirkin, Oscar Alejandro Sánchez Lucero

Convert hw/misc/pci-testdev.c from the deprecated
device_class_set_legacy_reset() interface to the three-phase Resettable
interface, implementing the hold phase.

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
---
 hw/misc/pci-testdev.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev.c
index 3c3887afe0..5e28cf595f 100644
--- a/hw/misc/pci-testdev.c
+++ b/hw/misc/pci-testdev.c
@@ -320,9 +320,9 @@ pci_testdev_uninit(PCIDevice *dev)
     g_free(d->tests);
 }
 
-static void qdev_pci_testdev_reset(DeviceState *dev)
+static void pci_testdev_hold_reset(Object *obj, ResetType type)
 {
-    PCITestDevState *d = PCI_TEST_DEV(dev);
+    PCITestDevState *d = PCI_TEST_DEV(obj);
     pci_testdev_reset(d);
 }
 
@@ -334,6 +334,7 @@ static const Property pci_testdev_properties[] = {
 static void pci_testdev_class_init(ObjectClass *klass, const void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
+    ResettableClass *rc = RESETTABLE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
 
     k->realize = pci_testdev_realize;
@@ -344,7 +345,7 @@ static void pci_testdev_class_init(ObjectClass *klass, const void *data)
     k->class_id = PCI_CLASS_OTHERS;
     dc->desc = "PCI Test Device";
     set_bit(DEVICE_CATEGORY_MISC, dc->categories);
-    device_class_set_legacy_reset(dc, qdev_pci_testdev_reset);
+    rc->phases.hold = pci_testdev_hold_reset;
     device_class_set_props(dc, pci_testdev_properties);
 }
 

-- 
2.53.0



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

* Re: [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface
  2026-12-04  5:43 [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface Oscar Alejandro Sánchez Lucero
                   ` (5 preceding siblings ...)
  2026-12-04  5:43 ` [PATCH 6/6] hw/misc/pci-testdev: " Oscar Alejandro Sánchez Lucero
@ 2026-12-04 11:35 ` Daniel P. Berrangé
  2026-12-04 11:59   ` Alejandro Lucero
  6 siblings, 1 reply; 11+ messages in thread
From: Daniel P. Berrangé @ 2026-12-04 11:35 UTC (permalink / raw)
  To: Oscar Alejandro Sánchez Lucero
  Cc: qemu-devel, Francisco Iglesias, Alistair Francis,
	Edgar E. Iglesias, Peter Maydell, qemu-arm, Tao Tang,
	Philippe Mathieu-Daudé, Michael S. Tsirkin

I now count on the order of 460 patches sent in the space of a week,
which of course matches the number of deviecs not using Resettable
yet. None the less this is a huge volume to drop on the QEMU in such
a timeframe.

Please be aware that the most limited resource we have in the QEMU
project is maintainer review time, and this cleanup is going to
have a notable impact on that.

If you're going to do such *giant* cleanups in a project, please
communicate the intent before sending patches, to understand if
the benefits of a cleanup are going to outweigh the review costs
from the POV of maintainers.

Finally, can you confirm *how* you have created these patches ?

Did you do the conversions manually yourself, or use an automated
tool like coccocinelle to do an automated deterministic conversion,
or use an LLM agent to do a automated non-deterministic conversion ?
Knowing the approach taken influences the level of attention that
reviewers will need to put into the patches.

On Fri, Dec 04, 2026 at 05:43:23AM +0000, Oscar Alejandro Sánchez Lucero wrote:
> Convert Xilinx Versal/Zynq, PCI test/shared-memory, and LED devices in
> hw/misc/ from the deprecated device_class_set_legacy_reset() API to the
> three-phase Resettable interface by implementing the hold phase.
> 
> Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
> ---
> Oscar Alejandro Sánchez Lucero (6):
>       hw/misc/xlnx-versal-cfu: Convert to Resettable interface
>       hw/misc/xlnx-zynq-ddrc: Convert to Resettable interface
>       hw/misc/iommu-testdev: Convert to Resettable interface
>       hw/misc/ivshmem-pci: Convert to Resettable interface
>       hw/misc/led: Convert to Resettable interface
>       hw/misc/pci-testdev: Convert to Resettable interface
> 
>  hw/misc/iommu-testdev.c   | 7 ++++---
>  hw/misc/ivshmem-pci.c     | 7 ++++---
>  hw/misc/led.c             | 7 ++++---
>  hw/misc/pci-testdev.c     | 7 ++++---
>  hw/misc/xlnx-versal-cfu.c | 7 ++++---
>  hw/misc/xlnx-zynq-ddrc.c  | 7 ++++---
>  6 files changed, 24 insertions(+), 18 deletions(-)
> ---
> base-commit: f210851c088e477e9b79fa906b60c4f15a8bb011
> change-id: 20261204-misc-resettable-xilinx-pci-8544f5b18208
> 
> Best regards,
> --  
> Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
> 
> 
> 

With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|



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

* Re: [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface
  2026-12-04 11:35 ` [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices " Daniel P. Berrangé
@ 2026-12-04 11:59   ` Alejandro Lucero
  2026-12-04 12:08     ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 11+ messages in thread
From: Alejandro Lucero @ 2026-12-04 11:59 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: qemu-devel, Francisco Iglesias, Alistair Francis,
	Edgar E. Iglesias, Peter Maydell, qemu-arm, Tao Tang,
	Philippe Mathieu-Daudé, Michael S. Tsirkin

Hi Daniel,

Thank you for the review and feedback.

I apologize for sending such a large volume of patches in a short window
without coordinating on the list before. I will hold off on sending the
remaining tail of dependent patches until the current patches are
processed. I understand if maintainers need time or prefer to leave
these for later. Whenever reviews come in, I will be around and happy to
follow up, address feedback, or resend as needed.

About how the patches were created: I did not use an unsupervised LLM
agent to generate or push commits. I used Python scripts and LLM
assistance to help analyze the tree and draft the boilerplate changes,
while inspecting each file individually to verify its QOM hierarchy,
parent reset behavior, internal reset call sites, and the phase
semantics (such as IOMMU exit phases, parent phase chaining, and soft
reset paths). Every patch was also built locally and verified with
scripts/checkpatch.pl before sending.

Thank you again for your time. Going forward, I will pace submissions
more slowly and discuss any cleanups on the list first.

Best regards,
Alejandro

El vie, 4 dic 2026 a la(s) 5:35 a.m., Daniel P. Berrangé
(berrange@redhat.com) escribió:
>
> I now count on the order of 460 patches sent in the space of a week,
> which of course matches the number of deviecs not using Resettable
> yet. None the less this is a huge volume to drop on the QEMU in such
> a timeframe.
>
> Please be aware that the most limited resource we have in the QEMU
> project is maintainer review time, and this cleanup is going to
> have a notable impact on that.
>
> If you're going to do such *giant* cleanups in a project, please
> communicate the intent before sending patches, to understand if
> the benefits of a cleanup are going to outweigh the review costs
> from the POV of maintainers.
>
> Finally, can you confirm *how* you have created these patches ?
>
> Did you do the conversions manually yourself, or use an automated
> tool like coccocinelle to do an automated deterministic conversion,
> or use an LLM agent to do a automated non-deterministic conversion ?
> Knowing the approach taken influences the level of attention that
> reviewers will need to put into the patches.
>
> On Fri, Dec 04, 2026 at 05:43:23AM +0000, Oscar Alejandro Sánchez Lucero wrote:
> > Convert Xilinx Versal/Zynq, PCI test/shared-memory, and LED devices in
> > hw/misc/ from the deprecated device_class_set_legacy_reset() API to the
> > three-phase Resettable interface by implementing the hold phase.
> >
> > Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
> > ---
> > Oscar Alejandro Sánchez Lucero (6):
> >       hw/misc/xlnx-versal-cfu: Convert to Resettable interface
> >       hw/misc/xlnx-zynq-ddrc: Convert to Resettable interface
> >       hw/misc/iommu-testdev: Convert to Resettable interface
> >       hw/misc/ivshmem-pci: Convert to Resettable interface
> >       hw/misc/led: Convert to Resettable interface
> >       hw/misc/pci-testdev: Convert to Resettable interface
> >
> >  hw/misc/iommu-testdev.c   | 7 ++++---
> >  hw/misc/ivshmem-pci.c     | 7 ++++---
> >  hw/misc/led.c             | 7 ++++---
> >  hw/misc/pci-testdev.c     | 7 ++++---
> >  hw/misc/xlnx-versal-cfu.c | 7 ++++---
> >  hw/misc/xlnx-zynq-ddrc.c  | 7 ++++---
> >  6 files changed, 24 insertions(+), 18 deletions(-)
> > ---
> > base-commit: f210851c088e477e9b79fa906b60c4f15a8bb011
> > change-id: 20261204-misc-resettable-xilinx-pci-8544f5b18208
> >
> > Best regards,
> > --
> > Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
> >
> >
> >
>
> With regards,
> Daniel
> --
> |: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
> |: https://libvirt.org          ~~          https://entangle-photo.org :|
> |: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
>


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

* Re: [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface
  2026-12-04 11:59   ` Alejandro Lucero
@ 2026-12-04 12:08     ` Philippe Mathieu-Daudé
  2026-12-04 13:02       ` Alejandro Lucero
  0 siblings, 1 reply; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-12-04 12:08 UTC (permalink / raw)
  To: Alejandro Lucero, Daniel P. Berrangé
  Cc: qemu-devel, Francisco Iglesias, Alistair Francis,
	Edgar E. Iglesias, Peter Maydell, qemu-arm, Tao Tang,
	Michael S. Tsirkin

Hi Alejandro,

On 4/12/26 12:59, Alejandro Lucero wrote:
> Hi Daniel,
> 
> Thank you for the review and feedback.
> 
> I apologize for sending such a large volume of patches in a short window
> without coordinating on the list before. I will hold off on sending the
> remaining tail of dependent patches until the current patches are
> processed. I understand if maintainers need time or prefer to leave
> these for later. Whenever reviews come in, I will be around and happy to
> follow up, address feedback, or resend as needed.
> 
> About how the patches were created: I did not use an unsupervised LLM
> agent to generate or push commits. I used Python scripts and LLM
> assistance to help analyze the tree and draft the boilerplate changes,
> while inspecting each file individually to verify its QOM hierarchy,
> parent reset behavior, internal reset call sites, and the phase
> semantics (such as IOMMU exit phases, parent phase chaining, and soft
> reset paths). Every patch was also built locally and verified with
> scripts/checkpatch.pl before sending.

Can you share the work on a single git branch? That would be simpler
for maintainers than applying all the distinct (well separated) series.

> 
> Thank you again for your time. Going forward, I will pace submissions
> more slowly and discuss any cleanups on the list first.
> 
> Best regards,
> Alejandro
> 
> El vie, 4 dic 2026 a la(s) 5:35 a.m., Daniel P. Berrangé
> (berrange@redhat.com) escribió:
>>
>> I now count on the order of 460 patches sent in the space of a week,
>> which of course matches the number of deviecs not using Resettable
>> yet. None the less this is a huge volume to drop on the QEMU in such
>> a timeframe.
>>
>> Please be aware that the most limited resource we have in the QEMU
>> project is maintainer review time, and this cleanup is going to
>> have a notable impact on that.
>>
>> If you're going to do such *giant* cleanups in a project, please
>> communicate the intent before sending patches, to understand if
>> the benefits of a cleanup are going to outweigh the review costs
>> from the POV of maintainers.
>>
>> Finally, can you confirm *how* you have created these patches ?
>>
>> Did you do the conversions manually yourself, or use an automated
>> tool like coccocinelle to do an automated deterministic conversion,
>> or use an LLM agent to do a automated non-deterministic conversion ?
>> Knowing the approach taken influences the level of attention that
>> reviewers will need to put into the patches.
>>
>> On Fri, Dec 04, 2026 at 05:43:23AM +0000, Oscar Alejandro Sánchez Lucero wrote:
>>> Convert Xilinx Versal/Zynq, PCI test/shared-memory, and LED devices in
>>> hw/misc/ from the deprecated device_class_set_legacy_reset() API to the
>>> three-phase Resettable interface by implementing the hold phase.
>>>
>>> Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
>>> ---
>>> Oscar Alejandro Sánchez Lucero (6):
>>>        hw/misc/xlnx-versal-cfu: Convert to Resettable interface
>>>        hw/misc/xlnx-zynq-ddrc: Convert to Resettable interface
>>>        hw/misc/iommu-testdev: Convert to Resettable interface
>>>        hw/misc/ivshmem-pci: Convert to Resettable interface
>>>        hw/misc/led: Convert to Resettable interface
>>>        hw/misc/pci-testdev: Convert to Resettable interface
>>>
>>>   hw/misc/iommu-testdev.c   | 7 ++++---
>>>   hw/misc/ivshmem-pci.c     | 7 ++++---
>>>   hw/misc/led.c             | 7 ++++---
>>>   hw/misc/pci-testdev.c     | 7 ++++---
>>>   hw/misc/xlnx-versal-cfu.c | 7 ++++---
>>>   hw/misc/xlnx-zynq-ddrc.c  | 7 ++++---
>>>   6 files changed, 24 insertions(+), 18 deletions(-)
>>> ---
>>> base-commit: f210851c088e477e9b79fa906b60c4f15a8bb011
>>> change-id: 20261204-misc-resettable-xilinx-pci-8544f5b18208
>>>
>>> Best regards,
>>> --
>>> Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
>>>
>>>
>>>
>>
>> With regards,
>> Daniel
>> --
>> |: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
>> |: https://libvirt.org          ~~          https://entangle-photo.org :|
>> |: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
>>
> 



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

* Re: [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface
  2026-12-04 12:08     ` Philippe Mathieu-Daudé
@ 2026-12-04 13:02       ` Alejandro Lucero
  0 siblings, 0 replies; 11+ messages in thread
From: Alejandro Lucero @ 2026-12-04 13:02 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Daniel P. Berrangé, qemu-devel, Francisco Iglesias,
	Alistair Francis, Edgar E. Iglesias, Peter Maydell, qemu-arm,
	Tao Tang, Michael S. Tsirkin

Hi Daniel,

Sorry for the slight delay (I just set up a GitLab account for this!).
I have consolidated all the series already posted to the list onto a
single clean branch (`resettable-all`) on top of master:

  https://gitlab.com/AleSZLucero/qemu/-/tree/resettable-all

Please let me know if you prefer to keep this branch strictly to the
patches already sent on list, or if you would also like me to append the
remaining 14 dependent patches at the end of the same branch.

Best regards,
Alejandro

El vie, 4 dic 2026 a la(s) 6:08 a.m., Philippe Mathieu-Daudé
(philmd@oss.qualcomm.com) escribió:
>
> Hi Alejandro,
>
> On 4/12/26 12:59, Alejandro Lucero wrote:
> > Hi Daniel,
> >
> > Thank you for the review and feedback.
> >
> > I apologize for sending such a large volume of patches in a short window
> > without coordinating on the list before. I will hold off on sending the
> > remaining tail of dependent patches until the current patches are
> > processed. I understand if maintainers need time or prefer to leave
> > these for later. Whenever reviews come in, I will be around and happy to
> > follow up, address feedback, or resend as needed.
> >
> > About how the patches were created: I did not use an unsupervised LLM
> > agent to generate or push commits. I used Python scripts and LLM
> > assistance to help analyze the tree and draft the boilerplate changes,
> > while inspecting each file individually to verify its QOM hierarchy,
> > parent reset behavior, internal reset call sites, and the phase
> > semantics (such as IOMMU exit phases, parent phase chaining, and soft
> > reset paths). Every patch was also built locally and verified with
> > scripts/checkpatch.pl before sending.
>
> Can you share the work on a single git branch? That would be simpler
> for maintainers than applying all the distinct (well separated) series.
>
> >
> > Thank you again for your time. Going forward, I will pace submissions
> > more slowly and discuss any cleanups on the list first.
> >
> > Best regards,
> > Alejandro
> >
> > El vie, 4 dic 2026 a la(s) 5:35 a.m., Daniel P. Berrangé
> > (berrange@redhat.com) escribió:
> >>
> >> I now count on the order of 460 patches sent in the space of a week,
> >> which of course matches the number of deviecs not using Resettable
> >> yet. None the less this is a huge volume to drop on the QEMU in such
> >> a timeframe.
> >>
> >> Please be aware that the most limited resource we have in the QEMU
> >> project is maintainer review time, and this cleanup is going to
> >> have a notable impact on that.
> >>
> >> If you're going to do such *giant* cleanups in a project, please
> >> communicate the intent before sending patches, to understand if
> >> the benefits of a cleanup are going to outweigh the review costs
> >> from the POV of maintainers.
> >>
> >> Finally, can you confirm *how* you have created these patches ?
> >>
> >> Did you do the conversions manually yourself, or use an automated
> >> tool like coccocinelle to do an automated deterministic conversion,
> >> or use an LLM agent to do a automated non-deterministic conversion ?
> >> Knowing the approach taken influences the level of attention that
> >> reviewers will need to put into the patches.
> >>
> >> On Fri, Dec 04, 2026 at 05:43:23AM +0000, Oscar Alejandro Sánchez Lucero wrote:
> >>> Convert Xilinx Versal/Zynq, PCI test/shared-memory, and LED devices in
> >>> hw/misc/ from the deprecated device_class_set_legacy_reset() API to the
> >>> three-phase Resettable interface by implementing the hold phase.
> >>>
> >>> Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
> >>> ---
> >>> Oscar Alejandro Sánchez Lucero (6):
> >>>        hw/misc/xlnx-versal-cfu: Convert to Resettable interface
> >>>        hw/misc/xlnx-zynq-ddrc: Convert to Resettable interface
> >>>        hw/misc/iommu-testdev: Convert to Resettable interface
> >>>        hw/misc/ivshmem-pci: Convert to Resettable interface
> >>>        hw/misc/led: Convert to Resettable interface
> >>>        hw/misc/pci-testdev: Convert to Resettable interface
> >>>
> >>>   hw/misc/iommu-testdev.c   | 7 ++++---
> >>>   hw/misc/ivshmem-pci.c     | 7 ++++---
> >>>   hw/misc/led.c             | 7 ++++---
> >>>   hw/misc/pci-testdev.c     | 7 ++++---
> >>>   hw/misc/xlnx-versal-cfu.c | 7 ++++---
> >>>   hw/misc/xlnx-zynq-ddrc.c  | 7 ++++---
> >>>   6 files changed, 24 insertions(+), 18 deletions(-)
> >>> ---
> >>> base-commit: f210851c088e477e9b79fa906b60c4f15a8bb011
> >>> change-id: 20261204-misc-resettable-xilinx-pci-8544f5b18208
> >>>
> >>> Best regards,
> >>> --
> >>> Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
> >>>
> >>>
> >>>
> >>
> >> With regards,
> >> Daniel
> >> --
> >> |: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
> >> |: https://libvirt.org          ~~          https://entangle-photo.org :|
> >> |: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
> >>
> >
>


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

end of thread, other threads:[~2026-12-04 13:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  5:43 [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices to Resettable interface Oscar Alejandro Sánchez Lucero
2026-12-04  5:43 ` [PATCH 1/6] hw/misc/xlnx-versal-cfu: Convert " Oscar Alejandro Sánchez Lucero
2026-12-04  5:43 ` [PATCH 2/6] hw/misc/xlnx-zynq-ddrc: " Oscar Alejandro Sánchez Lucero
2026-12-04  5:43 ` [PATCH 3/6] hw/misc/iommu-testdev: " Oscar Alejandro Sánchez Lucero
2026-12-04  5:43 ` [PATCH 4/6] hw/misc/ivshmem-pci: " Oscar Alejandro Sánchez Lucero
2026-12-04  5:43 ` [PATCH 5/6] hw/misc/led: " Oscar Alejandro Sánchez Lucero
2026-12-04  5:43 ` [PATCH 6/6] hw/misc/pci-testdev: " Oscar Alejandro Sánchez Lucero
2026-12-04 11:35 ` [PATCH 0/6] hw/misc: Convert Xilinx and PCI/generic devices " Daniel P. Berrangé
2026-12-04 11:59   ` Alejandro Lucero
2026-12-04 12:08     ` Philippe Mathieu-Daudé
2026-12-04 13:02       ` Alejandro Lucero

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.