]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
nvme: fix lpa field
authorKlaus Birkelund Jensen <klaus@birkelund.eu>
Fri, 5 Jul 2019 07:23:20 +0000 (09:23 +0200)
committerPaul Durrant <paul.durrant@citrix.com>
Mon, 23 Sep 2019 12:25:30 +0000 (13:25 +0100)
The Log Page Attributes in the Identify Controller structure indicates
that the controller supports the SMART / Health Information log page on
a per namespace basis. It does not, given that neither this log page or
the Get Log Page command is implemented.

Signed-off-by: Klaus Birkelund Jensen <klaus.jensen@cnexlabs.com>
hw/block/nvme.c

index 17f388bf3d3738c09743614fc073ef5ef31b6861..e27376d9ee17904f67db61a936bf1bebe9c9f5fb 100644 (file)
@@ -1368,7 +1368,6 @@ static void nvme_realize(PCIDevice *pci_dev, Error **errp)
     id->ieee[2] = 0xb3;
     id->oacs = cpu_to_le16(0);
     id->frmw = 7 << 1;
-    id->lpa = 1 << 0;
     id->sqes = (0x6 << 4) | 0x6;
     id->cqes = (0x4 << 4) | 0x4;
     id->nn = cpu_to_le32(n->num_namespaces);