From: Jes Sorensen <jes@sgi.com>
To: kvm-ia64@vger.kernel.org
Subject: [patch] hw/ipf.c build fix for kvm-userspace
Date: Wed, 25 Mar 2009 16:36:59 +0000 [thread overview]
Message-ID: <49CA5DAB.10600@sgi.com> (raw)
[-- 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;
}
}
next reply other threads:[~2009-03-25 16:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 16:36 Jes Sorensen [this message]
2009-03-26 10:44 ` [patch] hw/ipf.c build fix for kvm-userspace Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49CA5DAB.10600@sgi.com \
--to=jes@sgi.com \
--cc=kvm-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.