Skip to contentSkip to conversation

Make VTIdomain boot again

PATCH In review Xu, Anthony 2 participants 2 messages Feb 9, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make VTIdomain boot again

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.

Signed-off-by Anthony Xu <[email protected]>

Thanks,
-Anthony

xen/arch/ia64/linux-xen/irq_ia64.c +1 -1
diff -r 5fcc346d6fe0 xen/arch/ia64/linux-xen/irq_ia64.c
@@ -169,7 +169,7 @@
 	 * handler needs to be able to wait for further keyboard interrupts, which can't
 	 * come through until ia64_eoi() has been done.
 	 */
-	irq_exit();
+	xen_irq_exit(regs);
 }
 
 #ifdef CONFIG_HOTPLUG_CPU
xen/arch/ia64/xen/xenirq.c +5 -3
diff -r 5fcc346d6fe0 xen/arch/ia64/xen/xenirq.c
@@ -9,7 +9,6 @@
 #include <asm/ptrace.h>
 #include <asm/hw_irq.h>
 #include <asm/delay.h>
-
 
 void
 xen_debug_irq(ia64_vector vector, struct pt_regs *regs)
@@ -60,11 +59,14 @@
 /*
  * Exit an interrupt context. Process softirqs if needed and possible:
  */
-void irq_exit(void)
+void xen_irq_exit(struct pt_regs *regs)
 {
 	//account_system_vtime(current);
 	sub_preempt_count(IRQ_EXIT_OFFSET);
-	if (!in_interrupt() && local_softirq_pending()) {
+    if((((char *)regs) -(char *) current) != (IA64_STK_OFFSET-IA64_PT_REGS_SIZE))
+        return;
+
+	if (!in_interrupt()&&local_softirq_pending()) {
 		add_preempt_count(SOFTIRQ_OFFSET);
 		do_softirq();
 		sub_preempt_count(SOFTIRQ_OFFSET);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 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 keyboard

interrupts, which can't
* come through until ia64_eoi() has been done. */
- irq_exit();
+ xen_irq_exit(regs);
}

Quoted 1 line
Quoted 1 line
Quoted 1 line

This needs to be in an #ifdef XEN.

-void irq_exit(void)
+void xen_irq_exit(struct pt_regs *regs)

 {
        //account_system_vtime(current);
        sub_preempt_count(IRQ_EXIT_OFFSET);

- if (!in_interrupt() && local_softirq_pending()) {
+ if((((char *)regs) -(char *) current) !=
(IA64_STK_OFFSET-IA64_PT_REGS_SIZE))
+ return;
+
+ if (!in_interrupt()&&local_softirq_pending()) {

Quoted 1 line
Quoted 1 line
Quoted 1 line

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