linux/tools/testing/selftests/kvm/x86_64
Vitaly Kuznetsov c9ecafaf01 KVM: selftests: evmcs_test: Check that VMCS12 is alway properly synced to eVMCS after restore
Add a test for the regression, introduced by commit f2c7ef3ba9
("KVM: nSVM: cancel KVM_REQ_GET_NESTED_STATE_PAGES on nested vmexit"). When
L2->L1 exit is forced immediately after restoring nested state,
KVM_REQ_GET_NESTED_STATE_PAGES request is cleared and VMCS12 changes
(e.g. fresh RIP) are not reflected to eVMCS. The consequent nested
vCPU run gets broken.

Utilize NMI injection to do the job.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20210505151823.1341678-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-05-07 06:06:12 -04:00
..
cr4_cpuid_sync_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
debug_regs.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
evmcs_test.c KVM: selftests: evmcs_test: Check that VMCS12 is alway properly synced to eVMCS after restore 2021-05-07 06:06:12 -04:00
get_cpuid_test.c selftest: kvm: x86: test KVM_GET_CPUID2 and guest visible CPUIDs against KVM_GET_SUPPORTED_CPUID 2021-02-04 05:27:36 -05:00
get_msr_index_features.c selftests: kvm: add get_msr_index_features 2021-03-18 13:30:49 -04:00
hyperv_clock.c selftests: kvm: Check that TSC page value is small after KVM_SET_CLOCK(0) 2021-04-01 05:14:19 -04:00
hyperv_cpuid.c selftests: kvm: Move kvm_get_supported_hv_cpuid() to common code 2021-02-09 08:17:09 -05:00
kvm_pv_test.c KVM: selftests: Make test skipping consistent 2020-11-16 13:14:20 -05:00
mmio_warning_test.c KVM: selftests: Use consistent message for test skipping 2020-03-16 17:59:05 +01:00
platform_info_test.c KVM: selftests: Use consistent message for test skipping 2020-03-16 17:59:05 +01:00
set_boot_cpu_id.c selftests: kvm: add set_boot_cpu_id test 2021-03-18 13:55:14 -04:00
set_sregs_test.c KVM: selftests: Verify supported CR4 bits can be set before KVM_SET_CPUID2 2020-11-15 09:49:08 -05:00
smm_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
state_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
svm_vmcall_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
sync_regs_test.c KVM: selftests: Use consistent message for test skipping 2020-03-16 17:59:05 +01:00
tsc_msrs_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
userspace_msr_exit_test.c selftests: kvm: Merge user_msr_test into userspace_msr_exit_test 2020-12-11 19:00:58 -05:00
vmx_apic_access_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
vmx_close_while_nested_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
vmx_dirty_log_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
vmx_pmu_msrs_test.c selftests: kvm/x86: add test for pmu msr MSR_IA32_PERF_CAPABILITIES 2021-02-04 05:27:27 -05:00
vmx_preemption_timer_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
vmx_set_nested_state_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
vmx_tsc_adjust_test.c KVM: selftests: x86: Set supported CPUIDs on default VM 2020-11-16 13:14:20 -05:00
xapic_ipi_test.c KVM: selftests: Test IPI to halted vCPU in xAPIC while backing page moves 2021-02-04 05:27:17 -05:00
xen_shinfo_test.c KVM: selftests: remove redundant semi-colon 2021-04-17 08:31:01 -04:00
xen_vmcall_test.c KVM: selftests: Fix size of memslots created by Xen tests 2021-02-11 08:02:09 -05:00
xss_msr_test.c KVM: selftests: Use consistent message for test skipping 2020-03-16 17:59:05 +01:00