[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yd30zIQsKTJCyGgO@google.com>
Date: Tue, 11 Jan 2022 21:21:16 +0000
From: Sean Christopherson <seanjc@...gle.com>
To: Borislav Petkov <bp@...e.de>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
x86-ml <x86@...nel.org>, lkml <linux-kernel@...r.kernel.org>
Subject: Re: [GIT PULL] perf/core for v5.17
On Tue, Jan 11, 2022, Borislav Petkov wrote:
> KVM: Move x86's perf guest info callbacks to generic KVM
This commit, e1bfc24577cc, introduces a new warning on arm64 with CONFIG_GUEST_PERF_EVENTS=n.
>> arch/arm64/kvm/arm.c:499:15: warning: no previous prototype for function 'kvm_arch_vcpu_get_ip' [-Wmissing-prototypes]
unsigned long kvm_arch_vcpu_get_ip(struct kvm_vcpu *vcpu)
I floated a potential fix[*], but we all lost track of it. I assume the easiest
solution at this point is to post a proper patch to go on top?
---
arch/arm64/kvm/arm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c
index 8129ee1ed3a4..e3b46951a92d 100644
--- a/arch/arm64/kvm/arm.c
+++ b/arch/arm64/kvm/arm.c
@@ -496,10 +496,12 @@ bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu)
return vcpu_mode_priv(vcpu);
}
+#ifdef CONFIG_GUEST_PERF_EVENTS
unsigned long kvm_arch_vcpu_get_ip(struct kvm_vcpu *vcpu)
{
return *vcpu_pc(vcpu);
}
+#endif
/* Just ensure a guest exit from a particular CPU */
static void exit_vm_noop(void *info)
--
[*] https://lore.kernel.org/all/YZvysKFSLTxDzaBs@google.com/
Powered by blists - more mailing lists