Browse Source

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>
pull/316/head
Zhao Liu 8 months ago
committed by Paolo Bonzini
parent
commit
2580c66147
  1. 4
      target/i386/cpu.c
  2. 1
      target/i386/cpu.h

4
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 {

1
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

Loading…
Cancel
Save