KVM: x86: remove all-vcpu request from kvm_ioapic_init()
authorDavid Hildenbrand <david@redhat.com>
Fri, 7 Apr 2017 08:50:31 +0000 (10:50 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 12 Apr 2017 18:17:14 +0000 (20:17 +0200)
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 <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/ioapic.c

index 6e1d8cbe2fd92854cf8118244315ce2cdaf0d6a4..3072cdf15bfb7c6f68990c70c3e3a3e202fbedcf 100644 (file)
@@ -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;
 }