KVM: SVM: Track per-vCPU IRTEs using kvm_kernel_irqfd structure
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:07 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:52:54 +0000 (13:52 -0700)
commit05c5e23657e1d61c271c2f4a3a21d4d630b18a9b
treec7109352677a91b793e949ed8470808293fb34a3
parentcb210737675ef4c1ad88721e84558eeb2f199312
KVM: SVM: Track per-vCPU IRTEs using kvm_kernel_irqfd structure

Track the IRTEs that are posting to an SVM vCPU via the associated irqfd
structure and GSI routing instead of dynamically allocating a separate
data structure.  In addition to eliminating an atomic allocation, this
will allow hoisting much of the IRTE update logic to common x86.

Cc: Sairaj Kodilkar <sarunkod@amd.com>
Link: https://lore.kernel.org/r/20250611224604.313496-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.h
include/linux/kvm_irqfd.h