diff options
author | Peter Xu <peterx@redhat.com> | 2017-05-19 11:19:47 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-05-25 21:25:27 +0300 |
commit | dbaabb25f441264d9029dc53e84a156269ecd275 (patch) | |
tree | 16718eb5d66bc8f9f3b25308745efdf95c6483c5 /hw/i386/x86-iommu.c | |
parent | f80c98740e8da9fa0e4056f174ca66a3afb1d15b (diff) | |
download | qemu-dbaabb25f441264d9029dc53e84a156269ecd275.zip qemu-dbaabb25f441264d9029dc53e84a156269ecd275.tar.gz qemu-dbaabb25f441264d9029dc53e84a156269ecd275.tar.bz2 |
intel_iommu: support passthrough (PT)
Hardware support for VT-d device passthrough. Although current Linux can
live with iommu=pt even without this, but this is faster than when using
software passthrough.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Liu, Yi L <yi.l.liu@linux.intel.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/i386/x86-iommu.c')
-rw-r--r-- | hw/i386/x86-iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/x86-iommu.c b/hw/i386/x86-iommu.c index 02b8825..293caf8 100644 --- a/hw/i386/x86-iommu.c +++ b/hw/i386/x86-iommu.c @@ -91,6 +91,7 @@ static void x86_iommu_realize(DeviceState *dev, Error **errp) static Property x86_iommu_properties[] = { DEFINE_PROP_BOOL("intremap", X86IOMMUState, intr_supported, false), DEFINE_PROP_BOOL("device-iotlb", X86IOMMUState, dt_supported, false), + DEFINE_PROP_BOOL("pt", X86IOMMUState, pt_supported, true), DEFINE_PROP_END_OF_LIST(), }; |