From: Glauber Costa <glommer@redhat.com>
To: qemu-devel@nongnu.org
Cc: aliguori@us.ibm.com
Subject: [Qemu-devel] [PATCH 3/8] provide apic_set_irq_delivered
Date: Fri, 6 Nov 2009 16:26:25 -0200 [thread overview]
Message-ID: <1257531990-19437-4-git-send-email-glommer@redhat.com> (raw)
In-Reply-To: <1257531990-19437-3-git-send-email-glommer@redhat.com>
i8259 chip will use it, so provide it, and export it through pc.h
Signed-off-by: Glauber Costa <glommer@redhat.com>
---
hw/apic.c | 5 +++++
hw/pc.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/hw/apic.c b/hw/apic.c
index c89008e..a445c7f 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -388,6 +388,11 @@ void apic_reset_irq_delivered(void)
apic_irq_delivered = 0;
}
+void apic_set_irq_delivered(void)
+{
+ apic_irq_delivered = 1;
+}
+
int apic_get_irq_delivered(void)
{
return apic_irq_delivered;
diff --git a/hw/pc.h b/hw/pc.h
index 3e0c8ec..478f70c 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -46,6 +46,7 @@ int apic_get_interrupt(CPUState *env);
qemu_irq *ioapic_init(void);
void ioapic_set_irq(void *opaque, int vector, int level);
void apic_reset_irq_delivered(void);
+void apic_set_irq_delivered(void);
int apic_get_irq_delivered(void);
qemu_irq *kvm_ioapic_init(void);
--
1.6.2.5
next prev parent reply other threads:[~2009-11-06 18:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 18:26 [Qemu-devel] [PATCH 0/8] Split in-kernel devices Glauber Costa
2009-11-06 18:26 ` [Qemu-devel] [PATCH 1/8] introduce VMSTATE_U64 Glauber Costa
2009-11-06 18:26 ` [Qemu-devel] [PATCH 2/8] Provide ioapic-kvm Glauber Costa
2009-11-06 18:26 ` Glauber Costa [this message]
2009-11-06 18:26 ` [Qemu-devel] [PATCH 4/8] provide i8259-kvm Glauber Costa
2009-11-06 18:26 ` [Qemu-devel] [PATCH 5/8] Don't call apic functions directly from kvm code Glauber Costa
2009-11-06 18:26 ` [Qemu-devel] [PATCH 6/8] provide apic-kvm Glauber Costa
2009-11-06 18:26 ` [Qemu-devel] [PATCH 7/8] Initialize in-kernel irqchip Glauber Costa
2009-11-06 18:26 ` [Qemu-devel] [PATCH 8/8] Do GSI routing Glauber Costa
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=1257531990-19437-4-git-send-email-glommer@redhat.com \
--to=glommer@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).