Skip to content

KVM: s390: refactor cpuflag handling

David Hildenbrand kvm linux-s390 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: s390: rename __set_cpuflag() to kvm_s390_set_cpuflags()arch/s390/kvm/interrupt.c arch/s390/kvm/kvm-s390.h+17 -172 replies
2/4KVM: s390: reuse kvm_s390_set_cpuflags()arch/s390/kvm/interrupt.c arch/s390/kvm/kvm-s390.c arch/s390/kvm/vsie.c+11 -122 replies
3/4KVM: s390: introduce and use kvm_s390_clear_cpuflags()arch/s390/kvm/interrupt.c arch/s390/kvm/kvm-s390.c arch/s390/kvm/kvm-s390.h +2 more+16 -122 replies
4/4KVM: s390: introduce and use kvm_s390_test_cpuflags()arch/s390/kvm/interrupt.c arch/s390/kvm/kvm-s390.c arch/s390/kvm/kvm-s390.h +2 more+15 -142 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchThomas HuthCornelia Huck
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/4] KVM: s390: refactor cpuflag handling

We already have __set_cpuflag(), but its limited to interrupt.c. Conny suggested __clear_cpuflag(). I went one step further and introduce
- kvm_s390_set_cpuflags()
- kvm_s390_clear_cpuflags()
- kvm_s390_test_cpuflags()

All applicable places are converted to use the new helpers. This beautifies the code at a couple of places quite a bit.

David Hildenbrand (4):
KVM: s390: rename __set_cpuflag() to kvm_s390_set_cpuflags()
KVM: s390: reuse kvm_s390_set_cpuflags()
KVM: s390: introduce and use kvm_s390_clear_cpuflags()
KVM: s390: introduce and use kvm_s390_test_cpuflags()

 arch/s390/kvm/interrupt.c | 43 +++++++++++++++++++------------------------
 arch/s390/kvm/kvm-s390.c  | 30 ++++++++++++++----------------
 arch/s390/kvm/kvm-s390.h  | 17 ++++++++++++++++-
 arch/s390/kvm/priv.c      |  6 +++---
 arch/s390/kvm/sigp.c      | 14 +++++---------
 arch/s390/kvm/vsie.c      |  4 ++--
 6 files changed, 59 insertions(+), 55 deletions(-)
Signature · 1 line
2.14.3