Make VTIdomain boot again
Williamson,
This patch is just a workaround, the essential cause is, the soft_IRQ should be done at the path of ia64_leave_kernel which aligned with native linux and XEN/X86, instead of being invoking in irq_exit function.
What's your opinion?
Thanks,
-Anthony
Quoted 50 lines
-----Original Message-----
From: Alex Williamson [mailto:[email protected]]
Sent: 2006年2月9日 11:32
To: Xu, Anthony
Cc: [email protected]; [email protected]
Subject: Re: [Xen-ia64-devel] [Xen-devel] [PATCH]Make VTIdomain boot againQuoted 6 lines · Anthony
Keir,
This patch is intended to make VTIdomain boot again, and will not impact domU. Actually VTIdomain and domU can boot simultaneously after applying this patch, Could you please check this patch into xen-unstable.hg? This is a must in 3.0.1.
Hi Anthony,
Xen 3.0.1 went out on Feb. 1st. A couple comments
xen/arch/ia64/linux-xen/irq_ia64.c Wed Feb 8 16:28:11 2006 renamed from xen/arch/ia64/linux-xen/irq_ia64.c Thu Jan 26 10:31:28 2006 +0
-0@@ -169,7 +169,7 @@ * handler needs to be able to wait for further keyboardinterrupts, which can't
* come through untilia64_eoi()has been done. */xen/arch/ia64/linux-xen/irq_ia64.c Wed Feb 8 16:28:11 2006 renamed from xen/arch/ia64/linux-xen/irq_ia64.c Thu Jan 26 10:31:28 2006 +1
-1- irq_exit(); + xen_irq_exit(regs);}
Quoted 1 line
Quoted 1 line
Quoted 1 line
This needs to be in an #ifdef XEN.
xen/arch/ia64/linux-xen/irq_ia64.c Wed Feb 8 16:28:11 2006 renamed from xen/arch/ia64/linux-xen/irq_ia64.c Thu Jan 26 10:31:28 2006 +1
-1-void irq_exit(void) +void xen_irq_exit(struct pt_regs *regs){ //account_system_vtime(current); sub_preempt_count(IRQ_EXIT_OFFSET);xen/arch/ia64/linux-xen/irq_ia64.c Wed Feb 8 16:28:11 2006 renamed from xen/arch/ia64/linux-xen/irq_ia64.c Thu Jan 26 10:31:28 2006 +1
-1- if (!in_interrupt() && local_softirq_pending()) { + if((((char *)regs) -(char *) current) !=(IA64_STK_OFFSET-IA64_PT_REGS_SIZE))
xen/arch/ia64/linux-xen/irq_ia64.c Wed Feb 8 16:28:11 2006 renamed from xen/arch/ia64/linux-xen/irq_ia64.c Thu Jan 26 10:31:28 2006 +3
-0+ return; + + if (!in_interrupt()&&local_softirq_pending()) {Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Formatting here is inconsistent with the rest of the file and
itself. Could we be setting some flag and adding the test to the existing in_interrupt/local_softirq_pending check? This looks rather precarious. Thanks,
Alex
Quoted 8 lines · Anthony
Williamson,
This patch is just a workaround, the essential cause is, the
soft_IRQshould be done at the path ofia64_leave_kernelwhich aligned with native linux and XEN/X86, instead of being invoking inirq_exitfunction.What's your opinion?
I'm afraid workarounds always last longer than expected, so we should
still try to do this cleanly. Xen 3.0.1 is already out so the time pressure to get this fixed is lessened. Being ia64 specific Xen code, I think we should try to do it right, get it into xen-ia64-unstable, then push it to xen-unstable. Thanks,
Alex
Signature · 1 line
Alex Williamson HP Linux & Open Source Lab