diff options
author | David Hildenbrand <david@redhat.com> | 2018-01-23 18:05:28 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2018-01-24 17:46:41 +0100 |
commit | 2018224df3174763d4ece26c103c99438e0c42fc (patch) | |
tree | 24895e2e0e72a4b9b8910aa2c2fc788c057f3ac9 /arch/s390/kvm/kvm-s390.h | |
parent | KVM: s390: add vcpu stat counters for many instruction (diff) | |
download | linux-2018224df3174763d4ece26c103c99438e0c42fc.tar.xz linux-2018224df3174763d4ece26c103c99438e0c42fc.zip |
KVM: s390: rename __set_cpuflag() to kvm_s390_set_cpuflags()
No need to make this function special. Move it to a header right away.
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180123170531.13687-2-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 '')
-rw-r--r-- | arch/s390/kvm/kvm-s390.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.h b/arch/s390/kvm/kvm-s390.h index 8877116f0159..a9f2c8d1833d 100644 --- a/arch/s390/kvm/kvm-s390.h +++ b/arch/s390/kvm/kvm-s390.h @@ -47,6 +47,11 @@ do { \ d_args); \ } while (0) +static inline void kvm_s390_set_cpuflags(struct kvm_vcpu *vcpu, u32 flags) +{ + atomic_or(flags, &vcpu->arch.sie_block->cpuflags); +} + static inline int is_vcpu_stopped(struct kvm_vcpu *vcpu) { return atomic_read(&vcpu->arch.sie_block->cpuflags) & CPUSTAT_STOPPED; |