target/ppc: fix CPU hotplug when radix is enabled (TCG)
commit346ebfc6fbf1a0c07cbdfc52beef0f0b9b5180d4
authorCédric Le Goater <clg@kaod.org>
Fri, 14 Jul 2017 16:13:58 +0000 (14 18:13 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 17 Jul 2017 05:07:05 +0000 (17 15:07 +1000)
tree733b8f121f448a838ddae7a755088f8e52e04fec
parentdf8658de43db242ea82183d75cc957c2b0fa013a
target/ppc: fix CPU hotplug when radix is enabled (TCG)

But when a guest initializes radix mode, it issues a H_REGISTER_PROC_TBL
to update the LPCR of all CPUs. Hot-plugged CPUs inherit from the same
setting under KVM but not under TCG. So, Let's check for radix and update
the default LPCR to keep new CPUs in sync.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate_init.c