diff options
author | Victor Kamensky <victor.kamensky@linaro.org> | 2014-06-12 09:30:06 -0700 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2014-07-11 04:57:40 -0700 |
commit | 73891f72c414afff6da6f01e7af2ff5a44a8b823 (patch) | |
tree | 7666e1d9d4910ce1d007cb4ae17227e67e155456 /init/Makefile | |
parent | 27f194fd360a96cc64bebb2d69dd5abd67984b8a (diff) | |
download | talos-op-linux-73891f72c414afff6da6f01e7af2ff5a44a8b823.tar.gz talos-op-linux-73891f72c414afff6da6f01e7af2ff5a44a8b823.zip |
ARM: KVM: one_reg coproc set and get BE fixes
Fix code that handles KVM_SET_ONE_REG, KVM_GET_ONE_REG ioctls to work in BE
image. Before this fix get/set_one_reg functions worked correctly only in
LE case - reg_from_user was taking 'void *' kernel address that actually could
be target/source memory of either 4 bytes size or 8 bytes size, and code copied
from/to user memory that could hold either 4 bytes register, 8 byte register
or pair of 4 bytes registers.
In order to work in endian agnostic way reg_from_user to reg_to_user functions
should copy register value only to kernel variable with size that matches
register size. In few place where size mismatch existed fix issue on macro
caller side.
Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'init/Makefile')
0 files changed, 0 insertions, 0 deletions