Skip to content

iommu/x86: fixes/improvements for unity range checks

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4amd-vi: fix IVMD memory type checksxen/drivers/passthrough/amd/iommu_acpi.c+8 -34 replies
2/4iommu/x86: introduce a generic IVMD/RMRR range validity helperxen/arch/x86/include/asm/iommu.h xen/drivers/passthrough/amd/iommu_acpi.c xen/drivers/passthrough/x86/iommu.c+52 -352 replies
3/4iommu/vt-d: switch to common RMRR checkerxen/drivers/passthrough/vtd/dmar.c+3 -113 replies
4/4iommu/x86: make unity range checking more strictxen/drivers/passthrough/x86/iommu.c+12 -123 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchoxjoJan Beulich
1/4T-b R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] iommu/x86: fixes/improvements for unity range checks

Hello,

Patch 1 is a bugfix for AMD-Vi IVMD range type checks.

Further patches unify the IVMD/RMRR checks into a common function, and the last patch tightens up the condition to panic when attempting to boot on a system that has RMRR or IVMD regions over memory that Xen uses as RAM.

Thanks, Roger.

Roger Pau Monne (4):
amd-vi: fix IVMD memory type checks
iommu/x86: introduce a generic IVMD/RMRR range validity helper iommu/vt-d: switch to common RMRR checker
iommu/x86: make unity range checking more strict

 xen/arch/x86/include/asm/iommu.h         |  3 ++
 xen/drivers/passthrough/amd/iommu_acpi.c | 33 ++---------------
 xen/drivers/passthrough/vtd/dmar.c       | 14 ++------
 xen/drivers/passthrough/x86/iommu.c      | 46 ++++++++++++++++++++++++
 4 files changed, 55 insertions(+), 41 deletions(-)
Signature · 1 line
2.43.0