aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Jensen <k.jensen@samsung.com>2025-05-07 09:30:55 +0200
committerKlaus Jensen <k.jensen@samsung.com>2025-05-15 12:18:06 +0200
commit0b1c23a582f7bc721a9b858c289a8d165152a6a0 (patch)
tree0161f34e391fc5ad1c8b4e33b016d10ffc2acfe6
parent864813878951b44e964eb4c012d832fd21f8cc0c (diff)
downloadqemu-0b1c23a582f7bc721a9b858c289a8d165152a6a0.zip
qemu-0b1c23a582f7bc721a9b858c289a8d165152a6a0.tar.gz
qemu-0b1c23a582f7bc721a9b858c289a8d165152a6a0.tar.bz2
hw/nvme: fix nvme hotplugging
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-stable@nongnu.org Reported-by: Stéphane Graber <stgraber@stgraber.org> Tested-by: Stéphane Graber <stgraber@stgraber.org> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2950 Fixes: cd59f50ab017 ("hw/nvme: always initialize a subsystem") Reviewed-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
-rw-r--r--hw/nvme/subsys.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/nvme/subsys.c b/hw/nvme/subsys.c
index 38271d7..777e1c6 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);
}