x86: VMI: Fix bug, do_IRQ: cannot handle...

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>, the arch/x86 maintainers <x86@...>
Cc: Zachary Amsden <zach@...>, Yinghai Lu <yhlu.kernel@...>, LKML <linux-kernel@...>
Date: Thursday, August 21, 2008 - 2:26 pm

Below is the patch which needs to be applied to x86-tip/master, to fix
the VMI bug caused by 
commit 9c3f2468d8339866d9ef6a25aae31a8909c6be0d.
x86: make 32bit support per_cpu vector

Thanks to Yinghai, for giving a heads up.

Please apply.

Alok

--
From: Alok N Kataria <akataria@vmware.com>

x86: VMI, Initialize IRQ vector.

Initialize vector_irq for the vmi used vector, to point to correct irq.

Signed-off-by: Alok N Kataria <akataria@vmware.com>
Cc: Zachary Amsden <zach@vmware.com>
---

 arch/x86/kernel/vmiclock_32.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/arch/x86/kernel/vmiclock_32.c b/arch/x86/kernel/vmiclock_32.c
index 6953859..254ee07 100644
--- a/arch/x86/kernel/vmiclock_32.c
+++ b/arch/x86/kernel/vmiclock_32.c
@@ -235,11 +235,14 @@ static void __devinit vmi_time_init_clockevent(void)
 
 void __init vmi_time_init(void)
 {
+	unsigned int cpu;
 	/* Disable PIT: BIOSes start PIT CH0 with 18.2hz peridic. */
 	outb_pit(0x3a, PIT_MODE); /* binary, mode 5, LSB/MSB, ch 0 */
 
 	vmi_time_init_clockevent();
 	setup_irq(0, &vmi_clock_action);
+	for_each_possible_cpu(cpu)
+		per_cpu(vector_irq, cpu)[vmi_get_timer_vector()] = 0;
 }
 
 #ifdef CONFIG_X86_LOCAL_APIC


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
x86: VMI: Fix bug, do_IRQ: cannot handle..., Alok Kataria, (Thu Aug 21, 2:26 pm)
Re: x86: VMI: Fix bug, do_IRQ: cannot handle..., Ingo Molnar, (Fri Aug 22, 2:01 am)