mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
vmxcap: add support for VMX FRED controls
Report secondary vm-exit controls and the VMX controls used to save/load FRED MSRs. Tested-by: Shan Kang <shan.kang@intel.com> Signed-off-by: Xin Li <xin3.li@intel.com> Message-ID: <20231109072012.8078-5-xin3.li@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f88ddc40c6
commit
2e64187017
|
@ -24,6 +24,7 @@ MSR_IA32_VMX_TRUE_EXIT_CTLS = 0x48F
|
||||||
MSR_IA32_VMX_TRUE_ENTRY_CTLS = 0x490
|
MSR_IA32_VMX_TRUE_ENTRY_CTLS = 0x490
|
||||||
MSR_IA32_VMX_VMFUNC = 0x491
|
MSR_IA32_VMX_VMFUNC = 0x491
|
||||||
MSR_IA32_VMX_PROCBASED_CTLS3 = 0x492
|
MSR_IA32_VMX_PROCBASED_CTLS3 = 0x492
|
||||||
|
MSR_IA32_VMX_EXIT_CTLS2 = 0x493
|
||||||
|
|
||||||
class msr(object):
|
class msr(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -219,11 +220,21 @@ controls = [
|
||||||
23: 'Clear IA32_BNDCFGS',
|
23: 'Clear IA32_BNDCFGS',
|
||||||
24: 'Conceal VM exits from PT',
|
24: 'Conceal VM exits from PT',
|
||||||
25: 'Clear IA32_RTIT_CTL',
|
25: 'Clear IA32_RTIT_CTL',
|
||||||
|
31: 'Activate secondary VM-exit controls',
|
||||||
},
|
},
|
||||||
cap_msr = MSR_IA32_VMX_EXIT_CTLS,
|
cap_msr = MSR_IA32_VMX_EXIT_CTLS,
|
||||||
true_cap_msr = MSR_IA32_VMX_TRUE_EXIT_CTLS,
|
true_cap_msr = MSR_IA32_VMX_TRUE_EXIT_CTLS,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
Allowed1Control(
|
||||||
|
name = 'secondary VM-Exit controls',
|
||||||
|
bits = {
|
||||||
|
0: 'Save IA32 FRED MSRs',
|
||||||
|
1: 'Load IA32 FRED MSRs',
|
||||||
|
},
|
||||||
|
cap_msr = MSR_IA32_VMX_EXIT_CTLS2,
|
||||||
|
),
|
||||||
|
|
||||||
Control(
|
Control(
|
||||||
name = 'VM-Entry controls',
|
name = 'VM-Entry controls',
|
||||||
bits = {
|
bits = {
|
||||||
|
@ -237,6 +248,7 @@ controls = [
|
||||||
16: 'Load IA32_BNDCFGS',
|
16: 'Load IA32_BNDCFGS',
|
||||||
17: 'Conceal VM entries from PT',
|
17: 'Conceal VM entries from PT',
|
||||||
18: 'Load IA32_RTIT_CTL',
|
18: 'Load IA32_RTIT_CTL',
|
||||||
|
23: 'Load IA32 FRED MSRs',
|
||||||
},
|
},
|
||||||
cap_msr = MSR_IA32_VMX_ENTRY_CTLS,
|
cap_msr = MSR_IA32_VMX_ENTRY_CTLS,
|
||||||
true_cap_msr = MSR_IA32_VMX_TRUE_ENTRY_CTLS,
|
true_cap_msr = MSR_IA32_VMX_TRUE_ENTRY_CTLS,
|
||||||
|
|
Loading…
Reference in a new issue