35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
|
|
From 7c0b752e2bfd9c6e12570d7a9229a6f733d9ca59 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Leonardo Garcia <lagarcia@br.ibm.com>
|
||
|
|
Date: Tue, 23 Nov 2021 08:48:31 -0300
|
||
|
|
Subject: [PATCH] hw/virtio/vhost: Fix typo in comment.
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
Signed-off-by: Leonardo Garcia <lagarcia@br.ibm.com>
|
||
|
|
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
|
||
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
||
|
|
Message-Id: <a10a0ddab65b474ebea1e1141abe0f4aa463909b.1637668012.git.lagarcia@br.ibm.com>
|
||
|
|
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
|
||
|
|
Signed-off-by: fangyi <eric.fangyi@huawei.com>
|
||
|
|
---
|
||
|
|
hw/virtio/vhost.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
|
||
|
|
index 22ec9e1ef7..2f0ddd35d6 100644
|
||
|
|
--- a/hw/virtio/vhost.c
|
||
|
|
+++ b/hw/virtio/vhost.c
|
||
|
|
@@ -318,7 +318,7 @@ static int vhost_dev_has_iommu(struct vhost_dev *dev)
|
||
|
|
* For vhost, VIRTIO_F_IOMMU_PLATFORM means the backend support
|
||
|
|
* incremental memory mapping API via IOTLB API. For platform that
|
||
|
|
* does not have IOMMU, there's no need to enable this feature
|
||
|
|
- * which may cause unnecessary IOTLB miss/update trnasactions.
|
||
|
|
+ * which may cause unnecessary IOTLB miss/update transactions.
|
||
|
|
*/
|
||
|
|
return virtio_bus_device_iommu_enabled(vdev) &&
|
||
|
|
virtio_host_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM);
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|