]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: clear vmx_x86_ops.sync_pir_to_irr if APICv is disabled
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Nov 2021 12:36:41 +0000 (07:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:32:34 +0000 (09:32 +0100)
commit0243fb1f5c2e2ea9a0f8ea9e911bf1ea591736b2
tree705cfe534384b8073db58d204d7c9b3332968291
parent15473b0d20939e62d206bad1a318161cc6dbea5e
KVM: VMX: clear vmx_x86_ops.sync_pir_to_irr if APICv is disabled

[ Upstream commit 180eda6bab7abb2b5980033d0aaafe0deb83f0d5 ]

There is nothing to synchronize if APICv is disabled, since neither
other vCPUs nor assigned devices can set PIR.ON.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/vmx/vmx.c