OSDN Git Service

hw/nvme: store a pointer to the NvmeSubsystem in the NvmeNamespace
authorNiklas Cassel <niklas.cassel@wdc.com>
Mon, 20 Feb 2023 11:59:23 +0000 (12:59 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 6 Mar 2023 14:28:02 +0000 (15:28 +0100)
commit534a93d3a0bbde4248889ece1e0874ab98a96508
tree6bad47db9af43fd69f2b9fd488b714636d829d8b
parenta555af1707be7f564320cbb444ef68448ff16549
hw/nvme: store a pointer to the NvmeSubsystem in the NvmeNamespace

Each NvmeNamespace can be used by serveral controllers,
but a NvmeNamespace can at most belong to a single NvmeSubsystem.
Store a pointer to the NvmeSubsystem, if the namespace was realized
with a NvmeSubsystem.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ns.c
hw/nvme/nvme.h