Re: [PATCH 1/4] migrate swapper_pg_dir

2018-05-29 Thread Greg KH
On Tue, May 29, 2018 at 12:37:41PM +0800, YaoJun wrote: > Currently, __enable_mmu() uses swapper_pg_dir directly. > To migrate swapper_pg_dir, we need to pass it as an > argument to __enable_mmu(). At the same time, > __pa_swapper_pg_dir is introduced to save physical > address of swapper_pg_dir. B

[PATCH 1/4] migrate swapper_pg_dir

2018-05-28 Thread YaoJun
Currently, __enable_mmu() uses swapper_pg_dir directly. To migrate swapper_pg_dir, we need to pass it as an argument to __enable_mmu(). At the same time, __pa_swapper_pg_dir is introduced to save physical address of swapper_pg_dir. By changing its value, we can migrate swapper_pg_dir. --- arch/ar