Skip to content

Commit

Permalink
hw/block/nvme: support for admin-only command set
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
  • Loading branch information
keithbusch authored and birkelund committed Oct 27, 2020
1 parent 492f9a8 commit 8c5cea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions hw/block/nvme.c
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion include/block/nvme.h
Expand Up @@ -83,7 +83,8 @@ enum NvmeCapMask {
<< CAP_PMR_SHIFT)

enum NvmeCapCss {
NVME_CAP_CSS_NVM = 1 << 0,
NVME_CAP_CSS_NVM = 1 << 0,
NVME_CAP_CSS_ADMIN_ONLY = 1 << 7,
};

enum NvmeCcShift {
Expand Down

0 comments on commit 8c5cea8

Please sign in to comment.