diff options
| author | 2026-10-31 13:45:35 -0400 | |
|---|---|---|
| committer | 2026-11-02 09:07:00 -0500 | |
| commit | 73d135601d3b533985a65748c0278ba3cfe48290 (patch) | |
| tree | db589c0e1a6035025bf5c84871f1ce0661ad5131 /scripts/Makefile.thinlto | |
| parent | vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path (diff) | |
vhost-vdpa: unpin mappings by range
vhost_vdpa_pa_unmap() unpins each mapping a page at a time, dirtying
each page first if the mapping is writable. Each mapping is physically
contiguous, so use unpin_user_page_range_dirty_lock() instead, which
marks every folio dirty once and drops its pins in one go. Do the same
for the pages left pinned in the vhost_vdpa_pa_map() error path.
This removes the last use of set_page_dirty_lock() in vhost.
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Message-ID: <20261031-vhost-vdpa-unpin-v1-2-94ffc9683256@columbia.edu>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
