hw/block/nvme: fix warning about legacy namespace configuration
authorKlaus Jensen <k.jensen@samsung.com>
Tue, 23 Mar 2021 21:12:36 +0000 (22:12 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Wed, 7 Apr 2021 08:46:47 +0000 (10:46 +0200)
Remove the unused BlockConf from the controller structure and remove the
noop constraint checking.

Device works just fine with both legacy drive parameter namespace and
nvme-ns namespace definitions.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
hw/block/nvme.c
hw/block/nvme.h

index 7244534a89e93b34785dc6e157e2bfd818a64035..5911adcf57e7c7aced23ac21f6afabc53f5b9838 100644 (file)
@@ -5805,11 +5805,6 @@ static void nvme_check_constraints(NvmeCtrl *n, Error **errp)
         params->max_ioqpairs = params->num_queues - 1;
     }
 
-    if (n->conf.blk) {
-        warn_report("drive property is deprecated; "
-                    "please use an nvme-ns device instead");
-    }
-
     if (params->max_ioqpairs < 1 ||
         params->max_ioqpairs > NVME_MAX_IOQPAIRS) {
         error_setg(errp, "max_ioqpairs must be between 1 and %d",
index 9edc86d79e98cfaa9c6609e9ff8e76fe341c198e..8d1806cc942fd045a77830f1b20fb4efe78337c2 100644 (file)
@@ -166,7 +166,6 @@ typedef struct NvmeCtrl {
     NvmeBar      bar;
     NvmeParams   params;
     NvmeBus      bus;
-    BlockConf    conf;
 
     uint16_t    cntlid;
     bool        qs_created;