[Qemu-devel] [PATCH v4 0/2] VT-d: some enhancements on iotlb

Peter Xu posted 2 patches 6 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1500282150-28190-1-git-send-email-peterx@redhat.com
Test FreeBSD passed
Test checkpatch passed
Test docker passed
Test s390x passed
hw/i386/intel_iommu.c          | 19 +++++++++----------
hw/i386/intel_iommu_internal.h |  1 -
include/hw/i386/intel_iommu.h  |  3 +--
3 files changed, 10 insertions(+), 13 deletions(-)
[Qemu-devel] [PATCH v4 0/2] VT-d: some enhancements on iotlb
Posted by Peter Xu 6 years, 8 months ago
v4:
- removed patch 2 (x-iotlb-size patch) and patch 4 (mru list for
  iotlb) [mst]
- used VTD_PAGE_SIZE_4K for patch 1 [Jason]

v3:
- fix issue reported by patchew on style

v2:
- rebase to master
- removed all "info iommu" patches for now
  (is it bad to introduce new HMP commands without QMP? I thought not,
   but in case I missed anything, please kindly let me know...)

Patch 1: fixes a very rare PT path issue on iova value. It didn't
break anything since it's merely not touched (only if when IOMMU
enabled, then set one device to PT), but still better fix it.

Patch 2: introduce "x-iotlb-size" to tune iotlb size, or to turn it
off (e.g., when we want to measure how iotlb affects one payload).

Patch 3: some refine on iotlb entry.

Patch 4: implemented MRU list algorithm for iotlb.

Please review. Thanks,

Peter Xu (2):
  intel_iommu: fix iova for pt
  intel_iommu: use access_flags for iotlb

 hw/i386/intel_iommu.c          | 19 +++++++++----------
 hw/i386/intel_iommu_internal.h |  1 -
 include/hw/i386/intel_iommu.h  |  3 +--
 3 files changed, 10 insertions(+), 13 deletions(-)

-- 
2.7.4