summary refs log tree commit diff stats
path: root/hw/i386/kvm/ioapic.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-12-13 12:07:36 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-12-17 19:33:51 +0100
commit64c033badda77d81d7c949fc6e3ed6c72dd5c92e (patch)
tree9c500836896de044d00713bfe546bd564c2944f4 /hw/i386/kvm/ioapic.c
parent6c730e4af9b64b6c83b233f285ec3649747f7eda (diff)
downloadfocaccia-qemu-64c033badda77d81d7c949fc6e3ed6c72dd5c92e.tar.gz
focaccia-qemu-64c033badda77d81d7c949fc6e3ed6c72dd5c92e.zip
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>
Diffstat (limited to 'hw/i386/kvm/ioapic.c')
-rw-r--r--hw/i386/kvm/ioapic.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c
index 8703f19b43..973e2b2af1 100644
--- a/hw/i386/kvm/ioapic.c
+++ b/hw/i386/kvm/ioapic.c
@@ -48,18 +48,6 @@ void kvm_pc_setup_irq_routing(bool pci_enabled)
     }
 }
 
-void kvm_pc_gsi_handler(void *opaque, int n, int level)
-{
-    GSIState *s = opaque;
-
-    if (n < ISA_NUM_IRQS) {
-        /* Kernel will forward to both PIC and IOAPIC */
-        qemu_set_irq(s->i8259_irq[n], level);
-    } else {
-        qemu_set_irq(s->ioapic_irq[n], level);
-    }
-}
-
 typedef struct KVMIOAPICState KVMIOAPICState;
 
 struct KVMIOAPICState {