[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 07/10] hw/core/qdev: replace deprecated device_le
From: |
Damien Hedde |
Subject: |
[Qemu-devel] [PATCH v4 07/10] hw/core/qdev: replace deprecated device_legacy_reset when hotplugging device |
Date: |
Wed, 21 Aug 2019 18:33:38 +0200 |
Replace the hotplugged device_legacy_reset by device_cold_reset.
Since we're talking hotplug, cold reset seems the proper reset type.
This does change the behavior since the new function propagates
also the reset to eventual child buses. But it should be a bug if
resetting eventual child buses fail.
Signed-off-by: Damien Hedde <address@hidden>
---
hw/core/qdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index 85c85822fd..1638bc9f3b 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -876,7 +876,7 @@ static void device_set_realized(Object *obj, bool value,
Error **errp)
}
}
if (dev->hotplugged) {
- device_legacy_reset(dev);
+ device_cold_reset(dev);
}
dev->pending_deleted_event = false;
--
2.22.0
- [Qemu-devel] [PATCH v4 00/10] Multi-phase reset mechanism, Damien Hedde, 2019/08/21
- [Qemu-devel] [PATCH v4 03/10] hw/core: add Resettable interface in Bus and Device classes, Damien Hedde, 2019/08/21
- [Qemu-devel] [PATCH v4 02/10] hw/core: create Resettable QOM interface, Damien Hedde, 2019/08/21
- [Qemu-devel] [PATCH v4 04/10] docs/devel/reset.txt: create doc about Resettable interface, Damien Hedde, 2019/08/21
- [Qemu-devel] [PATCH v4 05/10] vl.c: replace deprecated qbus_reset_all registration, Damien Hedde, 2019/08/21
- [Qemu-devel] [PATCH v4 06/10] hw/s390x/ipl.c: replace deprecated qbus_reset_all registration, Damien Hedde, 2019/08/21
- [Qemu-devel] [PATCH v4 01/10] add device_legacy_reset function to prepare for reset api change, Damien Hedde, 2019/08/21
- [Qemu-devel] [PATCH v4 07/10] hw/core/qdev: replace deprecated device_legacy_reset when hotplugging device,
Damien Hedde <=
- [Qemu-devel] [PATCH v4 08/10] hw/core/resettable: add support for warm reset, Damien Hedde, 2019/08/21
- [Qemu-devel] [PATCH v4 09/10] hw/core/: add warm reset helpers for devices and buses, Damien Hedde, 2019/08/21
- [Qemu-devel] [PATCH v4 10/10] docs/devel/reset.txt: add documentation about warm reset, Damien Hedde, 2019/08/21
- Re: [Qemu-devel] [PATCH v4 00/10] Multi-phase reset mechanism, no-reply, 2019/08/21