From: Klaus Jensen <k.jen...@samsung.com>

Commit cd59f50ab017 caused a regression on nvme hotplugging for devices
with an implicit nvm subsystem.

The nvme-subsys device was incorrectly left with being marked as
non-hotpluggable. Fix this.

Cc: qemu-sta...@nongnu.org
Reported-by: Stéphane Graber <stgra...@stgraber.org>
Tested-by: Stéphane Graber <stgra...@stgraber.org>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2950
Fixes: cd59f50ab017 ("hw/nvme: always initialize a subsystem")
Signed-off-by: Klaus Jensen <k.jen...@samsung.com>
---
 hw/nvme/subsys.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/nvme/subsys.c b/hw/nvme/subsys.c
index 
38271d78c8bdc6dfa07cbea6b41b6a6083d62203..777e1c620fd0372ea1d9e193a5cd0903b9ffb019
 100644
--- a/hw/nvme/subsys.c
+++ b/hw/nvme/subsys.c
@@ -226,7 +226,6 @@ static void nvme_subsys_class_init(ObjectClass *oc, const 
void *data)
 
     dc->realize = nvme_subsys_realize;
     dc->desc = "Virtual NVMe subsystem";
-    dc->hotpluggable = false;
 
     device_class_set_props(dc, nvme_subsystem_props);
 }

---
base-commit: a9e0c9c0f14e19d23443ac24c8080b4708d2eab8
change-id: 20250507-fix-non-hotpluggable-subsys-023a3d817c91

Best regards,
-- 
Klaus Jensen <k.jen...@samsung.com>


Reply via email to