]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpu: Restore AMD's DE_CFG MSR after resume
authorBorislav Petkov <bp@suse.de>
Mon, 14 Nov 2022 11:44:01 +0000 (12:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:11 +0000 (17:42 +0100)
commitf22161e8c6f2a0d132b6ed7af6cb24df7a345ee5
tree0e02dd7ccfa2992645fb5930bc7bfff2474d7c84
parent5feba3cb866709e0444dfe490bf51f87688803f7
x86/cpu: Restore AMD's DE_CFG MSR after resume

commit 502162a86bf8c23ff40635319a40ba4d753e4251 upstream.

DE_CFG contains the LFENCE serializing bit, restore it on resume too.
This is relevant to older families due to the way how they do S3.

Unify and correct naming while at it.

Fixes: 0e28b8f2bc79 ("x86/cpu/AMD: Make LFENCE a serializing instruction")
Reported-by: Andrew Cooper <Andrew.Cooper3@citrix.com>
Reported-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/hygon.c
arch/x86/kvm/svm.c
arch/x86/kvm/x86.c
arch/x86/power/cpu.c
tools/testing/selftests/kvm/include/x86_64/processor.h