diff options
author | Gollu Appalanaidu <anaidu.gollu@samsung.com> | 2021-04-21 18:26:46 +0530 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2021-06-29 07:16:25 +0200 |
commit | 18de1526baa606789fbe11f17087543ab20a9c49 (patch) | |
tree | 2949c73971f4def09b4a63cd81a8e99002b7bfe7 /hw/nvme | |
parent | f42be416cd0d50bcb2987031fbab09ee257a5058 (diff) | |
download | qemu-18de1526baa606789fbe11f17087543ab20a9c49.zip qemu-18de1526baa606789fbe11f17087543ab20a9c49.tar.gz qemu-18de1526baa606789fbe11f17087543ab20a9c49.tar.bz2 |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/nvme/ns.c b/hw/nvme/ns.c index 992e5a1..8066e31 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; |