xen: mapcache: Unmap first entries in buckets
authorEdgar E. Iglesias <edgar.iglesias@amd.com>
Mon, 29 Apr 2024 17:12:42 +0000 (19:12 +0200)
committerEdgar E. Iglesias <edgar.iglesias@amd.com>
Sun, 9 Jun 2024 18:16:14 +0000 (20:16 +0200)
commit123acd816dccbd358570ec7ab79c5cb2c863780b
tree4a93e46cc9c546f455c4376b5af21db6240381dc
parentb771b026d8495feea8c3b7aee43ee2084102e3b4
xen: mapcache: Unmap first entries in buckets

When invalidating memory ranges, if we happen to hit the first
entry in a bucket we were never unmapping it. This was harmless
for foreign mappings but now that we're looking to reuse the
mapcache for transient grant mappings, we must unmap entries
when invalidated.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
hw/xen/xen-mapcache.c