diff options
author | Keith Busch <kbusch@kernel.org> | 2020-09-30 10:58:03 -0700 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2020-10-27 11:29:25 +0100 |
commit | 8c5cea85934eb7b580ced14f7f188e19880d4c1c (patch) | |
tree | 3cb2e1fabfa9727da3b5e013f9e99a9d1b01db7c /hw/block | |
parent | 492f9a8d79f2e815007e985cad8dd73b713722f0 (diff) | |
download | qemu-8c5cea85934eb7b580ced14f7f188e19880d4c1c.zip qemu-8c5cea85934eb7b580ced14f7f188e19880d4c1c.tar.gz qemu-8c5cea85934eb7b580ced14f7f188e19880d4c1c.tar.bz2 |
hw/block/nvme: support for admin-only command set
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/block')
-rw-r--r-- | hw/block/nvme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 94db06c..c1323ca 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -2751,6 +2751,7 @@ static void nvme_init_ctrl(NvmeCtrl *n, PCIDevice *pci_dev) NVME_CAP_SET_CQR(n->bar.cap, 1); NVME_CAP_SET_TO(n->bar.cap, 0xf); NVME_CAP_SET_CSS(n->bar.cap, NVME_CAP_CSS_NVM); + NVME_CAP_SET_CSS(n->bar.cap, NVME_CAP_CSS_ADMIN_ONLY); NVME_CAP_SET_MPSMAX(n->bar.cap, 4); n->bar.vs = NVME_SPEC_VER; |