android_kernel_samsung_msm8976/arch/s390/kvm
Heiko Carstens dc5008b9bf s390/kvm: remove explicit -EFAULT return code checking on guest access
Let's change to the paradigm that every return code from guest memory
access functions that is not zero translates to -EFAULT and do not
explictly compare.
Explictly comparing the return value with -EFAULT has already shown to
be a bit fragile. In addition this is closer to the handling of
copy_to/from_user functions, which imho is in general a good idea.

Also shorten the return code handling in interrupt.c a bit.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2013-03-07 16:21:21 -03:00
..
diag.c KVM: s390: Wire up ioeventfd. 2013-03-05 19:12:17 -03:00
gaccess.h s390/kvm,gaccess: fix guest access return code handling 2013-03-07 16:21:19 -03:00
intercept.c s390/kvm: remove explicit -EFAULT return code checking on guest access 2013-03-07 16:21:21 -03:00
interrupt.c s390/kvm: remove explicit -EFAULT return code checking on guest access 2013-03-07 16:21:21 -03:00
Kconfig KVM: s390: Wire up ioeventfd. 2013-03-05 19:12:17 -03:00
kvm-s390.c KVM: s390: Wire up ioeventfd. 2013-03-05 19:12:17 -03:00
kvm-s390.h s390/kvm: Fix instruction decoding 2013-01-30 12:35:59 +02:00
Makefile KVM: s390: Wire up ioeventfd. 2013-03-05 19:12:17 -03:00
priv.c s390/kvm: remove explicit -EFAULT return code checking on guest access 2013-03-07 16:21:21 -03:00
sigp.c KVM: s390: kvm/sigp.c: fix memory leakage 2013-01-17 08:41:48 +02:00
trace-s390.h KVM: s390: Add support for channel I/O instructions. 2013-01-07 19:53:43 -02:00
trace.h KVM: s390: Add architectural trace events 2012-07-26 14:04:34 +03:00