linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] iommu/amd: Force SNP-enabled VFIO domain to 4K page size
@ 2023-01-10 14:31 Suravee Suthikulpanit
  2023-01-10 14:31 ` [PATCH 1/4] iommu/amd: Introduce Protection-domain flag VFIO Suravee Suthikulpanit
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Suravee Suthikulpanit @ 2023-01-10 14:31 UTC (permalink / raw)
  To: linux-kernel, iommu
  Cc: joro, robin.murphy, ashish.kalra, thomas.lendacky, vasant.hegde,
	jon.grimm, Suravee Suthikulpanit

To support VFIO pass-through device with SNP-enabled guest, IOMMU needs to
setup IOMMU page table with matching page size to the RMP. In order for
the IOMMU driver to setup page table appropriately, it needs to determine:

1. If an IOMMU domain is a VFIO domain (PATCH 1)
2. If an IOMMU domain belongs to an SNP-enabled guest (PATCH 2,3)
3. Appropriate page size the IOMMU domain (PATCH 4)

Please note that patch 2/4 is a preparatory patch for an upcoming series
to support SNP, which implements the call-back for the struct
amd_iommu_svm_ops.is_snp_guest().

Best Regards,
Suravee

Suravee Suthikulpanit (4):
  iommu/amd: Introduce Protection-domain flag VFIO
  iommu/amd: Introduce structure amd_iommu_svm_ops.is_snp_guest()
  iommu: Introduce IOMMU call-back for processing struct KVM assigned to
    VFIO
  iommu/amd: Force SNP-enabled VFIO domain to 4K page size

 drivers/iommu/amd/amd_iommu_types.h |  3 ++
 drivers/iommu/amd/iommu.c           | 45 +++++++++++++++++++++++++++--
 drivers/iommu/iommu.c               | 10 +++++++
 drivers/vfio/vfio_main.c            |  1 +
 include/linux/amd-iommu.h           |  6 ++++
 include/linux/iommu.h               |  4 +++
 6 files changed, 67 insertions(+), 2 deletions(-)

-- 
2.32.0


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2023-01-21  0:09 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-10 14:31 [PATCH 0/4] iommu/amd: Force SNP-enabled VFIO domain to 4K page size Suravee Suthikulpanit
2023-01-10 14:31 ` [PATCH 1/4] iommu/amd: Introduce Protection-domain flag VFIO Suravee Suthikulpanit
2023-01-11  3:31   ` kernel test robot
2023-01-13 15:33   ` Jason Gunthorpe
2023-01-19  8:54     ` Kalra, Ashish
2023-01-19 17:44       ` Jason Gunthorpe
2023-01-20 15:12         ` Kalra, Ashish
2023-01-20 16:13           ` Jason Gunthorpe
2023-01-20 17:01             ` Kalra, Ashish
2023-01-20 17:50               ` Jason Gunthorpe
2023-01-20 19:55                 ` Kalra, Ashish
2023-01-20 22:42                   ` Tom Lendacky
2023-01-21  0:09                     ` Jason Gunthorpe
2023-01-10 14:31 ` [PATCH 2/4] iommu/amd: Introduce structure amd_iommu_svm_ops.is_snp_guest() Suravee Suthikulpanit
2023-01-10 14:31 ` [PATCH 3/4] iommu: Introduce IOMMU call-back for processing struct KVM assigned to VFIO Suravee Suthikulpanit
2023-01-10 15:11   ` Robin Murphy
2023-01-17  4:20     ` Suthikulpanit, Suravee
2023-01-17 12:51       ` Robin Murphy
2023-01-13 15:35   ` Jason Gunthorpe
2023-01-17  5:31     ` Suthikulpanit, Suravee
2023-01-17 14:19       ` Jason Gunthorpe
2023-01-10 14:31 ` [PATCH 4/4] iommu/amd: Force SNP-enabled VFIO domain to 4K page size Suravee Suthikulpanit
2023-01-17 13:10   ` Eric van Tassell
2023-01-16 13:17 ` [PATCH 0/4] " Eric van Tassell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).