coreboot/src
Matt DeVillier f9aed65785 cpu/intel/common: decouple IA32_FEATURE_CONTROL lock from set_vmx()
Newer CPUs/SoCs need to configure other features via the
IA32_FEATURE_CONTROL msr, such as SGX, which cannot be done if the
msr is already locked. Create separate functions for setting the
vmx flag and lock bit, and rename existing function to indicate that
the lock bit will be set in addition to vmx flag (per Kconfig).

This will allow Skylake/Kabylake (and others?) to use the common
VMX code without breaking SGX, while ensuring no change in functionality
to existing platforms which current set both together.

Test: build/boot each affected platform, ensure no change in functionality

Change-Id: Iee772fe87306b4729ca012cef8640d3858e2cb06
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30229
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: David Guckian
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-12-20 22:18:05 +00:00
..
acpi arch/x86: Add common AMD ACPI hardware definitions 2017-11-10 19:15:38 +00:00
arch arch/riscv: Don't set FPU state to "dirty" 2018-12-19 05:46:07 +00:00
commonlib src: Remove duplicated round up function 2018-11-29 12:17:45 +00:00
console (console,drivers/uart)/Kconfig: Fix dependencies 2018-11-21 22:49:48 +00:00
cpu cpu/intel/common: decouple IA32_FEATURE_CONTROL lock from set_vmx() 2018-12-20 22:18:05 +00:00
device {device,drivers}: Remove useless include <device/pci_ids.h> 2018-12-19 05:22:44 +00:00
drivers {device,drivers}: Remove useless include <device/pci_ids.h> 2018-12-19 05:22:44 +00:00
ec lenovo/h8,thinkpads: Re-do USB Always On 2018-12-06 11:59:22 +00:00
include Fix typos involving "the the" 2018-12-18 13:24:28 +00:00
lib lib/fit: Normalize spaces in board names to dashes 2018-12-19 05:18:45 +00:00
mainboard Revert "mb/google/poppy/variants/nocturne: Add DMIC properties to ACPI DSD" 2018-12-20 22:15:53 +00:00
northbridge northbridge: Remove useless include <device/pci_ids.h> 2018-12-19 05:21:38 +00:00
security tss: implement tlcl_save_state 2018-11-28 18:32:59 +00:00
soc cpu/intel/common: decouple IA32_FEATURE_CONTROL lock from set_vmx() 2018-12-20 22:18:05 +00:00
southbridge sb/intel/lynxpoint: Don't force state keep after power fail 2018-12-19 05:25:53 +00:00
superio smsc/sch5147: Implement ACPI handling of a few LDN 2018-12-19 05:41:55 +00:00
vendorcode Fix typos involving "the the" 2018-12-18 13:24:28 +00:00
Kconfig cpu/x86/Kconfig.debug: Move more options here 2018-11-23 08:38:31 +00:00