mbox series

[kvm-unit-tests,v6,00/11] s390x: Add cross hypervisor and disk boot

Message ID 20190118114204.147868-1-frankja@linux.ibm.com (mailing list archive)
Headers show
Series s390x: Add cross hypervisor and disk boot | expand

Message

Janosch Frank Jan. 18, 2019, 11:41 a.m. UTC
With these patches kvm unit tests are now bootable under LPAR and
z/VM, as well as from KVM disks.

For this to work we added:
    * Initial PSW in lowcore
    * Switch to 64 bit and z/Arch
    * SCLP linemode console
    * Binary generation in Makefile

v6:
	* Added linemode sclp loop to print large strings
	* Fixed sclp read info locking
	* commit message fixups

v5:
	* Cleaned up linemode
	* Minor fixups and squash of sclp int and lock patches
	* Removed time patches, added phys alloc setup

v4:
	* Added sigp header file
	* Moved clearing to xgr instead of lm
	* Minor renames, comment additions

v3:
	* Rebased on David's SCLP fixes
	* Added binary generation make command
	* Split up cleanup and sclp common movement
	* Fixed whitespace problems
	* Added more comments
	* Added linemode buffer to get rid of line splits

v2:
	* Moved cleanup to the front and broadened patch
	* Split up SCLP patch into interrupt and linemode
	* Removed unneeded instructions
	* Improved comments and commit messages


Janosch Frank (11):
  s390x: Add Sigp header file
  s390x: Rename and cleanup sclp-ascii.c
  s390x: Make tests bootable from disk
  s390x: Switch to z/Arch and enable 64 bit addressing mode
  s390x: Add BSS clearing for non ELF boot
  s390x: Move common sclp data and functions to sclp.c
  s390x: Use interrupts in SCLP and add locking
  s390x: Add linemode console
  s390x: Add linemode buffer to fix newline on every print
  s390x: Add binary generation to makefile
  s390x: Initialize the physical allocator on mem init

 lib/s390x/asm/arch_def.h  |   1 +
 lib/s390x/asm/interrupt.h |   2 +
 lib/s390x/asm/sigp.h      |  60 +++++++++++
 lib/s390x/interrupt.c     |  12 ++-
 lib/s390x/io.c            |  13 +--
 lib/s390x/sclp-ascii.c    |  68 ------------
 lib/s390x/sclp-console.c  | 260 ++++++++++++++++++++++++++++++++++++++++++++++
 lib/s390x/sclp.c          |  83 ++++++++++++++-
 lib/s390x/sclp.h          |  62 ++++++++++-
 s390x/Makefile            |  13 ++-
 s390x/cstart64.S          |  41 +++++++-
 s390x/flat.lds            |  15 ++-
 12 files changed, 536 insertions(+), 94 deletions(-)
 create mode 100644 lib/s390x/asm/sigp.h
 delete mode 100644 lib/s390x/sclp-ascii.c
 create mode 100644 lib/s390x/sclp-console.c

Comments

Thomas Huth Jan. 21, 2019, 10:52 a.m. UTC | #1
On 2019-01-18 12:41, Janosch Frank wrote:
> With these patches kvm unit tests are now bootable under LPAR and
> z/VM, as well as from KVM disks.
> 
> For this to work we added:
>     * Initial PSW in lowcore
>     * Switch to 64 bit and z/Arch
>     * SCLP linemode console
>     * Binary generation in Makefile
> 
> v6:
> 	* Added linemode sclp loop to print large strings
> 	* Fixed sclp read info locking
> 	* commit message fixups
> 
> v5:
> 	* Cleaned up linemode
> 	* Minor fixups and squash of sclp int and lock patches
> 	* Removed time patches, added phys alloc setup
> 
> v4:
> 	* Added sigp header file
> 	* Moved clearing to xgr instead of lm
> 	* Minor renames, comment additions
> 
> v3:
> 	* Rebased on David's SCLP fixes
> 	* Added binary generation make command
> 	* Split up cleanup and sclp common movement
> 	* Fixed whitespace problems
> 	* Added more comments
> 	* Added linemode buffer to get rid of line splits
> 
> v2:
> 	* Moved cleanup to the front and broadened patch
> 	* Split up SCLP patch into interrupt and linemode
> 	* Removed unneeded instructions
> 	* Improved comments and commit messages
> 
> 
> Janosch Frank (11):
>   s390x: Add Sigp header file
>   s390x: Rename and cleanup sclp-ascii.c
>   s390x: Make tests bootable from disk
>   s390x: Switch to z/Arch and enable 64 bit addressing mode
>   s390x: Add BSS clearing for non ELF boot
>   s390x: Move common sclp data and functions to sclp.c
>   s390x: Use interrupts in SCLP and add locking
>   s390x: Add linemode console
>   s390x: Add linemode buffer to fix newline on every print
>   s390x: Add binary generation to makefile
>   s390x: Initialize the physical allocator on mem init

Ok, for the records: I've picked up patche 1 - 6 and 10 and 11 ... the
other three likely need some more rework as David mentioned in his review.

 Thomas