diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2014-03-07 15:37:40 +1100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-20 02:39:33 +0100 |
commit | a46622fd07edc6fd3c66f8ab79b4782a78b115f3 (patch) | |
tree | 1dd241ce1d0f1deaba63d297ce960fc95a3a4c40 /balloon.c | |
parent | df99d30d4e0dd22be5572235a5213de429e00747 (diff) | |
download | qemu-a46622fd07edc6fd3c66f8ab79b4782a78b115f3.zip qemu-a46622fd07edc6fd3c66f8ab79b4782a78b115f3.tar.gz qemu-a46622fd07edc6fd3c66f8ab79b4782a78b115f3.tar.bz2 |
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>
Diffstat (limited to 'balloon.c')
0 files changed, 0 insertions, 0 deletions