Skip to content

AMD/IOMMU: re-work mode updating

Jan Beulich xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesIn review
  2. v22 patches 9 repliesSuperseded
  3. v13 patches 14 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3introduce GFN notification for translated domainsxen/arch/x86/hvm/dom0_build.c xen/arch/x86/hvm/hvm.c xen/common/grant_table.c +6 more+119 -163 replies
2/3AMD/IOMMU: use notify_dfn() hook to update paging modexen/drivers/passthrough/amd/iommu_map.c xen/drivers/passthrough/amd/pci_amd_iommu.c xen/include/asm-x86/hvm/svm/amd-iommu-proto.h+46 -210 replies
3/3gnttab: don't expose host physical address without needxen/common/grant_table.c+20 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [Xen-devel] [PATCH v3 0/3] AMD/IOMMU: re-work mode updating

update_paging_mode() in the AMD IOMMU code expects to be invoked with the PCI devices lock held. The check occurring only when the mode actually needs updating, the violation of this rule by the majority of callers did go unnoticed until per-domain IOMMU setup was changed to do away with on-demand creation of IOMMU page tables.

Unfortunately the only half way reasonable fix to this that I could come up with requires more re-work than would seem desirable at this time of the release process, but addressing the issue seems unavoidable to me as its manifestation is a regression from the IOMMU page table setup re-work. The change also isn't without risk of further regressions - if in patch 2 I've missed a code path that would also need to invoke the new hook, then this might mean non- working guests (with passed-through devices on AMD hardware).

1: introduce GFN notification for translated domains 2: AMD/IOMMU: use notify_dfn() hook to update paging mode 3: gnttab: don't expose host physical address without need

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel