From 8f25de1b56e6b488f8dbc4bd7d2fe55c517ab1e2 Mon Sep 17 00:00:00 2001 From: Xingrui Yi Date: Fri, 16 Aug 2024 10:13:32 +0800 Subject: [PATCH] virtiofs: Force VIRTIO_F_IOMMU_PLATFORM feature to support Signed-off-by: Xingrui Yi --- ...IRTIO_F_IOMMU_PLATFORM-feature-to-su.patch | 29 +++++++++++++++++++ qemu-kvm.spec | 4 +++ 2 files changed, 33 insertions(+) create mode 100644 1093-virtiofs-Force-VIRTIO_F_IOMMU_PLATFORM-feature-to-su.patch diff --git a/1093-virtiofs-Force-VIRTIO_F_IOMMU_PLATFORM-feature-to-su.patch b/1093-virtiofs-Force-VIRTIO_F_IOMMU_PLATFORM-feature-to-su.patch new file mode 100644 index 0000000..e598e7c --- /dev/null +++ b/1093-virtiofs-Force-VIRTIO_F_IOMMU_PLATFORM-feature-to-su.patch @@ -0,0 +1,29 @@ +From 4e8afb6d519f95de4f7c51f435b8625079e01f26 Mon Sep 17 00:00:00 2001 +From: hanliyang +Date: Thu, 27 Oct 2022 21:20:28 -0400 +Subject: [PATCH] virtiofs: Force VIRTIO_F_IOMMU_PLATFORM feature to support + CSV VM + +Signed-off-by: hanliyang +Change-Id: I6edd679c4990afdb14cd77be1d2f28ec4bccb748 +--- + tools/virtiofsd/fuse_virtio.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/virtiofsd/fuse_virtio.c b/tools/virtiofsd/fuse_virtio.c +index fc2564a603..fa9dc126e5 100644 +--- a/tools/virtiofsd/fuse_virtio.c ++++ b/tools/virtiofsd/fuse_virtio.c +@@ -91,7 +91,7 @@ struct virtio_fs_config { + /* Callback from libvhost-user */ + static uint64_t fv_get_features(VuDev *dev) + { +- return 1ULL << VIRTIO_F_VERSION_1; ++ return 1ULL << VIRTIO_F_VERSION_1 | 1ULL << VIRTIO_F_IOMMU_PLATFORM; + } + + /* Callback from libvhost-user */ +-- +2.25.1 + + diff --git a/qemu-kvm.spec b/qemu-kvm.spec index 72094cf..0e6634f 100644 --- a/qemu-kvm.spec +++ b/qemu-kvm.spec @@ -964,6 +964,7 @@ Patch1089: 1089-target-i386-Add-new-CPU-model-GraniteRapids.patch Patch1090: 1090-target-i386-Add-support-for-AMX-COMPLEX-in-CPUID-enu.patch Patch1091: 1091-target-i386-Add-new-CPU-model-SierraForest.patch Patch1092: 1092-target-i386-Export-RFDS-bit-to-guests.patch +Patch1093: 1093-virtiofs-Force-VIRTIO_F_IOMMU_PLATFORM-feature-to-su.patch BuildRequires: wget BuildRequires: rpm-build @@ -2202,6 +2203,9 @@ sh %{_sysconfdir}/sysconfig/modules/kvm.modules &> /dev/null || : %endif %changelog +* Fri Aug 16 2024 Xingrui Yi - 6.2.0-50.0.3 +- virtiofs: Force VIRTIO_F_IOMMU_PLATFORM feature to support + * Thu Jul 18 2024 Quanxian Wang - 6.2.0-50.0.2 - Intel-SIG: Supprt Intel SPR/GNR/SRF new ISAs and cpu models -- Gitee