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

KVM: SVM: allocate AVIC data structures based on kvm_amd module parameter


Even if APICv is disabled at startup, the backing page and ir_list need
to be initialized in case they are needed later.  The only case in
which this can be skipped is for userspace irqchip, and that must be
done because avic_init_backing_page dereferences vcpu->arch.apic
(which is NULL for userspace irqchip).

Tested-by: default avatar <rmuncrief@humanavance.com>
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=206579


Reviewed-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent a93236fc
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