diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-01-26 07:44:34 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-01-26 12:45:20 -0500 |
commit | dd4516aee365fc9c944c9d6036b6b87363398680 (patch) | |
tree | d37ff3074a20ea11c0c0d2b78167d5ee8cfaeb56 /tools/testing/selftests/kvm/include/x86_64 | |
parent | 05a9e065059e566f218f8778c4d17ee75db56c55 (diff) | |
download | linux-dd4516aee365fc9c944c9d6036b6b87363398680.tar.gz linux-dd4516aee365fc9c944c9d6036b6b87363398680.tar.bz2 linux-dd4516aee365fc9c944c9d6036b6b87363398680.zip |
selftests: kvm: move vm_xsave_req_perm call to amx_test
There is no need for tests other than amx_test to enable dynamic xsave
states. Remove the call to vm_xsave_req_perm from generic code,
and move it inside the test. While at it, allow customizing the bit
that is requested, so that future tests can use it differently.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/include/x86_64')
-rw-r--r-- | tools/testing/selftests/kvm/include/x86_64/processor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/x86_64/processor.h b/tools/testing/selftests/kvm/include/x86_64/processor.h index 423d8a61bd2e..8a470da7b71a 100644 --- a/tools/testing/selftests/kvm/include/x86_64/processor.h +++ b/tools/testing/selftests/kvm/include/x86_64/processor.h @@ -458,6 +458,7 @@ uint64_t kvm_hypercall(uint64_t nr, uint64_t a0, uint64_t a1, uint64_t a2, struct kvm_cpuid2 *kvm_get_supported_hv_cpuid(void); void vcpu_set_hv_cpuid(struct kvm_vm *vm, uint32_t vcpuid); struct kvm_cpuid2 *vcpu_get_supported_hv_cpuid(struct kvm_vm *vm, uint32_t vcpuid); +void vm_xsave_req_perm(int bit); enum x86_page_size { X86_PAGE_SIZE_4K = 0, |