Skip to content

: kvm-unit-test: nVMX: Test deferring of error from VM-entry MSR-load area

Krish Sadhukhan kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kvm-unit-test: VMX: Replace hard-coded exit instruction lengthx86/vmx_tests.c+14 -41 reply
2/4kvm-unit-test: nVMX: __enter_guest() needs to also check for VMX_FAIL_STATEx86/vmx.c+2 -12 replies
3/4kvm-unit-test: nVMX: Test deferring of error from VM-entry MSR-load areax86/vmx_tests.c+119 -00 replies
4/4kvm-unit-test: nVMX: Use #defines for exit reason in advance_guest_state_test()x86/vmx_tests.c+1 -11 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchLiran AlonKarl HeubaumJim Mattson
1/4R-b R-b R-b
2/4R-b
3/4R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4]: kvm-unit-test: nVMX: Test deferring of error from VM-entry MSR-load area

Patch# 1: Replaces hard-coded value with instruction length read from VMCS
field.
Patch# 2: Adds an extra check to __enter_guest() so that it can distinguish
between VM-entry failure due to invalid guest state and that due to invalid VM-entry MSR-load area.
Patch# 3: Verifies that when VM-entry fails due to invalid VM-entry MSR-load
area in vmcs12, the error is deferred and caught by hardware when it is done processing higher priority checks such as guest state etc. This patch also verifies that when VM-entry fails due to invalid VM-entry MSR-load area in vmcs12, MSRs that were loaded from that MSR-load area are rolled back to their original values.
Patch# 4: Replaces hard-coded value with corresponding #define.

[PATCH 1/4] kvm-unit-test: VMX: Replace hard-coded exit instruction length [PATCH 2/4] kvm-unit-test: nVMX: __enter_guest() needs to also check for [PATCH 3/4] kvm-unit-test: nVMX: Test deferring of error from VM-entry MSR-load area [PATCH 4/4] kvm-unit-test: nVMX: Use #defines for exit reason in

 x86/vmx.c       |   3 +-
 x86/vmx_tests.c | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 136 insertions(+), 6 deletions(-)

Krish Sadhukhan (4):
VMX: Replace hard-coded exit instruction length
VMX: __enter_guest() needs to also check for VMX_FAIL_STATE
nVMX: Test deferring of error from VM-entry MSR-load area
nVMX: Use #defines for exit reason in advance_guest_state_test()