]> xenbits.xensource.com Git - xen.git/commit
x86/amd: Fix DE_CFG truncation in amd_check_zenbleed()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 28 Jul 2023 17:42:12 +0000 (18:42 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 31 Jul 2023 12:50:54 +0000 (13:50 +0100)
commitc0dd53b8cbd1e47e9c89873a9265a7170bdc6b4c
tree830e8d3ca0dd1797ca893447469f1e76ca8f7ee7
parentfff3c99f84589a876fcd8467ea99f2c8d9ff8d21
x86/amd: Fix DE_CFG truncation in amd_check_zenbleed()

This line:

val &= ~chickenbit;

ends up truncating val to 32 bits, and turning off various errata workarounds
in Zen2 systems.

Fixes: f91c5ea97067 ("x86/amd: Mitigations for Zenbleed")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/amd.c