summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Xu2016-07-14 07:56:13 +0200
committerMichael S. Tsirkin2016-07-20 18:30:27 +0200
commit1121e0afdcfa0cd40e36bd3acff56a3fac4f70fd (patch)
tree9774edb4f2cf891559149f86b8c963fbe78d9f37 /include
parentx86-iommu: provide x86_iommu_get_default (diff)
downloadqemu-1121e0afdcfa0cd40e36bd3acff56a3fac4f70fd.tar.gz
qemu-1121e0afdcfa0cd40e36bd3acff56a3fac4f70fd.tar.xz
qemu-1121e0afdcfa0cd40e36bd3acff56a3fac4f70fd.zip
x86-iommu: introduce "intremap" property
Adding one property for intel-iommu devices to specify whether we should support interrupt remapping. By default, IR is disabled. To enable it, we should use (take Intel IOMMU as example): -device intel_iommu,intremap=on This property can be shared by Intel and future AMD IOMMUs. 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>
Diffstat (limited to 'include')
-rw-r--r--include/hw/i386/x86-iommu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/i386/x86-iommu.h b/include/hw/i386/x86-iommu.h
index b2401a6380..699dd0615c 100644
--- a/include/hw/i386/x86-iommu.h
+++ b/include/hw/i386/x86-iommu.h
@@ -43,6 +43,7 @@ struct X86IOMMUClass {
struct X86IOMMUState {
SysBusDevice busdev;
+ bool intr_supported; /* Whether vIOMMU supports IR */
};
/**