Skip to content

Enable IOMMU support for pseries Secure VMs

Ram Pai linuxppc-dev lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 18 repliesIn review
  2. v42 patches 19 repliesSuperseded
  3. v32 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 RFC2 patches2 repliesSuperseded
v1 RFC2 patches13 repliesSuperseded

changelog from the cover letter

v5: unshare the page used in H_PUT_TCE_INDIRECT hcall to
communicate the TCE entries with the hypervisor. Concern raised by Alexey. This minimizes the number of pages shared with the hypervisor.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2powerpc/pseries/iommu: Share the per-cpu TCE page with the hypervisor.arch/powerpc/platforms/pseries/iommu.c+29 -310 replies
2/2powerpc/pseries/iommu: Use dma_iommu_ops for Secure VM.arch/powerpc/platforms/pseries/iommu.c+1 -108 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAlexey Kardashevskiy
1/2R-b
2/2R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/2] Enable IOMMU support for pseries Secure VMs

This patch series enables IOMMU support for pseries Secure VMs.

Tested using QEMU command line option:

	"-device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x4,
	iommu_platform=on,disable-modern=off,disable-legacy=on"

	and

	"-device virtio-blk-pci,scsi=off,bus=pci.0,
	addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,
	iommu_platform=on,disable-modern=off,disable-legacy=on"

changelog:
v5: unshare the page used in H_PUT_TCE_INDIRECT hcall to
communicate the TCE entries with the hypervisor. Concern raised by Alexey. This minimizes the number of pages shared with the hypervisor.

v4: Corrected the Subject, to include the keyword 'PATCH'.
No other changes.

v3: Better description of 2/2 patch.
Suggested by David Gibson.

v2: added comments describing the changes.
Suggested by Alexey and Michael Ellermen.

Ram Pai (2):
powerpc/pseries/iommu: Share the per-cpu TCE page with the hypervisor. powerpc/pseries/iommu: Use dma_iommu_ops for Secure VM.

 arch/powerpc/platforms/pseries/iommu.c | 43 ++++++++++++++++++++++++----------
 1 file changed, 30 insertions(+), 13 deletions(-)
Signature · 1 line
1.8.3.1