From: David Hildenbrand Date: Fri, 7 Apr 2017 08:50:32 +0000 (+0200) Subject: KVM: x86: directly call kvm_make_scan_ioapic_request() in ioapic.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca8ab3f8959c141b89dd682daafd2e64b01c295d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git KVM: x86: directly call kvm_make_scan_ioapic_request() in ioapic.c We know there is an ioapic, so let's call it directly. Signed-off-by: David Hildenbrand Signed-off-by: Radim Krčmář --- diff --git a/arch/x86/kvm/ioapic.c b/arch/x86/kvm/ioapic.c index 3072cdf15bfb..dc29a2785b81 100644 --- a/arch/x86/kvm/ioapic.c +++ b/arch/x86/kvm/ioapic.c @@ -313,7 +313,7 @@ static void ioapic_write_indirect(struct kvm_ioapic *ioapic, u32 val) if (e->fields.trig_mode == IOAPIC_LEVEL_TRIG && ioapic->irr & (1 << index)) ioapic_service(ioapic, index, false); - kvm_vcpu_request_scan_ioapic(ioapic->kvm); + kvm_make_scan_ioapic_request(ioapic->kvm); break; } } @@ -660,7 +660,7 @@ void kvm_set_ioapic(struct kvm *kvm, struct kvm_ioapic_state *state) memcpy(ioapic, state, sizeof(struct kvm_ioapic_state)); ioapic->irr = 0; ioapic->irr_delivered = 0; - kvm_vcpu_request_scan_ioapic(kvm); + kvm_make_scan_ioapic_request(kvm); kvm_ioapic_inject_all(ioapic, state->irr); spin_unlock(&ioapic->lock); }