]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc.c
q35: ioapic: add support for emulated IOAPIC IR
authorPeter Xu <peterx@redhat.com>
Thu, 14 Jul 2016 05:56:23 +0000 (13:56 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Jul 2016 17:43:49 +0000 (20:43 +0300)
commitcb135f59b8059c3a372652377ef92fa4a49ad550
tree244cb6772ba2773c137cc781d96375083f381d89
parent09cd058a2cf77bb7a3b10ff93c1f80ed88bca364
q35: ioapic: add support for emulated IOAPIC IR

This patch translates all IOAPIC interrupts into MSI ones. One pseudo
ioapic address space is added to transfer the MSI message. By default,
it will be system memory address space. When IR is enabled, it will be
IOMMU address space.

Currently, only emulated IOAPIC is supported.

Idea suggested by Jan Kiszka and Rita Sinha in the following patch:

https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg01933.html

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/pc.c
hw/intc/ioapic.c
include/hw/i386/apic-msidef.h
include/hw/i386/ioapic_internal.h
include/hw/i386/pc.h