summaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/vsie.c
diff options
context:
space:
mode:
authorDavid Hildenbrand2018-01-23 18:05:29 +0100
committerChristian Borntraeger2018-01-24 17:46:41 +0100
commitef8f4f49fcfa56f7399db9886fcbb89f9f92a340 (patch)
tree2605751083f044ef2d804be2589de6e947b42518 /arch/s390/kvm/vsie.c
parentKVM: s390: rename __set_cpuflag() to kvm_s390_set_cpuflags() (diff)
downloadkernel-qcow2-linux-ef8f4f49fcfa56f7399db9886fcbb89f9f92a340.tar.gz
kernel-qcow2-linux-ef8f4f49fcfa56f7399db9886fcbb89f9f92a340.tar.xz
kernel-qcow2-linux-ef8f4f49fcfa56f7399db9886fcbb89f9f92a340.zip
KVM: s390: reuse kvm_s390_set_cpuflags()
Use it in all places where we set cpuflags. Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20180123170531.13687-3-david@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/vsie.c')
-rw-r--r--arch/s390/kvm/vsie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c
index 6090f4235cfc..87b341639063 100644
--- a/arch/s390/kvm/vsie.c
+++ b/arch/s390/kvm/vsie.c
@@ -913,7 +913,7 @@ static void register_shadow_scb(struct kvm_vcpu *vcpu,
* External calls have to lead to a kick of the vcpu and
* therefore the vsie -> Simulate Wait state.
*/
- atomic_or(CPUSTAT_WAIT, &vcpu->arch.sie_block->cpuflags);
+ kvm_s390_set_cpuflags(vcpu, CPUSTAT_WAIT);
/*
* We have to adjust the g3 epoch by the g2 epoch. The epoch will
* automatically be adjusted on tod clock changes via kvm_sync_clock.