Re: [Qemu-devel] [PATCH for-2.13 05/10] spapr: Move PAPR mode register initialization to spapr code

2018-04-20 Thread Greg Kurz
On Tue, 17 Apr 2018 17:17:17 +1000 David Gibson wrote: > cpu_ppc_set_papr() has code to make sure the LPCR and AMOR (hypervisor > privileged registers) have values which will make TCG behave correctly for > paravirtualized guests, where we don't emulate the cpu when in hypervisor > mode. > > It

[Qemu-devel] [PATCH for-2.13 05/10] spapr: Move PAPR mode register initialization to spapr code

2018-04-17 Thread David Gibson
cpu_ppc_set_papr() has code to make sure the LPCR and AMOR (hypervisor privileged registers) have values which will make TCG behave correctly for paravirtualized guests, where we don't emulate the cpu when in hypervisor mode. It does this by mangling the default values of the SPRs, so that they wi