Skip to content
Snippets Groups Projects
Commit f7589cca authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 98d90582
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment