]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/process: Move the buffer clearing before MONITOR
authorBorislav Petkov (AMD) <bp@alien8.de>
Mon, 14 Apr 2025 13:33:19 +0000 (15:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 14:08:55 +0000 (16:08 +0200)
commit62901034ddc8aa6fab5e21dcf6fbd0404e685c13
treedd2eb64d8ffe323db561174b865e9df8266da789
parent94560691aa1c6d642e3c8e9b7da4c3ad53e8f272
x86/process: Move the buffer clearing before MONITOR

Commit 8e786a85c0a3c0fffae6244733fb576eeabd9dec upstream.

Move the VERW clearing before the MONITOR so that VERW doesn't disarm it
and the machine never enters C1.

Original idea by Kim Phillips <kim.phillips@amd.com>.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/mwait.h
arch/x86/kernel/process.c