target/ppc: Fix VRMA page size for ISA v3.0
authorNicholas Piggin <npiggin@gmail.com>
Sun, 30 Jul 2023 11:18:42 +0000 (21:18 +1000)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 4 Aug 2023 15:22:03 +0000 (12:22 -0300)
commit0e2a3ec36885f6d79a96230f582d4455878c6373
treea9f614e6cb7d4ed5513af1caa4bbb7e1333cedec
parent9915dac4847f3cc5ffd36e4c374a4eec83fe09b5
target/ppc: Fix VRMA page size for ISA v3.0

Until v2.07s, the VRMA page size (L||LP) was encoded in LPCR[VRMASD].
In v3.0 that moved to the partition table PS field.

The powernv machine can now run KVM HPT guests on POWER9/10 CPUs with
this fix and the patch to add ASDR.

Fixes: 3367c62f522b ("target/ppc: Support for POWER9 native hash")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-ID: <20230730111842.39292-1-npiggin@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/mmu-hash64.c
target/ppc/mmu-hash64.h