diff options
| author | Dongli Zhang <[email protected]> | 2025-04-03 06:29:49 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2025-05-18 21:25:24 +0000 |
| commit | 41cff026cff53a661ab5483aa20e549943dee115 (patch) | |
| tree | 8b4006aec3131693ea0f78ba0a4fec9f324f94a5 /rust/helpers/helpers.c | |
| parent | Linux 6.15-rc7 (diff) | |
| download | kernel-41cff026cff53a661ab5483aa20e549943dee115.tar.gz kernel-41cff026cff53a661ab5483aa20e549943dee115.zip | |
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 <[email protected]>
Signed-off-by: Dongli Zhang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
