aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx/vmx.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-01-22 16:54:37 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2020-02-05 15:17:40 +0100
commit7e3e67a98701cbcb4378b4f69b28a43351ca27c2 (patch)
tree71f19d52d631ff943b778bd8a5b47e3e02ee28e0 /arch/x86/kvm/vmx/vmx.c
parentkvm: x86: Introduce APICv inhibit reason bits (diff)
downloadlinux-dev-7e3e67a98701cbcb4378b4f69b28a43351ca27c2.tar.xz
linux-dev-7e3e67a98701cbcb4378b4f69b28a43351ca27c2.zip
KVM: x86: remove get_enable_apicv from kvm_x86_ops
It is unused now. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
-rw-r--r--arch/x86/kvm/vmx/vmx.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index 69bd10a563c0..3e18df4cfb34 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -3719,11 +3719,6 @@ void pt_update_intercept_for_msr(struct vcpu_vmx *vmx)
}
}
-static bool vmx_get_enable_apicv(struct kvm *kvm)
-{
- return enable_apicv;
-}
-
static bool vmx_guest_apic_has_interrupt(struct kvm_vcpu *vcpu)
{
struct vcpu_vmx *vmx = to_vmx(vcpu);
@@ -7787,7 +7782,6 @@ static struct kvm_x86_ops vmx_x86_ops __ro_after_init = {
.update_cr8_intercept = update_cr8_intercept,
.set_virtual_apic_mode = vmx_set_virtual_apic_mode,
.set_apic_access_page_addr = vmx_set_apic_access_page_addr,
- .get_enable_apicv = vmx_get_enable_apicv,
.refresh_apicv_exec_ctrl = vmx_refresh_apicv_exec_ctrl,
.load_eoi_exitmap = vmx_load_eoi_exitmap,
.apicv_post_state_restore = vmx_apicv_post_state_restore,