Re: [tip:perfcounters/core] perf_counter: x86: Fix call-chain support to use NMI-safe methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip:perfcounters/core] perf_counter: x86: Fix call-chain support to use NMI-safe methods
- From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Jun 2009 11:30:05 -0700 (PDT)
- Cc: Ingo Molnar <mingo@xxxxxxx>, mingo@xxxxxxxxxx, hpa@xxxxxxxxx, paulus@xxxxxxxxx, acme@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, a.p.zijlstra@xxxxxxxxx, penberg@xxxxxxxxxxxxxx, vegard.nossum@xxxxxxxxx, efault@xxxxxx, jeremy@xxxxxxxx, npiggin@xxxxxxx, tglx@xxxxxxxxxxxxx, linux-tip-commits@xxxxxxxxxxxxxxx
- In-reply-to: <20090615180527.GB4201@Krystal>
- References: <tip-74193ef0ecab92535c8517f082f1f50504526c9b@xxxxxxxxxxxxxx> <alpine.LFD.2.01.0906151007560.3305@xxxxxxxxxxxxxxxxxxxxx> <20090615171845.GA7664@xxxxxxx> <alpine.LFD.2.01.0906151029160.3305@xxxxxxxxxxxxxxxxxxxxx> <20090615180527.GB4201@Krystal>
- User-agent: Alpine 2.01 (LFD 1184 2008-12-16)
On Mon, 15 Jun 2009, Mathieu Desnoyers wrote:
>
> Hrm, would it be possible to save the c2 register upon nmi handler entry
> and restore it before iret instead ?
Yes, that would work as well, and be less subtle.
It still does have the same worries about CPU's not being all that happy
about writing to %cr2 (we do it when restoring CPU state at resume time,
but nobody has ever _cared_ before, so I don't know if it matters).
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]