]> xenbits.xensource.com Git - people/dwmw2/xen.git/commit
xen/spec-ctrl: Speculative mitigation facilities report wrong status
authorJin Nan Wang <jnwang@suse.com>
Wed, 31 Jul 2019 13:33:44 +0000 (13:33 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 31 Jul 2019 13:53:13 +0000 (14:53 +0100)
commit2adc580bd59f5c3034fd6ecacd5748678373f17a
treeffea9829f8e0a99c33d7f32534607d94cdb20d6c
parent3b6eff372806cc71b30acf5159febd21fa2c1cc0
xen/spec-ctrl: Speculative mitigation facilities report wrong status

Booting with spec-ctrl=0 results in Xen printing "None MD_CLEAR".

  (XEN)   Support for HVM VMs: None MD_CLEAR
  (XEN)   Support for PV VMs: None MD_CLEAR

Add a check about X86_FEATURE_MD_CLEAR to avoid to print "None".

Signed-off-by: James Wang <jnwang@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/spec_ctrl.c