selftests: kvm: move vm_xsave_req_perm call to amx_test
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Jan 2022 12:44:34 +0000 (07:44 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Jan 2022 17:45:20 +0000 (12:45 -0500)
commitdd4516aee365fc9c944c9d6036b6b87363398680
treed37ff3074a20ea11c0c0d2b78167d5ee8cfaeb56
parent05a9e065059e566f218f8778c4d17ee75db56c55
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>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/lib/x86_64/processor.c
tools/testing/selftests/kvm/x86_64/amx_test.c