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 61aa679 commit 15c2f5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 虚拟化/virtio.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ VIRTQ_DESC_F_AVAIL == avail_wrap_counter
VIRTQ_DESC_F_USED != avail_wrap_counter

used buf
used_wrap_counter 初始化为1
used = !!(flags & VRING_PACKED_DESC_F_USED);
avail = !!(flags & VRING_PACKED_DESC_F_AVAIL);
avail == used && used == vq->vq_packed.used_wrap_counter;

0 comments on commit 15c2f5d

Please sign in to comment.