reduce 'd' debug key's global impact
PATCH 1/1 reduce 'd' debug key's global impact
On large systems, dumping state may cause time management to get stalled for so long a period that it wouldn't recover. Therefore alter the state dumping logic to
- block each CPU as it prints rather than one CPU for a very long time
- don't print useless data (e.g. the hypervisor context of the interrupt that is used for triggering the printing, but isn't part of the context that's actuall interesting.
Signed-off-by Jan Beulich <[email protected]>
xen/arch/ia64/linux-xen/smp.c +1 -1
@@ -189,7 +189,7 @@ handle_IPI (int irq, void *dev_id, struc* At this point the structure may be gone unless * wait is true. */ - (*func)(info); + (*func)(info ?: regs);/* Notify the sending CPU that the task is done. */ mb ();
xen/arch/x86/smp.c +2 -2
@@ -395,7 +395,7 @@ static void __smp_call_function_interrupif ( call_data.wait ) { - (*func)(info); + (*func)(info ?:get_irq_regs ());mb ();atomic_inc (&call_data.finished); }
@@ -403,7 +403,7 @@ static void __smp_call_function_interrup {mb ();atomic_inc (&call_data.started); - (*func)(info); + (*func)(info ?:get_irq_regs ()); }irq_exit ();
xen/common/keyhandler.c +34 -21
75 lines not on this page · raw message
xen/include/asm-ia64/linux-xen/asm/ptrace.h +1 -1
@@ -280,7 +280,7 @@ struct switch_stack {# define ia64_task_regs (t) (((struct pt_regs *) ((char *) (t) + IA64_STK_OFFSET)) - 1)# define ia64_psr (regs) ((struct ia64_psr *) &(regs)->cr_ipsr)#ifdef XEN -# define guest_mode (regs) (ia64_psr(regs)->cpl != 0) +# define guest_mode (regs) (ia64_psr(regs)->cpl && !ia64_psr(regs)->vm)# define guest_kernel_mode (regs) (ia64_psr(regs)->cpl == CONFIG_CPL0_EMUL)# define vmx_guest_kernel_mode (regs) (ia64_psr(regs)->cpl == 0)# define regs_increment_iip (regs) \