]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: selftests: conditionally build vm_xsave_req_perm()
authorWei Wang <wei.w.wang@intel.com>
Tue, 18 Jan 2022 01:48:17 +0000 (20:48 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:09:25 +0000 (12:09 -0500)
commitcb956d8574006c42deee52602ec7cb25b4b0517e
treead20215853b9c47375743626fb4baa4a24bb8678
parentdb56d3b00f8247f3259303aa92fffd888658574c
kvm: selftests: conditionally build vm_xsave_req_perm()

vm_xsave_req_perm() is currently defined and used by x86_64 only.
Make it compiled into vm_create_with_vcpus() only when on x86_64
machines. Otherwise, it would cause linkage errors, e.g. on s390x.

Fixes: c4bd36ddce ("kvm: selftests: Add support for KVM_CAP_XSAVE2")
Reported-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Tested-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Message-Id: <20220118014817.30910-1-wei.w.wang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/kvm_util.c