diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2018-03-28 15:21:39 +0100 |
---|---|---|
committer | Andrew Cooper <andrew.cooper3@citrix.com> | 2018-08-14 16:56:47 +0100 |
commit | 3563fc2b2731a63fd7e8372ab0f5cef205bf8477 (patch) | |
tree | 1fd40e9438cbb45017324ff2de34584336c3af91 /xen/arch/x86/cpuid.c | |
parent | 06e8b622d3f3c0fa5075e91b041c6f45549ad70a (diff) |
x86/spec-ctrl: CPUID/MSR definitions for L1D_FLUSH
This is part of XSA-273 / CVE-2018-3646.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/arch/x86/cpuid.c')
-rw-r--r-- | xen/arch/x86/cpuid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/arch/x86/cpuid.c b/xen/arch/x86/cpuid.c index f160389f19..3d504b3328 100644 --- a/xen/arch/x86/cpuid.c +++ b/xen/arch/x86/cpuid.c @@ -43,6 +43,11 @@ static int __init parse_xen_cpuid(const char *s) if ( !val ) setup_clear_cpu_cap(X86_FEATURE_STIBP); } + else if ( (val = parse_boolean("l1d-flush", s, ss)) >= 0 ) + { + if ( !val ) + setup_clear_cpu_cap(X86_FEATURE_L1D_FLUSH); + } else if ( (val = parse_boolean("ssbd", s, ss)) >= 0 ) { if ( !val ) |