From: David Hildenbrand Date: Fri, 7 Apr 2017 08:50:31 +0000 (+0200) Subject: KVM: x86: remove all-vcpu request from kvm_ioapic_init() X-Git-Tag: Ubuntu-5.2.0-15.16~6920^2~40 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d62f270b2d5015d30d7f58f8429a5a26993b22a8;p=mirror_ubuntu-eoan-kernel.git KVM: x86: remove all-vcpu request from kvm_ioapic_init() kvm_ioapic_init() is guaranteed to be called without any created VCPUs, so doing an all-vcpu request results in a NOP. 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 6e1d8cbe2fd9..3072cdf15bfb 100644 --- a/arch/x86/kvm/ioapic.c +++ b/arch/x86/kvm/ioapic.c @@ -622,10 +622,8 @@ int kvm_ioapic_init(struct kvm *kvm) if (ret < 0) { kvm->arch.vioapic = NULL; kfree(ioapic); - return ret; } - kvm_vcpu_request_scan_ioapic(kvm); return ret; }