Skip to content

Commit

Permalink
auto_update
Browse files Browse the repository at this point in the history
  • Loading branch information
liaocj committed Jul 23, 2024
1 parent 1a38293 commit 1d678a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 虚拟化/virtio.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,11 @@ avail == used && used == vq->vq_packed.used_wrap_counter;
avail_wrap_counter == 1 -> a 1 u 0
avail_wrap_counter == 0 -> a 0 u 1

if (vq->used_wrap_counter) {
flags |= VRING_DESC_F_USED;
flags |= VRING_DESC_F_AVAIL;
} else {
flags &= ~VRING_DESC_F_USED;
flags &= ~VRING_DESC_F_AVAIL;
}

0 comments on commit 1d678a0

Please sign in to comment.