]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/nvme: reattach subsystem namespaces on hotplug
authorHannes Reinecke <hare@suse.de>
Thu, 9 Sep 2021 09:43:08 +0000 (11:43 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Fri, 19 Nov 2021 06:31:34 +0000 (07:31 +0100)
commit9fc6e86e8b69e2e672cbb9c25cddc3b9deb96afb
tree5236b40752492711e2887427d20d9f04cafa95b5
parent44a3aa0608f01274418487b655d42467c1d8334e
hw/nvme: reattach subsystem namespaces on hotplug

With commit 5ffbaeed16 ("hw/nvme: fix controller hot unplugging")
namespaces get moved from the controller to the subsystem if one
is specified.
That keeps the namespaces alive after a controller hot-unplug, but
after a controller hotplug we have to reconnect the namespaces
from the subsystem to the controller.

Fixes: 5ffbaeed16 ("hw/nvme: fix controller hot unplugging")
Cc: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
[k.jensen: only attach to shared and non-detached namespaces]
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/subsys.c