]> 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:03:21 +0000 (16:03 +0200)
commit8c1944905855c2ea56dbd21915dce6b802af49be
tree7a8e77315a3b072b1cfad4b57b4ee434aa536ca8
parent6fb766d53f613e23c60fb91b6fdbc10d522cccc6
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