VMX_VM_ENTRY_LOAD_IA32_FRED depends on FRED. Define this dependency relationship.
Tested-by: Xudong Hao <[email protected]> Signed-off-by: Zhao Liu <[email protected]> --- target/i386/cpu.c | 4 ++++ target/i386/cpu.h | 1 + 2 files changed, 5 insertions(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 143b3e9e0c21..e891883fa72f 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -2036,6 +2036,10 @@ static FeatureDep feature_dependencies[] = { .from = { FEAT_7_1_EDX, CPUID_7_1_EDX_AVX10 }, .to = { FEAT_24_1_ECX, ~0ull }, }, + { + .from = { FEAT_7_1_EAX, CPUID_7_1_EAX_FRED }, + .to = { FEAT_VMX_ENTRY_CTLS, VMX_VM_ENTRY_LOAD_IA32_FRED }, + }, }; typedef struct X86RegisterInfo32 { diff --git a/target/i386/cpu.h b/target/i386/cpu.h index a0b8a59f6c98..2631bd25981a 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -1426,6 +1426,7 @@ uint64_t x86_cpu_get_supported_feature_word(X86CPU *cpu, FeatureWord w); #define VMX_VM_ENTRY_LOAD_IA32_RTIT_CTL 0x00040000 #define VMX_VM_ENTRY_LOAD_CET 0x00100000 #define VMX_VM_ENTRY_LOAD_IA32_PKRS 0x00400000 +#define VMX_VM_ENTRY_LOAD_IA32_FRED 0x00800000 /* Supported Hyper-V Enlightenments */ #define HYPERV_FEAT_RELAXED 0 -- 2.34.1
