]> nv-tegra.nvidia Code Review - linux-3.10.git/commit
KVM: s390: fix signal handling
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Wed, 20 May 2009 13:34:56 +0000 (15:34 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:42 +0000 (08:32 +0300)
commitb1d16c495d9e6fe48e7df2e1d18cafc6555a116a
tree759aa4b488f4c0874b2561e932b04f018b514463
parent9ace903d171db7dc2fed96e44ac62b6f4c3ccb3d
KVM: s390: fix signal handling

If signal pending is true we exit without updating kvm_run, userspace
currently just does nothing and jumps to kvm_run again.
Since we did not set an exit_reason we might end up with a random one
(whatever was the last exit). Therefore it was possible to e.g. jump to
the psw position the last real interruption set.
Setting the INTR exit reason ensures that no old psw data is swapped
in on reentry.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/kvm-s390.c