public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix KVM/IA-64 build issue in latest kvm.git.
@ 2008-08-19  9:55 Zhang, Xiantao
  2008-08-19 10:41 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Zhang, Xiantao @ 2008-08-19  9:55 UTC (permalink / raw)
  To: Avi Kivity, kvm-ia64, kvm

[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]

>From d53dfacedea40213382694229700d02bfa72d923 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Tue, 19 Aug 2008 17:33:21 +0800
Subject: [PATCH] KVM: KVM/IA-64: Fix kvm/ia64's build issue.

Disable irq ack notification for ia64.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
 virt/kvm/ioapic.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
index 515cd7c..992199b 100644
--- a/virt/kvm/ioapic.c
+++ b/virt/kvm/ioapic.c
@@ -39,7 +39,10 @@
 
 #include "ioapic.h"
 #include "lapic.h"
+
+#ifdef CONFIG_X86
 #include "irq.h"
+#endif
 
 #if 0
 #define ioapic_debug(fmt,arg...) printk(KERN_WARNING fmt,##arg)
@@ -293,7 +296,9 @@ static void __kvm_ioapic_update_eoi(struct
kvm_ioapic *ioapic, int gsi,
 
 	ent = &ioapic->redirtbl[gsi];
 
+#ifdef CONFIG_X86
 	kvm_notify_acked_irq(ioapic->kvm, gsi);
+#endif
 
 	if (trigger_mode == IOAPIC_LEVEL_TRIG) {
 		ASSERT(ent->fields.trig_mode == IOAPIC_LEVEL_TRIG);
@@ -386,7 +391,7 @@ static void ioapic_mmio_write(struct kvm_io_device
*this, gpa_t addr, int len,
 		break;
 #ifdef	CONFIG_IA64
 	case IOAPIC_REG_EOI:
-		kvm_ioapic_update_eoi(ioapic->kvm, data);
+		kvm_ioapic_update_eoi(ioapic->kvm, data,
IOAPIC_LEVEL_TRIG);
 		break;
 #endif
 
-- 
1.5.1

[-- Attachment #2: 0001-KVM-KVM-IA-64-Fix-kvm-ia64-s-build-issue.patch --]
[-- Type: application/octet-stream, Size: 1301 bytes --]

From d53dfacedea40213382694229700d02bfa72d923 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Tue, 19 Aug 2008 17:33:21 +0800
Subject: [PATCH] KVM: KVM/IA-64: Fix kvm/ia64's build issue.

Disable irq ack notification for ia64.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
 virt/kvm/ioapic.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
index 515cd7c..992199b 100644
--- a/virt/kvm/ioapic.c
+++ b/virt/kvm/ioapic.c
@@ -39,7 +39,10 @@
 
 #include "ioapic.h"
 #include "lapic.h"
+
+#ifdef CONFIG_X86
 #include "irq.h"
+#endif
 
 #if 0
 #define ioapic_debug(fmt,arg...) printk(KERN_WARNING fmt,##arg)
@@ -293,7 +296,9 @@ static void __kvm_ioapic_update_eoi(struct kvm_ioapic *ioapic, int gsi,
 
 	ent = &ioapic->redirtbl[gsi];
 
+#ifdef CONFIG_X86
 	kvm_notify_acked_irq(ioapic->kvm, gsi);
+#endif
 
 	if (trigger_mode == IOAPIC_LEVEL_TRIG) {
 		ASSERT(ent->fields.trig_mode == IOAPIC_LEVEL_TRIG);
@@ -386,7 +391,7 @@ static void ioapic_mmio_write(struct kvm_io_device *this, gpa_t addr, int len,
 		break;
 #ifdef	CONFIG_IA64
 	case IOAPIC_REG_EOI:
-		kvm_ioapic_update_eoi(ioapic->kvm, data);
+		kvm_ioapic_update_eoi(ioapic->kvm, data, IOAPIC_LEVEL_TRIG);
 		break;
 #endif
 
-- 
1.5.1


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

end of thread, other threads:[~2008-08-19 14:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19  9:55 [PATCH] Fix KVM/IA-64 build issue in latest kvm.git Zhang, Xiantao
2008-08-19 10:41 ` Avi Kivity
2008-08-19 13:06   ` Zhang, Xiantao
2008-08-19 14:04     ` Avi Kivity

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