summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2013-11-26 12:27:16 +0100
committerCornelia Huck <cornelia.huck@de.ibm.com>2013-12-11 19:04:13 +0100
commit949c007acd8b6887cf5f3ac86512a7b12fa245dc (patch)
tree0b60afcdbe1925372d7b6215a025dc19910916c3
parentd9101fca3d572b8675b7fe3f4ef9f6f99bbf4364 (diff)
downloadblackbird-op-linux-949c007acd8b6887cf5f3ac86512a7b12fa245dc.tar.gz
blackbird-op-linux-949c007acd8b6887cf5f3ac86512a7b12fa245dc.zip
KVM: s390: Use helper function to set CC in SIGP handler
We've got a helper function for setting the condition code now, so let's use it in the SIGP handler, too. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
-rw-r--r--arch/s390/kvm/sigp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/kvm/sigp.c b/arch/s390/kvm/sigp.c
index c3700585b4bb..bc0d85a24b1b 100644
--- a/arch/s390/kvm/sigp.c
+++ b/arch/s390/kvm/sigp.c
@@ -435,7 +435,6 @@ int kvm_s390_handle_sigp(struct kvm_vcpu *vcpu)
if (rc < 0)
return rc;
- vcpu->arch.sie_block->gpsw.mask &= ~(3ul << 44);
- vcpu->arch.sie_block->gpsw.mask |= (rc & 3ul) << 44;
+ kvm_s390_set_psw_cc(vcpu, rc);
return 0;
}
OpenPOWER on IntegriCloud