]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/nvme: force nvme-ns param 'shared' to false if no nvme-subsys node
authorNiklas Cassel <niklas.cassel@wdc.com>
Tue, 28 Jun 2022 12:22:09 +0000 (14:22 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Fri, 15 Jul 2022 08:40:33 +0000 (10:40 +0200)
commitdfa82ac201af28c451271d3f1dc6827b431cd827
tree1f676461b3446f986483de5e265b8aadec71f08b
parent146b5fa505fc21baa129c7538936fbdd9875b6ed
hw/nvme: force nvme-ns param 'shared' to false if no nvme-subsys node

Since commit 916b0f0b5264 ("hw/nvme: change nvme-ns 'shared' default")
the default value of nvme-ns param 'shared' is set to true, regardless
if there is a nvme-subsys node or not.

On a system without a nvme-subsys node, a namespace will never be able
to be attached to more than one controller, so for this configuration,
it is counterintuitive for this parameter to be set by default.

Force the nvme-ns param 'shared' to false for configurations where
there is no nvme-subsys node, as the namespace will never be able to
attach to more than one controller anyway.

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