aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-12-08 01:52:13 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2021-12-09 09:30:47 -0500
commit45af1bb99b72e36c16714390a8a3c9445e432938 (patch)
treec8dc18cda40d54f220da00fb48ab7444caaf85dc /virt
parentKVM: nVMX: Ensure vCPU honors event request if posting nested IRQ fails (diff)
downloadlinux-dev-45af1bb99b72e36c16714390a8a3c9445e432938.tar.xz
linux-dev-45af1bb99b72e36c16714390a8a3c9445e432938.zip
KVM: VMX: Clean up PI pre/post-block WARNs
Move the WARN sanity checks out of the PI descriptor update loop so as not to spam the kernel log if the condition is violated and the update takes multiple attempts due to another writer. This also eliminates a few extra uops from the retry path. Technically not checking every attempt could mean KVM will now fail to WARN in a scenario that would have failed before, but any such failure would be inherently racy as some other agent (CPU or device) would have to concurrent modify the PI descriptor. Add a helper to handle the actual write and more importantly to document why the write may need to be retried. Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20211208015236.1616697-4-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions