aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-01-08 05:54:44 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-08 05:54:44 -0500
commit872f36eb0b0f4f0e3a81ea1e51a6bdf58ccfdc6e (patch)
treedeae67486222bf1c1c1bb2964b5a801039b926b8 /arch/x86/kvm/x86.c
parentMerge tag 'kvmarm-fixes-5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD (diff)
downloadlinux-dev-872f36eb0b0f4f0e3a81ea1e51a6bdf58ccfdc6e.tar.xz
linux-dev-872f36eb0b0f4f0e3a81ea1e51a6bdf58ccfdc6e.zip
KVM: x86: __kvm_vcpu_halt can be static
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 0287840b93e0..a480804ae27a 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -7976,7 +7976,7 @@ void kvm_arch_exit(void)
kmem_cache_destroy(x86_fpu_cache);
}
-int __kvm_vcpu_halt(struct kvm_vcpu *vcpu, int state, int reason)
+static int __kvm_vcpu_halt(struct kvm_vcpu *vcpu, int state, int reason)
{
++vcpu->stat.halt_exits;
if (lapic_in_kernel(vcpu)) {