Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Avi Kivity <[email protected]>
- Loading branch information