intel_iommu: add "caching-mode" option
commit3b40f0e53c2ebfcec8aabab7e91c11c5bd441ac0
authorAviv Ben-David <bd.aviv@gmail.com>
Tue, 7 Feb 2017 08:28:06 +0000 (7 16:28 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 17 Feb 2017 19:52:31 +0000 (17 21:52 +0200)
tree38818f44ffdb67629ae33232036e1f3d05134b0c
parentdfbd90e5b9b772b1c5a52bad9f6dbabb385a7dc2
intel_iommu: add "caching-mode" option

This capability asks the guest to invalidate cache before each map operation.
We can use this invalidation to trap map operations in the hypervisor.

Signed-off-by: Aviv Ben-David <bd.aviv@gmail.com>
[peterx: using "caching-mode" instead of "cache-mode" to align with spec]
[peterx: re-write the subject to make it short and clear]
Reviewed-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Aviv Ben-David <bd.aviv@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c
hw/i386/intel_iommu_internal.h
include/hw/i386/intel_iommu.h