OSDN Git Service

ioapic: support "info irq"
authorPeter Xu <peterx@redhat.com>
Fri, 29 Dec 2017 07:31:03 +0000 (15:31 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jun 2018 17:05:37 +0000 (19:05 +0200)
commitcce5405e0ebce0cd400cfd3d3d218a776ac6b333
treec6a5b1e6fb59692151f96686548d8628a4c38771
parent6a218b032b2d62b3c13e9553593b75e445ce5f1a
ioapic: support "info irq"

This include both userspace and in-kernel ioapic.  Note that the numbers
can be inaccurate for kvm-ioapic.  One reason is the same with
kvm-i8259, that when irqfd is used, irqs can be delivered all inside
kernel without our notice.  Meanwhile, kvm-ioapic is specially treated
when irq numbers <ISA_NUM_IRQS, those irqs will be delivered in kernel
too via kvm-i8259 (please refer to kvm_pc_gsi_handler).

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20171229073104.3810-5-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/kvm/ioapic.c
hw/intc/ioapic.c
hw/intc/ioapic_common.c
include/hw/i386/ioapic_internal.h