aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/test-string-input-visitor.c
diff options
context:
space:
mode:
authorMinwoo Im <minwoo.im.dev@gmail.com>2021-01-24 11:54:46 +0900
committerKlaus Jensen <k.jensen@samsung.com>2021-03-09 11:00:57 +0100
commit982ed66bb2e89bdb029b186232946fe2e7c217e1 (patch)
treede64c20c1d8213d74620e6feed94477d113b7db8 /tests/unit/test-string-input-visitor.c
parenteb2e89747eca57fb0028001b28b3c4e0c1540e3a (diff)
downloadqemu-982ed66bb2e89bdb029b186232946fe2e7c217e1.zip
qemu-982ed66bb2e89bdb029b186232946fe2e7c217e1.tar.gz
qemu-982ed66bb2e89bdb029b186232946fe2e7c217e1.tar.bz2
hw/block/nvme: support to map controller to a subsystem
nvme controller(nvme) can be mapped to a NVMe subsystem(nvme-subsys). This patch maps a controller to a subsystem by adding a parameter 'subsys' to the nvme device. To map a controller to a subsystem, we need to put nvme-subsys first and then maps the subsystem to the controller: -device nvme-subsys,id=subsys0 -device nvme,serial=foo,id=nvme0,subsys=subsys0 If 'subsys' property is not given to the nvme controller, then subsystem NQN will be created with serial (e.g., 'foo' in above example), Otherwise, it will be based on subsys id (e.g., 'subsys0' in above example). Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com> Tested-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'tests/unit/test-string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions