KVM: SVM: Don't check for assigned device(s) when activating AVIC
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:48 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 23 Jun 2025 16:50:41 +0000 (09:50 -0700)
commitfe0213923dd991cbe6a1e84b9bf600aaf172b530
tree7035e418bbc626c50cf125e4fd38df8cc2d9925c
parentf5998661ff73b5e76974fd7913c1ccc3ff0a07a0
KVM: SVM: Don't check for assigned device(s) when activating AVIC

Don't short-circuit IRTE updating when (de)activating AVIC based on the
VM having assigned devices, as nothing prevents AVIC (de)activation from
racing with device (de)assignment.  And from a performance perspective,
bailing early when there is no assigned device doesn't add much, as
ir_list_lock will never be contended if there's no assigned device.

Link: https://lore.kernel.org/r/20250611224604.313496-47-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/avic.c