From: Keith Busch Date: Tue, 24 Sep 2024 05:41:57 +0000 (+0200) Subject: hw/nvme: report id controller metadata sgl support X-Git-Tag: v9.2.0-rc0~69^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78ca36df42ffc7c06db7c388762d78d9d0339069;p=thirdparty%2Fqemu.git hw/nvme: report id controller metadata sgl support The controller already supports this decoding, so just set the ID_CTRL.SGLS field accordingly. Signed-off-by: Keith Busch Reviewed-by: Klaus Jensen Signed-off-by: Klaus Jensen --- diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index 2589e1968ea..d5ea9ad653f 100644 --- a/hw/nvme/ctrl.c +++ b/hw/nvme/ctrl.c @@ -8536,7 +8536,8 @@ static void nvme_init_ctrl(NvmeCtrl *n, PCIDevice *pci_dev) id->ocfs = cpu_to_le16(NVME_OCFS_COPY_FORMAT_0 | NVME_OCFS_COPY_FORMAT_1 | NVME_OCFS_COPY_FORMAT_2 | NVME_OCFS_COPY_FORMAT_3); - id->sgls = cpu_to_le32(NVME_CTRL_SGLS_SUPPORT_NO_ALIGN); + id->sgls = cpu_to_le32(NVME_CTRL_SGLS_SUPPORT_NO_ALIGN | + NVME_CTRL_SGLS_MPTR_SGL); nvme_init_subnqn(n);