mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +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
64b40594f5
commit
602ee4c295
1 file changed
+2
-2
@@ -760,8 +760,8 @@ void amd_init_spectral_chicken(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
|
||||
|
||||