Alexey Kardashevskiy a46622fd07 spapr_hcall: Fix little-endian resource handling in H_SET_MODE
This changes resource code definitions to ones used in the host kernel.

This fixes H_SET_MODE_RESOURCE_LE (switch between big endian and
little endian) to sync registers from KVM before changing LPCR value.

This adds a set_spr() helper to update an SPR in a CPU's context to avoid
possible races and makes use of it to change LPCR.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-03-20 02:39:33 +01:00
..
2014-03-17 16:31:46 +00:00
2014-03-13 15:33:04 +00:00
2014-02-14 16:22:32 +01:00
2014-02-14 16:22:31 +01:00
2014-03-18 19:36:13 +00:00
2014-03-15 13:54:18 +04:00
2014-02-14 16:22:31 +01:00
2014-03-12 20:13:02 +01:00
2014-03-05 03:06:46 +01:00
2014-03-15 13:54:18 +04:00
2014-03-17 22:01:19 +01:00