xen/spec-ctrl: Speculative mitigation facilities report wrong status
authorJames Wang <jnwang@suse.com>
Mon, 23 Sep 2019 12:33:31 +0000 (14:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Sep 2019 12:33:31 +0000 (14:33 +0200)
commit5fd47c57db388d1be961e3282f132bda12e58c1a
tree951933092063a6d9b4229d2687c664f93bc20487
parent6af54f7ce3b2391ff9f93e0ee085cad9dd8471f7
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>
master commit: 2adc580bd59f5c3034fd6ecacd5748678373f17a
master date: 2019-07-31 14:53:13 +0100
xen/arch/x86/spec_ctrl.c