hv: refine security capability detection function.

ACRN hypervisor always print CPU microcode update
 warning message on KBL NUC platform, even after
 BIOS was updated to the latest.

 'check_cpu_security_cap()' returns false if
 no ARCH_CAPABILITIES MSR support on current platform,
 but this MSR may not be available on some platforms.
 This patch is to remove this pre-condition.

Tracked-On: #3317
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Reviewed-by: Jason CJ Chen <jason.cj.chen@intel.com>
This commit is contained in:
Yonghua Huang
2019-07-02 13:21:07 +08:00
committed by wenlingz
parent 127c98f5db
commit 076a30b555
2 changed files with 10 additions and 10 deletions

View File

@@ -9,7 +9,7 @@
/* type of speculation control
* 0 - no speculation control support
* 1 - raw IBRS + IPBP support
* 1 - raw IBRS + IBPB support
* 2 - with STIBP optimization support
*/
#define IBRS_NONE 0