Skip to content

Commit 68adcc7

Browse files
sstabellinitperard
authored andcommitted
xen: No need to flush the mapcache for grants
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: 9ecdd4b (xen: mapcache: Add support for grant mappings) Cc: [email protected] Reported-by: Olaf Hering <[email protected]> Reviewed-by: Edgar E. Iglesias <[email protected]> Signed-off-by: Stefano Stabellini <[email protected]> Signed-off-by: Edgar E. Iglesias <[email protected]> Reviewed-by: Anthony PERARD <[email protected]> Message-Id: <[email protected]> Signed-off-by: Anthony PERARD <[email protected]>
1 parent 4173b3d commit 68adcc7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

hw/xen/xen-mapcache.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,6 @@ void xen_invalidate_map_cache(void)
700700
bdrv_drain_all();
701701

702702
xen_invalidate_map_cache_single(mapcache);
703-
xen_invalidate_map_cache_single(mapcache_grants);
704703
}
705704

706705
static uint8_t *xen_replace_cache_entry_unlocked(MapCache *mc,

0 commit comments

Comments
 (0)