diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-29 12:49:59 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-01 16:06:24 +0300 |
commit | d50ab6c1a2b24e12d3012d7beb343eba5b94a6ca (patch) | |
tree | f1c08677a8b33c0a9cbcd816cd5d603de486b340 /arch/x86/kvm/irq.c | |
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/irq.c')
-rw-r--r-- | arch/x86/kvm/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/irq.c b/arch/x86/kvm/irq.c index a1ec6a50a05a..c0dad893dc59 100644 --- a/arch/x86/kvm/irq.c +++ b/arch/x86/kvm/irq.c @@ -63,7 +63,7 @@ int kvm_cpu_has_injectable_intr(struct kvm_vcpu *v) if (kvm_cpu_has_extint(v)) return 1; - if (kvm_apic_vid_enabled(v->kvm)) + if (kvm_vcpu_apic_vid_enabled(v)) return 0; return kvm_apic_has_interrupt(v) != -1; /* LAPIC */ |