Re: [PATCH -fixes] mm: Add a call to flush_cache_vmap() in vmap_pfn()

From: Palmer Dabbelt
Date: Thu Aug 10 2023 - 11:14:04 EST


On Wed, 09 Aug 2023 15:25:19 PDT (-0700), Christoph Hellwig wrote:
On Wed, Aug 09, 2023 at 06:46:33PM +0200, Alexandre Ghiti wrote:
flush_cache_vmap() must be called after new vmalloc mappings are
installed in the page table in order to allow architectures to make sure
the new mapping is visible.

Looks good. I somehow vaguely remember seing a patch like this floating
around before as part of a series, but if that didn't make it it
certainly should now.

Reviewed-by: Christoph Hellwig <hch@xxxxxx>

I think we're likely to end up with performance problems around here, but at least it's correct. If someone has performance

Dylan: this fixes your breakage as well, right?

I've queued it up for testing, but I doubt QEMU would find any issues here. My build box has been slow lately, but it should end up in fixes later today.