aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp
diff options
context:
space:
mode:
authorChristian Walter <christian.walter@9elements.com>2020-09-30 13:48:29 +0200
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2020-10-08 15:38:28 +0000
commitabb3757847aff8b816c8052f2b55a806d8b245c7 (patch)
tree1aa80cca6c18992cfe82c8a8cf540b90c7c5e812 /src/soc/intel/xeon_sp
parent6e536bcca873bea81e630d87d20816bd909bff2d (diff)
soc/intel/xeon_sp/cpx: Add locking of IA32_FEATURE_CONTROL and VMX
Change-Id: Ib329648f77acecccb0ced1806f61be252d03f2f4 Signed-off-by: Christian Walter <christian.walter@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45869 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp')
-rw-r--r--src/soc/intel/xeon_sp/cpx/cpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/intel/xeon_sp/cpx/cpu.c b/src/soc/intel/xeon_sp/cpx/cpu.c
index eb8c0eb48a..0999f6d721 100644
--- a/src/soc/intel/xeon_sp/cpx/cpu.c
+++ b/src/soc/intel/xeon_sp/cpx/cpu.c
@@ -16,6 +16,7 @@
#include <soc/msr.h>
#include <soc/soc_util.h>
#include "chip.h"
+#include <cpu/intel/common/common.h>
static const void *microcode_patch;
@@ -91,6 +92,9 @@ static void each_cpu_init(struct device *cpu)
/* Clear out pending MCEs */
xeon_configure_mca();
+
+ /* Enable Vmx */
+ set_vmx_and_lock();
}
static struct device_operations cpu_dev_ops = {