]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit559838c5ad1923c70a0d8de988b25a0f1f6099c0
treed37ff3074a20ea11c0c0d2b78167d5ee8cfaeb56
parent0b8cd9666e69f2c6f5a38af0a8785d70b80ca440
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