diff options
| author | 2026-09-12 22:59:24 +0800 | |
|---|---|---|
| committer | 2026-11-02 09:07:00 -0500 | |
| commit | bfcde6b64769bc168037b8bd882de4def4b2b3f4 (patch) | |
| tree | cb2a177f27b93d7be687038f7a62030226c27bce /scripts/Makefile.thinlto | |
| parent | vhost/vringh: Fix IOTLB permission in putu16_iotlb() (diff) | |
vhost: fix dirty logging for in-order used ring entries
With VIRTIO_F_IN_ORDER, one used ring element can represent multiple
buffers, so vhost_add_used_n_in_order() can write consecutive elements to
nonadjacent slots. Dirty logging combines the initial slot with a length
based on the final position, which can miss written elements or log past
the end of the ring.
Replay nheads[] after the write barrier and log the written slots,
coalescing adjacent elements and splitting at gaps and wraps.
Fixes: 67a873df0c41 ("vhost: basic in order support")
Signed-off-by: Linfeng Sun <linfeng.sun.dev@gmail.com>
Message-ID: <20260912-fix-log_write-v1-1-72c23db01268@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
