Commit 0b98c73
fix(virtio): fix virtqueue_enable_notify clearing all used_ring flags
The expression `!(uint16_t)VRING_USED_F_NO_NOTIFY` evaluates to 0
(logical NOT of 1), causing `flags &= 0` to clear every flag on the
used ring — not just the intended VRING_USED_F_NO_NOTIFY bit.
Replace with `~(uint16_t)VRING_USED_F_NO_NOTIFY` (bitwise NOT, 0xFFFE)
to only clear the target bit.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 626bbf9 commit 0b98c73
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
0 commit comments