]> Git Repo - linux.git/commit
iommu/vt-d: Add svm/sva invalidate function
authorJacob Pan <[email protected]>
Sat, 16 May 2020 06:20:49 +0000 (14:20 +0800)
committerJoerg Roedel <[email protected]>
Mon, 18 May 2020 13:37:25 +0000 (15:37 +0200)
commit6ee1b77ba3ac0a79fc6f3273f3b27b13240a355e
tree492ad4d550d9d012b8b2564665fdb1ab5eacca2a
parent61a06a16e36d830f7811fbf931668d87197d95b7
iommu/vt-d: Add svm/sva invalidate function

When Shared Virtual Address (SVA) is enabled for a guest OS via
vIOMMU, we need to provide invalidation support at IOMMU API and driver
level. This patch adds Intel VT-d specific function to implement
iommu passdown invalidate API for shared virtual address.

The use case is for supporting caching structure invalidation
of assigned SVM capable devices. Emulated IOMMU exposes queue
invalidation capability and passes down all descriptors from the guest
to the physical IOMMU.

The assumption is that guest to host device ID mapping should be
resolved prior to calling IOMMU driver. Based on the device handle,
host IOMMU driver can replace certain fields before submit to the
invalidation queue.

Signed-off-by: Liu Yi L <[email protected]>
Signed-off-by: Jacob Pan <[email protected]>
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
drivers/iommu/intel-iommu.c
This page took 0.054903 seconds and 4 git commands to generate.