soc/intel/xeon_sp/gnr: Enable VMX by FSP

Configure FSP UPD VMX from Kconfig ENABLE_VMX.

Change-Id: I0c03f535b6f93761419657127e791c02e8ee4988
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84327
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Johnny Lin 2023-05-08 09:08:14 +08:00 committed by Lean Sheng Tan
commit ac47ea8675
2 changed files with 8 additions and 2 deletions

View file

@ -34,8 +34,9 @@ static void each_cpu_init(struct device *cpu)
printk(BIOS_SPEW, "%s dev: %s, cpu: %lu, apic_id: 0x%x\n",
__func__, dev_path(cpu), cpu_index(), cpu->path.apic.apic_id);
/* Enable VMX */
set_vmx_and_lock();
/* Only lock and let vmx enabled by FSP to avoid FSP always triggering power good reset
due to vmx configuration conflict */
set_feature_ctrl_lock();
}
static struct device_operations cpu_dev_ops = {

View file

@ -66,6 +66,11 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
"FSP_BOOT_WITH_FULL_CONFIGURATION.\n");
}
if (CONFIG(ENABLE_VMX))
m_cfg->VmxEnable = 1;
else
m_cfg->VmxEnable = 0;
/* Board level settings */
mainboard_memory_init_params(mupd);
}