]> 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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Nov 2022 18:15:58 +0000 (10:15 -0800)
commit48ff8d3558cfa00f249fd2a5008beb4751100197
treec1d8dc14cd5d8ea8d68bb3dc926b715a33fb16ce
parent101d88f80ea834013b101bc6a528b6469a3dd772
x86/cpu: Restore AMD's DE_CFG MSR after resume

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: 28d7dff086f6 ("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>
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/hygon.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/x86.c
arch/x86/power/cpu.c
tools/arch/x86/include/asm/msr-index.h