• Paolo Bonzini's avatar
    KVM: x86: cull apicv code when userspace irqchip is requested · f7589cca
    Paolo Bonzini authored
    
    
    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>
    f7589cca
x86.c 254 KB