diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-29 09:49:59 (GMT) |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-01 13:06:24 (GMT) |
commit | d50ab6c1a2b24e12d3012d7beb343eba5b94a6ca (patch) | |
tree | f1c08677a8b33c0a9cbcd816cd5d603de486b340 /arch/x86/kvm/lapic.h | |
parent | 3bb345f387dd26beb097cf776e342bc0d96d805a (diff) | |
download | linux-d50ab6c1a2b24e12d3012d7beb343eba5b94a6ca.tar.xz |
KVM: x86: replace vm_has_apicv hook with cpu_uses_apicv
This will avoid an unnecessary trip to ->kvm and from there to the VPIC.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.h')
-rw-r--r-- | arch/x86/kvm/lapic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/lapic.h b/arch/x86/kvm/lapic.h index eb46d6b..7259d27 100644 --- a/arch/x86/kvm/lapic.h +++ b/arch/x86/kvm/lapic.h @@ -143,9 +143,9 @@ static inline int apic_x2apic_mode(struct kvm_lapic *apic) return apic->vcpu->arch.apic_base & X2APIC_ENABLE; } -static inline bool kvm_apic_vid_enabled(struct kvm *kvm) +static inline bool kvm_vcpu_apic_vid_enabled(struct kvm_vcpu *vcpu) { - return kvm_x86_ops->vm_has_apicv(kvm); + return kvm_x86_ops->cpu_uses_apicv(vcpu); } static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) |