]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: selftests: Make arm64's guest_get_vcpuid() declaration arm64-only
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 17:02:27 +0000 (09:02 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:02 +0000 (11:47 -0400)
Move the declaration of guest_get_vcpuid() to include/aarch64/processor.h,
it is implemented and used only by arm64.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/aarch64/processor.h
tools/testing/selftests/kvm/include/kvm_util_base.h

index 59ece9d4e0d1dddc097b18f849d4ff3ded897c16..4d2d474b6874b69582ee4051abd76799693ef159 100644 (file)
@@ -207,4 +207,6 @@ void smccc_hvc(uint32_t function_id, uint64_t arg0, uint64_t arg1,
               uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5,
               uint64_t arg6, struct arm_smccc_res *res);
 
+uint32_t guest_get_vcpuid(void);
+
 #endif /* SELFTEST_KVM_PROCESSOR_H */
index fbc54e920383818f11223154f83a9ede476e0f03..d94b6083d6789cef1d3f9179fd88c2b4109b747b 100644 (file)
@@ -707,6 +707,4 @@ kvm_userspace_memory_region_find(struct kvm_vm *vm, uint64_t start,
 
 void assert_on_unhandled_exception(struct kvm_vm *vm, uint32_t vcpuid);
 
-uint32_t guest_get_vcpuid(void);
-
 #endif /* SELFTEST_KVM_UTIL_BASE_H */