linux/tools/testing/selftests/kvm/lib/x86_64
Oliver Upton ac4a4d6de2 selftests: kvm: test enforcement of paravirtual cpuid features
Add a set of tests that ensure the guest cannot access paravirtual msrs
and hypercalls that have been disabled in the KVM_CPUID_FEATURES leaf.
Expect a #GP in the case of msr accesses and -KVM_ENOSYS from
hypercalls.

Cc: Jim Mattson <jmattson@google.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Reviewed-by: Aaron Lewis <aaronlewis@google.com>
Message-Id: <20201027231044.655110-7-oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-11-08 06:02:16 -05:00
..
handlers.S selftests: kvm: Add exception handling to selftests 2020-11-08 06:02:15 -05:00
processor.c selftests: kvm: test enforcement of paravirtual cpuid features 2020-11-08 06:02:16 -05:00
svm.c KVM: selftests: do not substitute SVM/VMX check with KVM_CAP_NESTED_STATE check 2020-06-11 12:35:17 -04:00
ucall.c selftests: kvm: Clear uc so UCALL_NONE is being properly reported 2020-11-08 06:02:14 -05:00
vmx.c KVM: selftests: test behavior of unmapped L2 APIC-access address 2020-10-31 10:04:38 -04:00