]> asedeno.scripts.mit.edu Git - linux.git/commit
kvm: svm/avic: Do not send AVIC doorbell to self
authorSuthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>
Fri, 3 May 2019 13:38:53 +0000 (06:38 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Jun 2019 17:27:31 +0000 (19:27 +0200)
commit0532dd52dfec0cf774188d3e692d50c197bc4210
treef4221640b26b6a23b6d531ea92e692e6d4c364d6
parentb6c4bc659c6f3b7f2b6c3a330ae36f1cfd69d73e
kvm: svm/avic: Do not send AVIC doorbell to self

AVIC doorbell is used to notify a running vCPU that interrupts
has been injected into the vCPU AVIC backing page. Current logic
checks only if a VCPU is running before sending a doorbell.
However, the doorbell is not necessary if the destination
CPU is itself.

Add logic to check currently running CPU before sending doorbell.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c