diff options
author | David Hildenbrand <david@redhat.com> | 2018-01-23 18:05:29 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2018-01-24 17:46:41 +0100 |
commit | ef8f4f49fcfa56f7399db9886fcbb89f9f92a340 (patch) | |
tree | 2605751083f044ef2d804be2589de6e947b42518 /arch/s390/kvm/vsie.c | |
parent | 2018224df3174763d4ece26c103c99438e0c42fc (diff) | |
download | linux-stable-ef8f4f49fcfa56f7399db9886fcbb89f9f92a340.tar.gz linux-stable-ef8f4f49fcfa56f7399db9886fcbb89f9f92a340.tar.bz2 linux-stable-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.c | 2 |
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. |