From 2178a1462e4458bc03bb8b1fdb456f97a2851b21 Mon Sep 17 00:00:00 2001 From: yangxiangkai Date: Mon, 19 Aug 2024 14:37:43 +0800 Subject: [PATCH] cvm : bug-fix for incorrect device name check for vhost-user-fs The 'vhost-user-fs' was being parsed as 'virtio-user-fs' during the compilation and this caused the device to erroneously trigger the error branch. Fixes: 5db954cb188d3775aec053fad8a39bf4c26a2b92("Add support for the virtcca cvm feature.) Signed-off-by: yangxiangkai --- hw/virtio/virtio-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/virtio-bus.c b/hw/virtio/virtio-bus.c index 7e750d073d..4f16e7ef77 100644 --- a/hw/virtio/virtio-bus.c +++ b/hw/virtio/virtio-bus.c @@ -83,7 +83,7 @@ void virtio_bus_device_plugged(VirtIODevice *vdev, Error **errp) if (has_iommu) { vdev_has_iommu = virtio_host_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM); - if (virtcca_cvm_enabled() && (strcmp(vdev->name, "vhost-user-fs") == 0)) { + if (virtcca_cvm_enabled() && (strcmp(vdev->name, "virtio-user-fs") == 0)) { vdev_has_iommu = true; } -- Gitee