mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
hw/i386: De-duplicate gsi_handler() to remove kvm_pc_gsi_handler()
Both gsi_handler() and kvm_pc_gsi_handler() have the same content, except one comment. Move the comment, and de-duplicate the code. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6c730e4af9
commit
64c033badd
4 changed files with 2 additions and 16 deletions
|
@ -295,6 +295,7 @@ void gsi_handler(void *opaque, int n, int level)
|
|||
|
||||
trace_x86_gsi_interrupt(n, level);
|
||||
if (n < ISA_NUM_IRQS) {
|
||||
/* Under KVM, Kernel will forward to both PIC and IOAPIC */
|
||||
qemu_set_irq(s->i8259_irq[n], level);
|
||||
}
|
||||
qemu_set_irq(s->ioapic_irq[n], level);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue