* [patch] hw/ipf.c build fix for kvm-userspace
@ 2009-03-25 16:36 Jes Sorensen
2009-03-26 10:44 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Jes Sorensen @ 2009-03-25 16:36 UTC (permalink / raw)
To: kvm-ia64
[-- Attachment #1: Type: text/plain, Size: 84 bytes --]
Hi,
Another build fix to get current kvm-userspace to build on ia64.
Cheers,
Jes
[-- Attachment #2: 0002-qemu-ia64-ipf-build-fix.patch --]
[-- Type: text/x-patch, Size: 1100 bytes --]
Provide dummy apic_set_irq_delivered() function and update call to
kvm_set_irq() to add extra argument.
Signed-off-by: Jes Sorensen <jes@sgi.com>
---
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;
}
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] hw/ipf.c build fix for kvm-userspace
2009-03-25 16:36 [patch] hw/ipf.c build fix for kvm-userspace Jes Sorensen
@ 2009-03-26 10:44 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-03-26 10:44 UTC (permalink / raw)
To: kvm-ia64
Jes Sorensen wrote:
> Hi,
>
> Another build fix to get current kvm-userspace to build on ia64.
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-26 10:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-25 16:36 [patch] hw/ipf.c build fix for kvm-userspace Jes Sorensen
2009-03-26 10:44 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox