Skip to content

lib: s390x: Refactor and rename vm.[ch]

Claudio Imbrenda kvm linux-s390 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* new patch to completely remove obsolete z/VM 6.x check instead of moving it into hardware.h
* do not add macros and functions for all known machine types, z15 is enough for now

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5s390x: remove spurious includess390x/mvpg-sie.c s390x/pv-diags.c s390x/spec_ex-sie.c+0 -30 replies
2/5s390x: skey: remove check for old z/VM versions390x/skey.c+4 -331 reply
3/5lib: s390: rename and refactor vm.[ch]lib/s390x/hardware.c lib/s390x/hardware.h lib/s390x/vm.c +4 more+114 -1121 reply
4/5lib: s390x: functions for machine modelslib/s390x/asm/arch_def.h lib/s390x/hardware.h s390x/uv-host.c+12 -51 reply
5/5lib: s390x: stidp wrapper and move get_machine_idlib/s390x/asm/arch_def.h lib/s390x/hardware.h+6 -30 replies

Reviews trailers per patch

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

PatchJanosch Frank
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v2 thread

Cover letter [kvm-unit-tests PATCH v2 0/5] lib: s390x: Refactor and rename vm.[ch]

Refactor and rename vm.[ch] to hardware.[ch]

* Remove some uneeded #includes for vm.h
* Rename vm.[ch] to hardware.[ch]
* Consolidate all detection functions into detect_host, which returns what host system the test is running on
* Completely remove obsolete z/VM 6.x check from skey.c
* Rename vm_is_* functions to host_is_*, which are then just wrappers around detect_host
* Move machine type macros from arch_def.h to hardware.h
* Add machine_is_* functions
* Refactor and rename get_machine_id to be a simple wrapper for stidp
* Add back get_machine_id using the stidp wrapper

v1->v2
* new patch to completely remove obsolete z/VM 6.x check instead of moving it into hardware.h
* do not add macros and functions for all known machine types, z15 is enough for now

Claudio Imbrenda (5):
s390x: remove spurious includes
s390x: skey: remove check for old z/VM version
lib: s390: rename and refactor vm.[ch]
lib: s390x: functions for machine models
lib: s390x: stidp wrapper and move get_machine_id

 s390x/Makefile           |  2 +-
 lib/s390x/asm/arch_def.h |  7 +--
 lib/s390x/hardware.h     | 55 ++++++++++++++++++++++++
 lib/s390x/vm.h           | 15 -------
 lib/s390x/hardware.c     | 69 ++++++++++++++++++++++++++++++
 lib/s390x/vm.c           | 92 ----------------------------------------
 s390x/cpumodel.c         |  4 +-
 s390x/mvpg-sie.c         |  1 -
 s390x/mvpg.c             |  4 +-
 s390x/pv-diags.c         |  1 -
 s390x/skey.c             | 37 ++--------------
 s390x/spec_ex-sie.c      |  1 -
 s390x/uv-host.c          |  4 +-
 13 files changed, 136 insertions(+), 156 deletions(-)
 create mode 100644 lib/s390x/hardware.h
 delete mode 100644 lib/s390x/vm.h
 create mode 100644 lib/s390x/hardware.c
 delete mode 100644 lib/s390x/vm.c
Signature · 1 line
2.34.1