]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: allocate AVIC data structures based on kvm_amd module parameter
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 25 Feb 2020 07:54:26 +0000 (08:54 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Feb 2020 09:33:17 +0000 (10:33 +0100)
commit5c3a09d5b93f4be85bd94aaf36278cf79999d36d
treebafefb073f8bbe836e51354a19bbd5ecfa662cd2
parentcf8fe91e02880fbb6862b1a80aca9d6cfef97c93
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: rmuncrief@humanavance.com
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=206579
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c