Skip to content
Snippets Groups Projects
Commit 105f8d40 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Calculate available entries in coalesced mmio ring


Instead of checking whether we'll wrap around, calculate how many entries
are available, and check whether we have enough (just one) for the pending
mmio.

By itself, this doesn't change anything, but it paves the way for making
this function lockless.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 596ae895
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment