Commit 2580c66147 for qemu.org
commit 2580c66147721d7724613bf240ead8ca95072996
Author: Zhao Liu <zhao1.liu@intel.com>
Date: Mon Dec 15 15:37:41 2025 +0800
i386/cpu: Define dependency for VMX_VM_ENTRY_LOAD_IA32_FRED
VMX_VM_ENTRY_LOAD_IA32_FRED depends on FRED. Define this dependency
relationship.
Tested-by: Xudong Hao <xudong.hao@intel.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20251215073743.4055227-10-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 49a8f30feb..3440a70852 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 a4a8bc61a9..41ea04099b 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -1439,6 +1439,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