projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d76c7fb
)
KVM: vmx: delete meaningless vmx_decache_cr0_guest_bits() declaration
author
Miaohe Lin
<linmiaohe@huawei.com>
Wed, 5 Feb 2020 15:33:53 +0000
(23:33 +0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 5 Feb 2020 15:44:06 +0000
(16:44 +0100)
The function vmx_decache_cr0_guest_bits() is only called below its
implementation. So this is meaningless and should be removed.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/vmx/vmx.c
b/arch/x86/kvm/vmx/vmx.c
index ba334acaa37e7389e4fb6bab214a8bb588283eac..9a6664886f2eff53fa478088dc65d488f7806667 100644
(file)
--- a/
arch/x86/kvm/vmx/vmx.c
+++ b/
arch/x86/kvm/vmx/vmx.c
@@
-1428,8
+1428,6
@@
static bool emulation_required(struct kvm_vcpu *vcpu)
return emulate_invalid_guest_state && !guest_state_valid(vcpu);
}
-static void vmx_decache_cr0_guest_bits(struct kvm_vcpu *vcpu);
-
unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu)
{
struct vcpu_vmx *vmx = to_vmx(vcpu);