linux/tools/testing/selftests/kvm
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
..
include selftests: kvm: test enforcement of paravirtual cpuid features 2020-11-08 06:02:16 -05:00
lib selftests: kvm: test enforcement of paravirtual cpuid features 2020-11-08 06:02:16 -05:00
s390x selftests: KVM: s390: check for registers to NOT change on reset 2020-03-16 17:59:09 +01:00
x86_64 selftests: kvm: test enforcement of paravirtual cpuid features 2020-11-08 06:02:16 -05:00
.gitignore selftests: kvm: test enforcement of paravirtual cpuid features 2020-11-08 06:02:16 -05:00
clear_dirty_log_test.c kvm: selftests: Support dirty log initial-all-set test 2020-03-16 17:57:41 +01:00
config selftests: kvm: Adding config fragments 2019-08-09 16:52:38 +02:00
demand_paging_test.c KVM: selftests: Rework timespec functions and usage 2020-03-18 14:08:56 +01:00
dirty_log_test.c selftests: kvm: Uses TEST_FAIL in tests/utilities 2020-03-16 17:59:11 +01:00
kvm_create_max_vcpus.c KVM: selftests: Convert some printf's to pr_info's 2020-03-16 17:57:07 +01:00
Makefile selftests: kvm: test enforcement of paravirtual cpuid features 2020-11-08 06:02:16 -05:00
set_memory_region_test.c selftests: kvm/set_memory_region_test: do not check RIP if the guest shuts down 2020-04-21 09:13:13 -04:00
steal_time.c KVM: selftests: Rework timespec functions and usage 2020-03-18 14:08:56 +01:00