diff options
author | Sean Christopherson <seanjc@google.com> | 2022-02-16 09:02:27 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-11 11:47:02 -0400 |
commit | 033899489062e69d06e1ef7c0795ad9ac9bd47c1 (patch) | |
tree | 29fdc61a68da11d71aee950aa3b53c82f94ca189 /tools | |
parent | fd04edc3560c1be3321c50da1bb504ebc002e676 (diff) | |
download | linux-stable-033899489062e69d06e1ef7c0795ad9ac9bd47c1.tar.gz linux-stable-033899489062e69d06e1ef7c0795ad9ac9bd47c1.tar.bz2 linux-stable-033899489062e69d06e1ef7c0795ad9ac9bd47c1.zip |
KVM: selftests: Make arm64's guest_get_vcpuid() declaration arm64-only
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/kvm/include/aarch64/processor.h | 2 | ||||
-rw-r--r-- | tools/testing/selftests/kvm/include/kvm_util_base.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/kvm/include/aarch64/processor.h b/tools/testing/selftests/kvm/include/aarch64/processor.h index 59ece9d4e0d1..4d2d474b6874 100644 --- a/tools/testing/selftests/kvm/include/aarch64/processor.h +++ b/tools/testing/selftests/kvm/include/aarch64/processor.h @@ -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 */ diff --git a/tools/testing/selftests/kvm/include/kvm_util_base.h b/tools/testing/selftests/kvm/include/kvm_util_base.h index fbc54e920383..d94b6083d678 100644 --- a/tools/testing/selftests/kvm/include/kvm_util_base.h +++ b/tools/testing/selftests/kvm/include/kvm_util_base.h @@ -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 */ |