x86/vmx: Add some FRED tests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest11 patches 0 repliesNew
Patches in v1 No applies recorded yet
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [kvm-unit-tests PATCH v1 00/11] x86/vmx: Add some FRED tests
This patch series add tests to:
1) verify that FRED MSRs are correctly handled during VM-Exit.
2) verify that attempting a VM entry with a reserved bit set in the host FRED_CONFIG MSR correctly triggers a VM-entry failure.
3) validate #GP injection for EFER.LME clear with FRED enabled.
While adding tests to verify FRED MSR behaviors controlled by VM-Exit FRED controls, add similar tests to verify EFER/PAT/RTIT/CET MSRs are correctly handled by their corresponding VM-Exit controls to improve test coverage (especially the nested code coverage).
Xin Li (11):
x86/vmx: Support the nested exception bit in VMX_BASIC MSR x86/vmx: Allow bit 13 of VM-entry injection info to be set x86/vmx: Simplify msr_bmp_init()
x86/vmx: Fix a typo
x86/vmx: Validate FRED MSR handling during VM-Exit x86/vmx: Validate the EFER MSR handling during VM-Exit x86/vmx: Validate the PAT MSR handling during VM-Exit x86/vmx: Validate the RTIT control MSR handling during VM-Exit x86/vmx: Validate CET MSR handling during VM-Exit x86/vmx: Validate FRED state checking during VM-Entry x86/vmx: Validate #GP injection for EFER.LME clear with FRED enabled
lib/x86/msr.h | 13 + lib/x86/processor.h | 2 + x86/vmx.c | 95 ++++++- x86/vmx.h | 118 ++++++++- x86/vmx_tests.c | 631 +++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 845 insertions(+), 14 deletions(-)
base-commit: 1da1819e49fc4938985edca67df669099b4c87a7
Signature · 1 line
2.54.0