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)
commit6890c75c14b3d5dc8a1a355428457388cd830b82
tree705cfe534384b8073db58d204d7c9b3332968291
parentefccff32defce4b7e30c2cebb3b14df38e74ed85
KVM: VMX: clear vmx_x86_ops.sync_pir_to_irr if APICv is disabled

[ Upstream commit e90e51d5f01d2baae5dcce280866bbb96816e978 ]

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