]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Skip AVIC and IRTE updates when loading blocking vCPU
authorSean Christopherson <seanjc@google.com>
Wed, 8 Dec 2021 01:52:24 +0000 (01:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:14:44 +0000 (12:14 -0500)
commit48ec363fbb4d655ef761346d7fd79b968b03e9b2
tree18d8f8eb25fbc7d0478fdffa6acb605349fe8db5
parented0a01836009f61de53bf0567d4aac300c96e6df
KVM: SVM: Skip AVIC and IRTE updates when loading blocking vCPU

Don't bother updating the Physical APIC table or IRTE when loading a vCPU
that is blocking, i.e. won't be marked IsRun{ning}=1, as the pCPU is
queried if and only if IsRunning is '1'.  If the vCPU was migrated, the
new pCPU will be picked up when avic_vcpu_load() is called by
svm_vcpu_unblocking().

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211208015236.1616697-15-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/avic.c