[PATCH v1 13/22] KVM: x86: remove all-vcpu request from kvm_ioapic_init()

David Hildenbrand
2017-03-14T13:35:17Z

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>
---
arch/x86/kvm/ioapic.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/arch/x86/kvm/ioapic.c b/arch/x86/kvm/ioapic.c
index 1a30320..0eb7847 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;
}

--
2.9.3