Re: [PATCH 2/3] powerpc: Define swapper_pg_dir[] in C

2021-06-23 Thread Daniel Axtens
Michael Ellerman writes: > Daniel Axtens writes: >> Hi Christophe, >> >> This breaks booting a radix KVM guest with 4k pages for me: >> >> make pseries_le_defconfig >> scripts/config -d CONFIG_PPC_64K_PAGES >> scripts/config -e CONFIG_PPC_4K_PAGES >> make vmlinux >> sudo qemu-system-ppc64 -enabl

Re: [PATCH 2/3] powerpc: Define swapper_pg_dir[] in C

2021-06-23 Thread Michael Ellerman
Daniel Axtens writes: > Hi Christophe, > > This breaks booting a radix KVM guest with 4k pages for me: > > make pseries_le_defconfig > scripts/config -d CONFIG_PPC_64K_PAGES > scripts/config -e CONFIG_PPC_4K_PAGES > make vmlinux > sudo qemu-system-ppc64 -enable-kvm -M pseries -m 1G -nographic -vga

Re: [PATCH 2/3] powerpc: Define swapper_pg_dir[] in C

2021-06-23 Thread Daniel Axtens
Hi Christophe, This breaks booting a radix KVM guest with 4k pages for me: make pseries_le_defconfig scripts/config -d CONFIG_PPC_64K_PAGES scripts/config -e CONFIG_PPC_4K_PAGES make vmlinux sudo qemu-system-ppc64 -enable-kvm -M pseries -m 1G -nographic -vga none -smp 4 -cpu host -kernel vmlinux

[PATCH 2/3] powerpc: Define swapper_pg_dir[] in C

2021-06-07 Thread Christophe Leroy
Don't duplicate swapper_pg_dir[] in each platform's head.S Define it in mm/pgtable.c Define MAX_PTRS_PER_PGD because on book3s/64 PTRS_PER_PGD is not a constant. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/pgtable.h | 3 +++ arch/powerpc/include/asm/pgtable.h