KVM: remove kvm_vcpu_compatible
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Jun 2016 12:50:04 +0000 (14:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2016 22:05:00 +0000 (00:05 +0200)
commit557abc40d121358883d2da8bc8bf976d6e8ec332
tree2ff0bd1c4012d2b07eddc0078b7fd8c0d537cc1d
parent6c7caebc26c5f0b618f0ef6b851e9f5f27c3812f
KVM: remove kvm_vcpu_compatible

The new created_vcpus field makes it possible to avoid the race between
irqchip and VCPU creation in a much nicer way; just check under kvm->lock
whether a VCPU has already been created.

We can then remove KVM_APIC_ARCHITECTURE too, because at this point the
symbol is only governing the default definition of kvm_vcpu_compatible.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Kconfig
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/Kconfig
virt/kvm/kvm_main.c