]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SVM: Add a comment to explain why avic_vcpu_blocking() ignores IRQ blocking
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:23 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 23 Jun 2025 16:50:17 +0000 (09:50 -0700)
commit52d826c9e54cc6b4f0107720dd1f254944f6e727
tree34fa2685c8ca7a60d2891bf8638ce2456c4a226f
parent6737557442e5d21fef5c613c3079d26a4a4b0744
KVM: SVM: Add a comment to explain why avic_vcpu_blocking() ignores IRQ blocking

Add a comment to explain why KVM clears IsRunning when putting a vCPU,
even though leaving IsRunning=1 would be ok from a functional perspective.
Per Maxim's experiments, a misbehaving VM could spam the AVIC doorbell so
fast as to induce a 50%+ loss in performance.

Link: https://lore.kernel.org/all/8d7e0d0391df4efc7cb28557297eb2ec9904f1e5.camel@redhat.com
Cc: Maxim Levitsky <mlevitsk@redhat.com>
Acked-by: Naveen N Rao (AMD) <naveen@kernel.org>
Link: https://lore.kernel.org/r/20250611224604.313496-22-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/avic.c