Re: [tip:perfcounters/core] perf_counter: x86: Fix call-chain supportto use NMI-safe methods

From: Jeremy Fitzhardinge
Date: Mon Jun 15 2009 - 16:18:36 EST


On 06/15/09 12:21, Avi Kivity wrote:
You can read cr2 on nmi entry and nmi exit, and only write it if it has changed (if it turns out that writing cr2 is expensive; ISTR that it isn't).


Writing the real cr2 is expensive, but it may be cheap to write the virtual cr2 in a vmx context. Or something.

J
--
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/