Skip to content

x86/vmx: Add some FRED tests

Xin Li kvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11x86/vmx: Support the nested exception bit in VMX_BASIC MSRx86/vmx.c x86/vmx.h+6 -30 replies
2/11x86/vmx: Allow bit 13 of VM-entry injection info to be setx86/vmx_tests.c+9 -00 replies
3/11x86/vmx: Simplify msr_bmp_init()x86/vmx_tests.c+2 -80 replies
4/11x86/vmx: Fix a typox86/vmx_tests.c+1 -10 replies
5/11x86/vmx: Validate FRED MSR handling during VM-Exitlib/x86/msr.h x86/vmx.h x86/vmx_tests.c+156 -10 replies
6/11x86/vmx: Validate the EFER MSR handling during VM-Exitx86/vmx_tests.c+126 -00 replies
7/11x86/vmx: Validate the PAT MSR handling during VM-Exitx86/vmx_tests.c+119 -00 replies
8/11x86/vmx: Validate the RTIT control MSR handling during VM-Exitx86/vmx.h x86/vmx_tests.c+52 -00 replies
9/11x86/vmx: Validate CET MSR handling during VM-Exitx86/vmx_tests.c+50 -00 replies
10/11x86/vmx: Validate FRED state checking during VM-Entryx86/vmx_tests.c+39 -00 replies
11/11x86/vmx: Validate #GP injection for EFER.LME clear with FRED enabledlib/x86/processor.h x86/vmx.c x86/vmx.h +1 more+285 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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