projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
774206b
)
KVM: x86: __kvm_vcpu_halt can be static
author
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 8 Jan 2021 10:54:44 +0000
(
05:54
-0500)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 8 Jan 2021 10:54:44 +0000
(
05:54
-0500)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index 0287840b93e097a508523f711651b2857c7479e3..a480804ae27a3e3aa2bf6044262d96007e009b2f 100644
(file)
--- 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)) {