[PATCH 0/3] Fix DMA failure when there is domain switch in

Zhenzhong Duan posted 3 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251015102003.279239-1-zhenzhong.duan@intel.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Yi Liu <yi.l.liu@intel.com>, "Clément Mathieu--Drif" <clement.mathieu--drif@eviden.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Eduardo Habkost <eduardo@habkost.net>
hw/i386/intel_iommu_internal.h |  20 +++-
include/hw/i386/intel_iommu.h  |   6 ++
hw/i386/intel_iommu.c          | 168 ++++++++++++++++++++++++++++++---
hw/i386/trace-events           |   4 +
4 files changed, 185 insertions(+), 13 deletions(-)
[PATCH 0/3] Fix DMA failure when there is domain switch in
Posted by Zhenzhong Duan 1 month ago
Hi,

This fixes an DMA failure issue in guest when user switch domain
manually. E.g., echo [DMA|identity] > /sys/kernel/iommu_groups/6/type

First two patches come from [PATCH v6 00/22] intel_iommu: Enable first stage translation for passthrough device
which added basic support for pasid cache invalidation, the 3rd patch
add a fix.

Thanks
Zhenzhong

Zhenzhong Duan (3):
  intel_iommu: Handle PASID cache invalidation
  intel_iommu: Reset pasid cache when system level reset
  intel_iommu: Fix DMA failure when guest switches IOMMU domain

 hw/i386/intel_iommu_internal.h |  20 +++-
 include/hw/i386/intel_iommu.h  |   6 ++
 hw/i386/intel_iommu.c          | 168 ++++++++++++++++++++++++++++++---
 hw/i386/trace-events           |   4 +
 4 files changed, 185 insertions(+), 13 deletions(-)

-- 
2.47.1