public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] KVM: Expose get_eoi_gsi for IRQ acking for assigned devices.
@ 2008-05-30 10:27 Amit Shah
  2008-05-30 10:27 ` [PATCH 2/3] KVM: Introduce kvm_set_irq to inject interrupts in guests Amit Shah
  2008-06-18 14:25 ` [PATCH 1/3] KVM: Expose get_eoi_gsi for IRQ acking for assigned devices Avi Kivity
  0 siblings, 2 replies; 4+ messages in thread
From: Amit Shah @ 2008-05-30 10:27 UTC (permalink / raw)
  To: kvm; +Cc: linux-kernel, muli, benami, allen.m.kay, chrisw, Amit Shah

Also add kvm_ prefix.

Signed-off-by: Amit Shah <amit.shah@qumranet.com>
---
 virt/kvm/ioapic.c |    4 ++--
 virt/kvm/ioapic.h |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
index 99a1736..4c41a00 100644
--- a/virt/kvm/ioapic.c
+++ b/virt/kvm/ioapic.c
@@ -284,7 +284,7 @@ void kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level)
 	}
 }
 
-static int get_eoi_gsi(struct kvm_ioapic *ioapic, int vector)
+int kvm_get_eoi_gsi(struct kvm_ioapic *ioapic, int vector)
 {
 	int i;
 
@@ -300,7 +300,7 @@ void kvm_ioapic_update_eoi(struct kvm *kvm, int vector)
 	union ioapic_redir_entry *ent;
 	int gsi;
 
-	gsi = get_eoi_gsi(ioapic, vector);
+	gsi = kvm_get_eoi_gsi(ioapic, vector);
 	if (gsi == -1) {
 		printk(KERN_WARNING "Can't find redir item for %d EOI\n",
 		       vector);
diff --git a/virt/kvm/ioapic.h b/virt/kvm/ioapic.h
index 7f16675..a744572 100644
--- a/virt/kvm/ioapic.h
+++ b/virt/kvm/ioapic.h
@@ -91,5 +91,6 @@ void kvm_ioapic_update_eoi(struct kvm *kvm, int vector);
 int kvm_ioapic_init(struct kvm *kvm);
 void kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level);
 void kvm_ioapic_reset(struct kvm_ioapic *ioapic);
+int kvm_get_eoi_gsi(struct kvm_ioapic *ioapic, int vector);
 
 #endif
-- 
1.5.5.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-18 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30 10:27 [PATCH 1/3] KVM: Expose get_eoi_gsi for IRQ acking for assigned devices Amit Shah
2008-05-30 10:27 ` [PATCH 2/3] KVM: Introduce kvm_set_irq to inject interrupts in guests Amit Shah
2008-05-30 10:27   ` [PATCH 3/3] KVM: Handle devices assigned to the guest Amit Shah
2008-06-18 14:25 ` [PATCH 1/3] KVM: Expose get_eoi_gsi for IRQ acking for assigned devices Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox