summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorDongli Zhang <dongli.zhang@oracle.com>2025-04-03 09:29:49 +0300
committerMichael S. Tsirkin <mst@redhat.com>2025-05-19 00:25:24 +0300
commit41cff026cff53a661ab5483aa20e549943dee115 (patch)
tree8b4006aec3131693ea0f78ba0a4fec9f324f94a5 /scripts/generate_rust_analyzer.py
parenta5806cd506af5a7c19bcd596e4708b5c464bfd21 (diff)
downloadlinux-41cff026cff53a661ab5483aa20e549943dee115.tar.xz
vhost: modify vhost_log_write() for broader users
Currently, the only user of vhost_log_write() is vhost-net. The 'len' argument prevents logging of pages that are not tainted by the RX path. Adjustments are needed since more drivers (i.e. vhost-scsi) begin using vhost_log_write(). So far vhost-net RX path may only partially use pages shared via the last vring descriptor. Unlike vhost-net, vhost-scsi always logs all pages shared via vring descriptors. To accommodate this, use (len == U64_MAX) to indicate whether the driver would log all pages of vring descriptors, or only pages that are tainted by the driver. In addition, removes BUG(). Suggested-by: Joao Martins <joao.m.martins@oracle.com> Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com> Message-Id: <20250403063028.16045-5-dongli.zhang@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions