Re: [PATCH v2 1/3] KVM: SVM: Make kvm_x86_ops.vcpu_precreate() hook fully AVIC specific
From: Naveen N Rao
Date: Fri Jul 03 2026 - 12:27:37 EST
On Tue, Jun 30, 2026 at 02:01:54PM -0700, Sean Christopherson wrote:
> In anticipation of deferring all per-VM AVIC initialization until a vCPU
> is first created, move SVM's kvm_x86_ops.vcpu_precreate() hook into avic.c
> as avic_vcpu_pre_create() and nullify the hook if AVIC is disabled (and
^^^^^^^^^^^^^^^^^^^^ avic_vcpu_precreate()
> WARN if the hook is somehow invoked without AVIC enabled).
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
> ---
> arch/x86/kvm/svm/avic.c | 13 +++++++++----
> arch/x86/kvm/svm/svm.c | 8 ++------
> arch/x86/kvm/svm/svm.h | 2 +-
> 3 files changed, 12 insertions(+), 11 deletions(-)
Reviewed-by: Naveen N Rao (AMD) <naveen@xxxxxxxxxx>
- Naveen