diff options
| author | Peter Xu | 2018-12-20 06:40:36 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2018-12-20 19:25:11 +0100 |
| commit | a924b3d8df55a395891fd5ed341d0deb135d9aa6 (patch) | |
| tree | e6ba485ec8d04620f890c5402a44d8a16caddc0e /hw/i386/pc.c | |
| parent | q35: set split kernel irqchip as default (diff) | |
| download | qemu-a924b3d8df55a395891fd5ed341d0deb135d9aa6.tar.gz qemu-a924b3d8df55a395891fd5ed341d0deb135d9aa6.tar.xz qemu-a924b3d8df55a395891fd5ed341d0deb135d9aa6.zip | |
x86-iommu: switch intr_supported to OnOffAuto type
Switch the intr_supported variable from a boolean to OnOffAuto type so
that we can know whether the user specified it or not. With that
we'll have a chance to help the user to choose more wisely where
possible. Introduce x86_iommu_ir_supported() to mask these changes.
No functional change at all.
Signed-off-by: Peter Xu <peterx@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/pc.c')
| -rw-r--r-- | hw/i386/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 470cc5daf9..f248662e97 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1244,7 +1244,7 @@ void pc_machine_done(Notifier *notifier, void *data) if (pcms->apic_id_limit > 255 && !xen_enabled()) { IntelIOMMUState *iommu = INTEL_IOMMU_DEVICE(x86_iommu_get_default()); - if (!iommu || !iommu->x86_iommu.intr_supported || + if (!iommu || !x86_iommu_ir_supported(X86_IOMMU_DEVICE(iommu)) || iommu->intr_eim != ON_OFF_AUTO_ON) { error_report("current -smp configuration requires " "Extended Interrupt Mode enabled. " |
