]> git.proxmox.com Git - mirror_qemu.git/commit
intel_iommu: Add support for Extended Interrupt Mode
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 14 Jul 2016 05:56:28 +0000 (13:56 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Jul 2016 17:43:49 +0000 (20:43 +0300)
commit28589311b326398e88bf6804db8575a6da426b39
treec5940952719e6e99ef531ce6c723fa2e3beba8bd
parente3d9c92507df61608896a579b5b0d7c218d5353e
intel_iommu: Add support for Extended Interrupt Mode

As neither QEMU nor KVM support more than 255 CPUs so far, this is
simple: we only need to switch the destination ID translation in
vtd_remap_irq_get if EIME is set.

Once CFI support is there, it will have to take EIM into account as
well. So far, nothing to do for this.

This patch allows to use x2APIC in split irqchip mode of KVM.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
[use le32_to_cpu() to retrieve dest_id]
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>
hw/i386/intel_iommu.c
hw/i386/intel_iommu_internal.h
include/hw/i386/intel_iommu.h