diff options
author | Minwoo Im | 2021-01-24 03:54:46 +0100 |
---|---|---|
committer | Klaus Jensen | 2021-03-09 11:00:57 +0100 |
commit | 982ed66bb2e89bdb029b186232946fe2e7c217e1 (patch) | |
tree | de64c20c1d8213d74620e6feed94477d113b7db8 /include | |
parent | hw/block/nvme: introduce nvme-subsys device (diff) | |
download | qemu-982ed66bb2e89bdb029b186232946fe2e7c217e1.tar.gz qemu-982ed66bb2e89bdb029b186232946fe2e7c217e1.tar.xz qemu-982ed66bb2e89bdb029b186232946fe2e7c217e1.zip |
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 'include')
0 files changed, 0 insertions, 0 deletions