Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment