KVM: s390: Fix sigp sense handling.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 26 Jun 2012 14:06:41 +0000 (16:06 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 3 Jul 2012 17:55:37 +0000 (14:55 -0300)
commit21b26c08535c992802402c7ba2d789ca9e1a5707
tree97f8dad7b76e055f57503846eb470d99f2ec3300
parentea1918dd3d1a8fcb7ce26816fdf31a50f7d04689
KVM: s390: Fix sigp sense handling.

If sigp sense doesn't have any status bits to report, it should set
cc 0 and leave the register as-is.

Since we know about the external call pending bit, we should report
it if it is set as well.

Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/s390/include/asm/sigp.h
arch/s390/kvm/sigp.c