KVM: VMX: Skip Posted Interrupt updates if APICv is hard disabled
authorSean Christopherson <seanjc@google.com>
Sat, 9 Oct 2021 02:12:13 +0000 (19:12 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:54 +0000 (04:24 -0500)
commit057aa61bc992f2d27218b6558b0115d5623f1a7b
tree0dde27d3e15a2d8c52627606aa6dc82880248370
parentd92a5d1c6c757f659ffb9c2c2e65fcf3d571c14e
KVM: VMX: Skip Posted Interrupt updates if APICv is hard disabled

Explicitly skip posted interrupt updates if APICv is disabled in all of
KVM, or if the guest doesn't have an in-kernel APIC.  The PI descriptor
is kept up-to-date if APICv is inhibited, e.g. so that re-enabling APICv
doesn't require a bunch of updates, but neither the module param nor the
APIC type can be changed on-the-fly.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211009021236.4122790-21-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/posted_intr.c