Searched hist:"5 ffbaeed164da1a87619a3abfadee0c7d63ea1c4" (Results 1 – 4 of 4) sorted by relevance
/openbmc/qemu/hw/nvme/ |
H A D | subsys.c | diff 5ffbaeed164da1a87619a3abfadee0c7d63ea1c4 Fri Apr 23 11:55:11 CDT 2021 Klaus Jensen <k.jensen@samsung.com> hw/nvme: fix controller hot unplugging
Prior to this patch the nvme-ns devices are always children of the NvmeBus owned by the NvmeCtrl. This causes the namespaces to be unrealized when the parent device is removed. However, when subsystems are involved, this is not what we want since the namespaces may be attached to other controllers as well.
This patch adds an additional NvmeBus on the subsystem device. When nvme-ns devices are realized, if the parent controller device is linked to a subsystem, the parent bus is set to the subsystem one instead. This makes sure that namespaces are kept alive and not unrealized.
Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
|
H A D | ns.c | diff 5ffbaeed164da1a87619a3abfadee0c7d63ea1c4 Fri Apr 23 11:55:11 CDT 2021 Klaus Jensen <k.jensen@samsung.com> hw/nvme: fix controller hot unplugging
Prior to this patch the nvme-ns devices are always children of the NvmeBus owned by the NvmeCtrl. This causes the namespaces to be unrealized when the parent device is removed. However, when subsystems are involved, this is not what we want since the namespaces may be attached to other controllers as well.
This patch adds an additional NvmeBus on the subsystem device. When nvme-ns devices are realized, if the parent controller device is linked to a subsystem, the parent bus is set to the subsystem one instead. This makes sure that namespaces are kept alive and not unrealized.
Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
|
H A D | nvme.h | diff 5ffbaeed164da1a87619a3abfadee0c7d63ea1c4 Fri Apr 23 11:55:11 CDT 2021 Klaus Jensen <k.jensen@samsung.com> hw/nvme: fix controller hot unplugging
Prior to this patch the nvme-ns devices are always children of the NvmeBus owned by the NvmeCtrl. This causes the namespaces to be unrealized when the parent device is removed. However, when subsystems are involved, this is not what we want since the namespaces may be attached to other controllers as well.
This patch adds an additional NvmeBus on the subsystem device. When nvme-ns devices are realized, if the parent controller device is linked to a subsystem, the parent bus is set to the subsystem one instead. This makes sure that namespaces are kept alive and not unrealized.
Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
|
H A D | ctrl.c | diff 5ffbaeed164da1a87619a3abfadee0c7d63ea1c4 Fri Apr 23 11:55:11 CDT 2021 Klaus Jensen <k.jensen@samsung.com> hw/nvme: fix controller hot unplugging
Prior to this patch the nvme-ns devices are always children of the NvmeBus owned by the NvmeCtrl. This causes the namespaces to be unrealized when the parent device is removed. However, when subsystems are involved, this is not what we want since the namespaces may be attached to other controllers as well.
This patch adds an additional NvmeBus on the subsystem device. When nvme-ns devices are realized, if the parent controller device is linked to a subsystem, the parent bus is set to the subsystem one instead. This makes sure that namespaces are kept alive and not unrealized.
Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
|