xen: Remove invalidation of mapcache_grants on IOREQ_TYPE_INVALIDATE
cover xen: Remove invalidation of mapcache_grants on IOREQ_TYPE_INVALIDATE
From: "Edgar E. Iglesias" <[email protected]>
Olaf reported a slowdown in boot time on x86 HVM guests and Stefano provided a patch that removes the invalidation of the grants mapcache since not needed, more details here:
https://lore.kernel.org/all/Z5oIvUINVDfrrVla@zapote/T/
Cheers,
Edgar
Stefano Stabellini (1):
xen: No need to flush the mapcache for grants
hw/xen/xen-mapcache.c | 1 - 1 file changed, 1 deletion(-)
Signature · 1 line
2.43.0
PATCH 1/1 xen: No need to flush the mapcache for grants
From: Stefano Stabellini <[email protected]>
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.
--- hw/xen/xen-mapcache.c | 1 - 1 file changed, 1 deletion(-)
hw/xen/xen-mapcache.c +0 -1
@@ -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,
Signature · 1 line
2.43.0
Re: [PATCH v1 1/1] xen: No need to flush the mapcache for grants
Quoted 8 lines · Edgar E. Iglesias
From: Stefano Stabellini <[email protected]>
On
IOREQ_TYPE_INVALIDATEwe 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 onIOREQ_TYPE_INVALIDATErequests, we shouldn't do that. So remove the function call.
Quoted 6 lines
Fixes 9ecdd4bf08 (xen: mapcache: Add support for grant mappings)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]>
Thanks,
Signature · 1 line
Anthony PERARD