mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:f91c5ea970("x86/amd: Mitigations for Zenbleed") Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> (cherry picked from commitc0dd53b8cb)
This commit is contained in:
1 parent
82c5ab6be0
commit
a910e3f2a4
1 file changed
+2
-2
@@ -773,8 +773,8 @@ void __init detect_zen2_null_seg_behaviour(void)
|
||||
void amd_check_zenbleed(void)
|
||||
{
|
||||
const struct cpu_signature *sig = &this_cpu(cpu_sig);
|
||||
unsigned int good_rev, chickenbit = (1 << 9);
|
||||
uint64_t val, old_val;
|
||||
unsigned int good_rev;
|
||||
uint64_t val, old_val, chickenbit = (1 << 9);
|
||||
|
||||
/*
|
||||
* If we're virtualised, we can't do family/model checks safely, and
|
||||
|
||||