diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-07-31 10:33:39 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-07-31 14:03:10 -0700 |
| commit | 2cb49770e28f7f22abf33c4e4ec8dc80e090f721 (patch) | |
| tree | 6dab10e01c3c450a70a07ce6d3d8070ac2aea892 /include | |
| parent | 6fc510e1f10129090aabd5ff352e952bfd82fce9 (diff) | |
KVM: selftests: Refactor invalid nVMX state test to prepare for RSM testcase
In the invalid nVMX guest state test, extract the creation of the VM and
initial running of the vCPU to get to L2 into helpers so that the common
code can be reused to extend the test to also cover RSM.
Eliminate the unnecessary global "vm", and opportunistically free the VM
after the testcase as there's zero reason not to.
Opportunistically assert that L2 is never resumed after the I/O exit to L1,
e.g. to guard against false passes.
Link: https://patch.msgid.link/20260731173340.2644656-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
