public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v1 0/4] lib: s390x: Refactor and rename vm.[ch]
@ 2022-03-30 14:43 Claudio Imbrenda
  2022-03-30 14:43 ` [kvm-unit-tests PATCH v1 1/4] s390x: remove spurious includes Claudio Imbrenda
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Claudio Imbrenda @ 2022-03-30 14:43 UTC (permalink / raw)
  To: kvm
  Cc: linux-s390, frankja, scgl, borntraeger, pmorel, pasic, nrb, thuth,
	david

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

* Remove some uneeded #includes for vm.h
* Rename vm.[ch] to hardware.[ch]
* Move host_is_zvm6 to the library (was in a testcase)
* Consolidate all detection functions into detect_host, which returns
  what host system the test is running on
* 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
  types for all known machines
* 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

Claudio Imbrenda (4):
  s390x: remove spurious includes
  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     | 134 +++++++++++++++++++++++++++++++++++++++
 lib/s390x/vm.h           |  15 -----
 lib/s390x/hardware.c     |  86 +++++++++++++++++++++++++
 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             |  28 +-------
 s390x/spec_ex-sie.c      |   1 -
 s390x/uv-host.c          |   4 +-
 13 files changed, 230 insertions(+), 149 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

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-03-31 15:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-30 14:43 [kvm-unit-tests PATCH v1 0/4] lib: s390x: Refactor and rename vm.[ch] Claudio Imbrenda
2022-03-30 14:43 ` [kvm-unit-tests PATCH v1 1/4] s390x: remove spurious includes Claudio Imbrenda
2022-03-31 15:04   ` Janosch Frank
2022-03-30 14:43 ` [kvm-unit-tests PATCH v1 2/4] lib: s390: rename and refactor vm.[ch] Claudio Imbrenda
2022-03-31 15:15   ` Janosch Frank
2022-03-30 14:43 ` [kvm-unit-tests PATCH v1 3/4] lib: s390x: functions for machine models Claudio Imbrenda
2022-03-31 15:21   ` Janosch Frank
2022-03-30 14:43 ` [kvm-unit-tests PATCH v1 4/4] lib: s390x: stidp wrapper and move get_machine_id Claudio Imbrenda
2022-03-31 15:24   ` Janosch Frank

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox