qemu/hw/i386/kvm
Peter Xu e267d16496 kvm-i8259: support "info pic" and "info irq"
Let's leverage the i8259 common code for kvm-i8259 too.

I think it's still possible that stats can lost when i8259 is in kernel
and meanwhile when irqfd is used, e.g., by vfio or vhost devices.
However that should be rare IMHO since they should be using MSIs mostly
if they really want performance (that's why people use vhost and device
assignment), and no old INTx should be used.  As long as the INTx users
are emulated in QEMU the stats will be correct.

For "info pic", it should be always accurate since we fetch kvm regs
before dump.

More importantly, it's just too simple to do this now - it's only 10+
LOC to gain this feature.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20171210063819.14892-5-peterx@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-12-21 09:30:32 +01:00
..
apic.c kvm: move cpu synchronization code 2017-01-19 22:07:46 +01:00
clock.c kvmclock: use the updated system_timer_msr 2017-10-02 14:39:51 +02:00
i8254.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
i8259.c kvm-i8259: support "info pic" and "info irq" 2017-12-21 09:30:32 +01:00
ioapic.c kvm/ioapic: correct kvm ioapic version 2017-02-16 14:06:55 +01:00
Makefile.objs pci-assign: Remove 2017-11-05 14:52:10 +01:00