On Thu, Mar 31, 2016 at 03:55:42PM +1100, David Gibson wrote: > On Wed, Mar 30, 2016 at 05:38:34PM +0200, Cédric Le Goater wrote: > > This address is changed by the linux kernel using the H_SET_MODE hcall > > and needs to be restored when migrating a spapr VM running in > > TCG. This can be done using the AIL bits from the LPCR register. > > > > The patch introduces a helper routine cpu_ppc_get_excp_prefix() which > > returns the effective address offset of the interrupt handler > > depending on the LPCR_AIL bits. The same helper can be used in the > > H_SET_MODE hcall, which lets us remove the H_SET_MODE_ADDR_TRANS_* > > defines. > > > > Signed-off-by: Cédric Le Goater <c...@fr.ibm.com> > > I've applied this (with Greg's minor amendments) to ppc-for-2.6), > since it certainly improves behaviour, although I have a couple of > queries:
And.. I've take it out again now. In addition to the fact that I'd like some rework suggested elsewhere, it breaks compile for 32-bit ppc targets. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature