]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Add some paranoid entry/exit CR3 handling comments
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 12 Oct 2018 23:21:18 +0000 (16:21 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 14 Oct 2018 09:11:22 +0000 (11:11 +0200)
commit082d17cebef192b62eed9d75d832468f8746f7ca
tree044d2cfaa1e2fe08feb08946233af179b05b2643
parent4c1cd9ecc843c00391eadc7b55dbf902f49c947e
x86/entry: Add some paranoid entry/exit CR3 handling comments

Andi Kleen was just asking me about the NMI CR3 handling and why
we restore it unconditionally.  I was *sure* we had documented it
well.  We did not.

Add some documentation.  We have common entry code where the CR3
value is stashed, but three places in two big code paths where we
restore it.  I put bulk of the comments in this common path and
then refer to it from the other spots.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: luto@kernel.org
Cc: bp@alien8.de
Cc: "H. Peter Anvin" <hpa@zytor.come
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Link: https://lkml.kernel.org/r/20181012232118.3EAAE77B@viggo.jf.intel.com
arch/x86/entry/entry_64.S