aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2020-02-05 23:33:53 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2020-02-05 16:44:06 +0100
commita8be1ad01b795bd2a13297ddbaecdb956ab0efd0 (patch)
tree54dc0a885238ec8d7be097452591d686f4929dd1 /arch
parentKVM: x86: Mark CR4.UMIP as reserved based on associated CPUID bit (diff)
downloadlinux-dev-a8be1ad01b795bd2a13297ddbaecdb956ab0efd0.tar.xz
linux-dev-a8be1ad01b795bd2a13297ddbaecdb956ab0efd0.zip
KVM: vmx: delete meaningless vmx_decache_cr0_guest_bits() declaration
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/vmx/vmx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index ba334acaa37e..9a6664886f2e 100644
--- 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);