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>
This commit is contained in:
parent
492f9a8d79
commit
8c5cea8593
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue