]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
xen: No need to flush the mapcache for grants xen.for-upstream xen.next pull-xen-20250310
authorStefano Stabellini <stefano.stabellini@amd.com>
Thu, 6 Feb 2025 19:49:15 +0000 (20:49 +0100)
committerAnthony PERARD <anthony.perard@vates.tech>
Mon, 10 Mar 2025 12:28:03 +0000 (13:28 +0100)
On IOREQ_TYPE_INVALIDATE we need to invalidate the mapcache for regular
mappings. Since recently we started reusing the mapcache also to keep
track of grants mappings. However, there is no need to remove grant
mappings on IOREQ_TYPE_INVALIDATE requests, we shouldn't do that. So
remove the function call.

Fixes: 9ecdd4bf08 (xen: mapcache: Add support for grant mappings)
Cc: qemu-stable@nongnu.org
Reported-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
Message-Id: <20250206194915.3357743-2-edgar.iglesias@gmail.com>
Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
hw/xen/xen-mapcache.c

index 00bfbcc6fb047e505f41860b3de130d128fbf175..698b5c53ed58f597ebcf725dd1ea8b24904731d2 100644 (file)
@@ -700,7 +700,6 @@ void xen_invalidate_map_cache(void)
     bdrv_drain_all();
 
     xen_invalidate_map_cache_single(mapcache);
-    xen_invalidate_map_cache_single(mapcache_grants);
 }
 
 static uint8_t *xen_replace_cache_entry_unlocked(MapCache *mc,