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-02-14 16:22:31 +01:00
2013-06-07 14:55:33 +02:00
2013-12-17 20:12:51 +00:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2014-02-14 16:22:32 +01:00
2014-03-11 13:27:27 +02:00
2014-02-26 17:20:00 +00:00
2014-02-14 16:22:31 +01:00
2013-04-08 18:13:10 +02:00
2013-07-29 21:06:27 +02:00
2013-04-08 18:13:10 +02:00
2013-11-05 17:47:30 +01:00
2014-02-27 10:01:40 +00:00
2013-12-17 20:12:51 +00:00
2013-04-08 18:13:10 +02:00
2014-03-13 15:33:04 +00:00
2014-03-13 13:19:46 +00:00
2014-03-05 03:06:46 +01:00
2013-04-08 18:13:10 +02:00
2014-02-10 10:23:35 +02:00
2013-06-27 15:38:35 -05:00
2014-03-11 13:25:48 +02:00
2013-04-08 18:13:10 +02:00
2013-04-08 18:13:10 +02:00
2014-03-12 20:13:02 +01:00
2013-05-01 20:55:21 +04:00