]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: cull apicv code when userspace irqchip is requested
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 30 Jan 2019 16:18:59 +0000 (17:18 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:21 +0000 (22:48 +0100)
commit087cc2482da568b2a4e000d561d875ac04e51a8d
tree972efe21769c8d3b7462fafd3eb353a031bf5045
parent5d466ba72d1535716fba5207972367b7212d6797
KVM: x86: cull apicv code when userspace irqchip is requested

Currently apicv_active can be true even if in-kernel LAPIC
emulation is disabled.  Avoid this by properly initializing
it in kvm_arch_vcpu_init, and then do not do anything to
deactivate APICv when it is actually not used

(Currently APICv is only deactivated by SynIC code that in turn
is only reachable when in-kernel LAPIC is in use.  However, it is
cleaner if kvm_vcpu_deactivate_apicv avoids relying on this.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c