]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: return -EFAULT if lowcore is not mapped during irq delivery
authorJens Freimann <jfrei@linux.vnet.ibm.com>
Thu, 17 Apr 2014 08:10:30 +0000 (10:10 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 25 Aug 2014 12:35:56 +0000 (14:35 +0200)
commit4618290e61a4f3e74e0ed4a0aff885f408816f95
tree5e314444b3142d0b96cbeb748c815a9c432ca20a
parent80905492071c80fe2c1c81b1ce1dc9d510382cba
KVM: s390: return -EFAULT if lowcore is not mapped during irq delivery

Currently we just kill the userspace process and exit the thread
immediatly without making sure that we don't hold any locks etc.

Improve this by making KVM_RUN return -EFAULT if the lowcore is not
mapped during interrupt delivery. To achieve this we need to pass
the return code of guest memory access routines used in interrupt
delivery all the way back to the KVM_RUN ioctl.

Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h