[patch] hw/ipf.c build fix for kvm-userspace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Another build fix to get current kvm-userspace to build on ia64.

Cheers,
Jes

Provide dummy apic_set_irq_delivered() function and update call to
kvm_set_irq() to add extra argument.

Signed-off-by: Jes Sorensen <jes@xxxxxxx>

---
 qemu/hw/ipf.c |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Index: kvm-userspace2.git/qemu/hw/ipf.c
===================================================================
--- kvm-userspace2.git.orig/qemu/hw/ipf.c
+++ kvm-userspace2.git/qemu/hw/ipf.c
@@ -687,9 +687,15 @@
     return irq;
 }
 
+/*
+ * Dummy function to provide match for call from hw/apic.c
+ */
+void apic_set_irq_delivered(void) {
+}
+
 void ioapic_set_irq(void *opaque, int irq_num, int level)
 {
-    int vector;
+    int vector, pic_ret;
 
     PCIDevice *pci_dev = (PCIDevice *)opaque;
     vector = ioapic_map_irq(pci_dev->devfn, irq_num);
@@ -700,7 +706,9 @@
         ioapic_irq_count[vector] -= 1;
 
     if (kvm_enabled()) {
-	if (kvm_set_irq(vector, ioapic_irq_count[vector] == 0))
+	if (kvm_set_irq(vector, ioapic_irq_count[vector] == 0, &pic_ret))
+            if (pic_ret != 0)
+                apic_set_irq_delivered();
 	    return;
     }
 }

[Index of Archives]     [Linux KVM Devel]     [Linux Virtualization]     [Big List of Linux Books]     [Linux SCSI]     [Yosemite Forum]

  Powered by Linux