summaryrefslogtreecommitdiff
path: root/hw/nvme
diff options
context:
space:
mode:
authorGollu Appalanaidu <anaidu.gollu@samsung.com>2021-04-21 18:26:46 +0530
committerKlaus Jensen <k.jensen@samsung.com>2021-06-29 07:16:25 +0200
commit18de1526baa606789fbe11f17087543ab20a9c49 (patch)
tree2949c73971f4def09b4a63cd81a8e99002b7bfe7 /hw/nvme
parentf42be416cd0d50bcb2987031fbab09ee257a5058 (diff)
downloadqemu-18de1526baa606789fbe11f17087543ab20a9c49.zip
hw/nvme: add identify namespace flbas/mc enums
Add enums for the Identify Namespace FLBAS and MC fields. Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com> [k.jensen: squashed separate flbas/mc commits into one] Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/nvme')
-rw-r--r--hw/nvme/ns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/nvme/ns.c b/hw/nvme/ns.c
index 992e5a13f5..8066e311d1 100644
--- a/hw/nvme/ns.c
+++ b/hw/nvme/ns.c
@@ -82,10 +82,10 @@ static int nvme_ns_init(NvmeNamespace *ns, Error **errp)
ms = ns->params.ms;
if (ns->params.ms) {
- id_ns->mc = 0x3;
+ id_ns->mc = NVME_ID_NS_MC_EXTENDED | NVME_ID_NS_MC_SEPARATE;
if (ns->params.mset) {
- id_ns->flbas |= 0x10;
+ id_ns->flbas |= NVME_ID_NS_FLBAS_EXTENDED;
}
id_ns->dpc = 0x1f;