target/ppc: Enable RADIX mmu mode for pseries TCG guest
commit545d6e2b5c1e5fd321792bce0ad136c3a192c37b
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Tue, 2 May 2017 06:37:18 +0000 (2 16:37 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 10 May 2017 23:45:15 +0000 (11 09:45 +1000)
treedffa48fe22d4dc8699ca84659fa9c223c3ca1614
parentd5fee0bbe68d5e61e2d2beb5ff6de0b9c1cfd182
target/ppc: Enable RADIX mmu mode for pseries TCG guest

Now that we have added all the infrastructure we can enable a pseries TCG
guest to use radix.

In order to do this we have to add the appropriate bits to the
ibm,arch-vec-5-platform-support vector to represent that we support both
hash and radix mmu models.

A radix guest can now be booted in pseries tcg mode by specifying:
-cpu POWER9

Note that we assume hash, that is we allocate a hpt, until a guest tells
us otherwise via a H_REGISTER_PROCESS_TABLE call with radix specified - in
which case we free the hpt. If we were right and the guest is hash then
there's nothing for us to do.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c