aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/kvm_ppc.h
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2013-07-08 06:09:53 -0400
committerAlexander Graf <agraf@suse.de>2013-07-10 07:14:16 -0400
commit4baa1d871c8c959084aa5367a9bf211f383941e5 (patch)
tree830c7b99cf615740fb9846e4c1a94bb3d2655671 /arch/powerpc/include/asm/kvm_ppc.h
parent5448050124d9d289bc2f5177318c68c0484ca413 (diff)
KVM: PPC: Book3S HV: Allow negative offsets to real-mode hcall handlers
The table of offsets to real-mode hcall handlers in book3s_hv_rmhandlers.S can contain negative values, if some of the handlers end up before the table in the vmlinux binary. Thus we need to use a sign-extending load to read the values in the table rather than a zero-extending load. Without this, the host crashes when the guest does one of the hcalls with negative offsets, due to jumping to a bogus address. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_ppc.h')
0 files changed, 0 insertions, 0 deletions