Re: NMI between switch_mm and switch_to

From: Andi Kleen
Date: Tue Jul 28 2009 - 05:23:41 EST


Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> writes:

> We could use preempt notifiers (or put in our own hooks) to disable
> callchains during the context switch I suppose.

You can simply check if cr3 matches the current->mm page tables
and not dump if they are not.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/