kvm-390: Let kernel exit SIE instruction on work
commitdb952a764fa4a58b374363878f9eb5aa5525b81f
authorCarsten Otte <cotte@de.ibm.com>
Wed, 20 Apr 2011 08:15:36 +0000 (20 10:15 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 May 2011 16:19:42 +0000 (2 09:19 -0700)
treec9a219345b080c8370df65ca5b092cb3d082f5d1
parent718731e7c909827e15dd3a43d169eeb4bf6c6f8d
kvm-390: Let kernel exit SIE instruction on work

commit 9ff4cfb3fcfd48b49fdd9be7381b3be340853aa4 upstream.

From: Christian Borntraeger <borntraeger@de.ibm.com>

This patch fixes the sie exit on interrupts. The low level
interrupt handler returns to the PSW address in pt_regs and not
to the PSW address in the lowcore.
Without this fix a cpu bound guest might never leave guest state
since the host interrupt handler would blindly return to the
SIE instruction, even on need_resched and friends.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/s390/kvm/sie64a.S