]> www.infradead.org Git - users/willy/xarray.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)
commit782f64558de7bef84b90ea812deb38f0e53a8c7a
tree18d8f8eb25fbc7d0478fdffa6acb605349fe8db5
parentaf52f5aa5c1b46809834b728a13a1af5aab451e9
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