On Wed, Nov 11, 2020 at 03:53:17PM +0100, David Hildenbrand wrote: > We want to stop abusing memory hotplug infrastructure in memtrace code > to perform allocations and remove the linear mapping. Instead we will use > alloc_contig_pages() and remove the linear mapping manually. > > Let's factor out creating/removing the linear mapping into > arch_create_linear_mapping() / arch_remove_linear_mapping() - so in the > future, we might be able to have whole arch_add_memory() / > arch_remove_memory() be implemented in common code. > > Cc: Michael Ellerman <m...@ellerman.id.au> > Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> > Cc: Paul Mackerras <pau...@samba.org> > Cc: Rashmica Gupta <rashmic...@gmail.com> > Cc: Andrew Morton <a...@linux-foundation.org> > Cc: Mike Rapoport <r...@kernel.org> > Cc: Michal Hocko <mho...@suse.com> > Cc: Oscar Salvador <osalva...@suse.de> > Cc: Wei Yang <richard.weiy...@linux.alibaba.com> > Signed-off-by: David Hildenbrand <da...@redhat.com>
Reviewed-by: Oscar Salvador <osalva...@suse.de> -- Oscar Salvador SUSE L3