On Mon, May 24, 2021, Jim Mattson wrote: > On Mon, May 24, 2021 at 5:11 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote: > > > > Can we instead word it along the lines of: > > > > Defer the KVM_INTERNAL_EXIT until KVM actually attempts to consume the posted > > interrupt descriptor on behalf of the vCPU. Note, KVM may process posted > > interrupts when it architecturally should not. Bugs aside, userspace can at > > least rely on KVM to not process posted interrupts if there is no (posted?) > > interrupt activity whatsoever. > > How about: > > Defer the KVM_INTERNAL_EXIT until KVM tries to access the contents of > the VMCS12 posted interrupt descriptor. (Note that KVM may do this > when it should not, per the architectural specification.) Works for me!