[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200518151828.ad3c714a29209b359e326ec4@linux-foundation.org>
Date: Mon, 18 May 2020 15:18:28 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Joerg Roedel <jroedel@...e.de>
Cc: Joerg Roedel <joro@...tes.org>, x86@...nel.org, hpa@...or.com,
Dave Hansen <dave.hansen@...ux.intel.com>,
Andy Lutomirski <luto@...nel.org>,
Peter Zijlstra <peterz@...radead.org>, rjw@...ysocki.net,
Arnd Bergmann <arnd@...db.de>,
Steven Rostedt <rostedt@...dmis.org>,
Vlastimil Babka <vbabka@...e.cz>,
Michal Hocko <mhocko@...nel.org>,
Matthew Wilcox <willy@...radead.org>,
linux-kernel@...r.kernel.org, linux-acpi@...r.kernel.org,
linux-arch@...r.kernel.org, linux-mm@...ck.org,
Christoph Hellwig <hch@...radead.org>
Subject: Re: [PATCH v3 2/7] mm/vmalloc: Track which page-table levels were
modified
On Sat, 16 May 2020 14:56:41 +0200 Joerg Roedel <jroedel@...e.de> wrote:
> Hi Andrew,
>
> On Fri, May 15, 2020 at 01:01:42PM -0700, Andrew Morton wrote:
> > On Fri, 15 May 2020 16:00:18 +0200 Joerg Roedel <joro@...tes.org> wrote:
> > Lots of collisions here with Christoph's "decruft the vmalloc API" series
> > (http://lkml.kernel.org/r/20200414131348.444715-1-hch@lst.de).
> >
> > I attempted to fix things up.
> >
> > unmap_kernel_range_noflush() needed to be redone.
> >
> > map_kernel_range_noflush() might need the arch_sync_kernel_mappings() call?
>
> Yes, map_kernel_range_noflush() needs the arch_sync_kernel_mappings()
> call as well.
>
This?
--- a/mm/vmalloc.c~mm-vmalloc-track-which-page-table-levels-were-modified-fix
+++ a/mm/vmalloc.c
@@ -309,6 +309,9 @@ int map_kernel_range_noflush(unsigned lo
return err;
} while (pgd++, addr = next, addr != end);
+ if (mask & ARCH_PAGE_TABLE_SYNC_MASK)
+ arch_sync_kernel_mappings(start, end);
+
return 0;
}
It would be nice to get all this (ie, linux-next) retested before we
send it upstream, please.
Powered by blists - more mailing lists