summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/vmx.c
Commit message (Collapse)AuthorAgeFilesLines
* kvm: selftests: move arch-specific files to arch-specific locationsAndrew Jones2018-10-171-283/+0
| | | | | Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* KVM: selftests: add tests for shadow VMCS save/restorePaolo Bonzini2018-08-061-3/+30
| | | | | | | This includes setting up the shadow VMCS and the secondary execution controls in lib/vmx.c. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* kvm: selftests: actually use all of lib/vmx.cPaolo Bonzini2018-08-061-29/+42
| | | | | | | | | | The allocation of the VMXON and VMCS is currently done twice, in lib/vmx.c and in vmx_tsc_adjust_test.c. Reorganize the code to provide a cleaner and easier to use API to the tests. lib/vmx.c now does the complete setup of the VMX data structures, but does not create the VM or set CPUID. This has to be done by the caller. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* kvm: selftests: add vmx_tsc_adjust_testPaolo Bonzini2018-04-161-0/+243
The test checks the behavior of setting MSR_IA32_TSC in a nested guest, and the TSC_OFFSET VMCS field in general. It also introduces the testing infrastructure for Intel nested virtualization. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
OpenPOWER on IntegriCloud