hw/ipf.c build fix for kvm-userspace
PATCH 1/1 hw/ipf.c build fix for kvm-userspace
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 <[email protected]>
--- qemu/hw/ipf.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
qemu/hw/ipf.c +10 -2
@@ -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 ; } }
Avi Kivity
AppliedQuoted 4 lines · Jes Sorensen
Hi,
Another build fix to get current kvm-userspace to build on ia64.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function