History log of /kvm-unit-tests/lib/s390x/sclp-console.c (Results 1 – 14 of 14)
Revision Date Author Comments
# d1e2a8e2 10-Nov-2023 Thomas Huth <thuth@redhat.com>

Merge branch 'pr-2023-11-09' into 'master'

s390x: multiline unittests.cfg, sclp enhancements, topology fixes and improvements, sie without MSO/MSL, 2G guest alignment, bug fixes

See merge request k

Merge branch 'pr-2023-11-09' into 'master'

s390x: multiline unittests.cfg, sclp enhancements, topology fixes and improvements, sie without MSO/MSL, 2G guest alignment, bug fixes

See merge request kvm-unit-tests/kvm-unit-tests!48

show more ...


# 78be7ef2 31-Oct-2023 Janosch Frank <frankja@linux.ibm.com>

lib: s390x: sclp: Add line mode input handling

Time to add line-mode input so we can use input handling under LPAR if
there's no access to a ASCII console.

Line-mode IO is pretty wild and the docum

lib: s390x: sclp: Add line mode input handling

Time to add line-mode input so we can use input handling under LPAR if
there's no access to a ASCII console.

Line-mode IO is pretty wild and the documentation could be improved a
lot. Hence I've copied the input parsing functions from Linux.

For some reason output is a type 2 event but input is a type 1
event. This also means that the input and output structures are
different from each other.

The input can consist of multiple structures which don't contain text
data before the input text data is reached. Hence we need a bunch of
search functions to retrieve a pointer to the text data.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20231031095519.73311-4-frankja@linux.ibm.com
Signed-off-by: Nico Boehr <nrb@linux.ibm.com>

show more ...


# 97d4fb30 31-Oct-2023 Janosch Frank <frankja@linux.ibm.com>

lib: s390x: sclp: Add compat handling for HMC ASCII consoles

Without the \r the output of the HMC ASCII console takes a lot of
additional effort to read in comparison to the line mode console.

Addi

lib: s390x: sclp: Add compat handling for HMC ASCII consoles

Without the \r the output of the HMC ASCII console takes a lot of
additional effort to read in comparison to the line mode console.

Additionally we add a console clear for the HMC ASCII console so that
old messages from a previously running operating system are not
polluting the console.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Link: https://lore.kernel.org/r/20231031095519.73311-3-frankja@linux.ibm.com
Signed-off-by: Nico Boehr <nrb@linux.ibm.com>

show more ...


# c315f52b 12-May-2022 Paolo Bonzini <bonzini@gnu.org>

Merge branch 's390x-next-2022-05' into 'master'

storage keys, attestation, migration tests

See merge request kvm-unit-tests/kvm-unit-tests!30


# 42ae7d5b 22-Apr-2022 Nico Boehr <nrb@linux.ibm.com>

lib: s390x: add support for SCLP console read

Add a basic implementation for reading from the SCLP ASCII console. The goal of
this is to support migration tests on s390x. To know when the migration

lib: s390x: add support for SCLP console read

Add a basic implementation for reading from the SCLP ASCII console. The goal of
this is to support migration tests on s390x. To know when the migration has been
finished, we need to listen for a newline on our console.

Hence, this implementation is focused on the SCLP ASCII console of QEMU and
currently won't work under e.g. LPAR.

Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

show more ...


# c9a34447 20-Jan-2021 Paolo Bonzini <pbonzini@redhat.com>

Merge tag 's390x-2021-20-01' of https://gitlab.com/frankja/kvm-unit-tests into HEAD

* Moved to SPDX license identifiers and cleaning up license
* Added test_bit(_inv)() & SCLP feature bit checking
*

Merge tag 's390x-2021-20-01' of https://gitlab.com/frankja/kvm-unit-tests into HEAD

* Moved to SPDX license identifiers and cleaning up license
* Added test_bit(_inv)() & SCLP feature bit checking
* Added first SIE lib and test for nesting tests
* Added diag318 emulation test
* Small UV fix

show more ...


# 6c9f99df 07-Dec-2020 Janosch Frank <frankja@linux.ibm.com>

s390x: lib: Move to GPL 2 and SPDX license identifiers

In the past we had some issues when developers wanted to use code
snippets or constants from the kernel in a test or in the library. To
remedy

s390x: lib: Move to GPL 2 and SPDX license identifiers

In the past we had some issues when developers wanted to use code
snippets or constants from the kernel in a test or in the library. To
remedy that the s390x maintainers decided to move all files to GPL 2
(if possible).

At the same time let's move to SPDX identifiers as they are much nicer
to read.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Pierre Morel <pmorel@linux.ibm.com>

show more ...


# 26c759eb 25-Sep-2019 Paolo Bonzini <pbonzini@redhat.com>

Merge tag 's390x-2019-09-25' of https://gitlab.com/huth/kvm-unit-tests into HEAD

New s390x kvm-unit-tests and some fixes from Janosch Frank


# 04a401dd 20-Sep-2019 Janosch Frank <frankja@linux.ibm.com>

s390x: Add linemode buffer to fix newline on every print

Linemode seems to add a newline for each sent message which makes
reading rather hard. Hence we add a small buffer and only print if
it's ful

s390x: Add linemode buffer to fix newline on every print

Linemode seems to add a newline for each sent message which makes
reading rather hard. Hence we add a small buffer and only print if
it's full or a newline is encountered.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190920112345.2359-1-frankja@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>

show more ...


# 67bee4ee 20-Sep-2019 Janosch Frank <frankja@linux.ibm.com>

s390x: Add linemode console

z/VM isn't fond of vt220, so we need line mode when running under
z/VM.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.co

s390x: Add linemode console

z/VM isn't fond of vt220, so we need line mode when running under
z/VM.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190920080356.1948-3-frankja@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>

show more ...


# 8ead801e 20-Sep-2019 Janosch Frank <frankja@linux.ibm.com>

s390x: Use interrupts in SCLP and add locking

We need to properly implement interrupt handling for SCLP, because on
z/VM and LPAR SCLP calls are not synchronous!

Also with smp CPUs have to compete

s390x: Use interrupts in SCLP and add locking

We need to properly implement interrupt handling for SCLP, because on
z/VM and LPAR SCLP calls are not synchronous!

Also with smp CPUs have to compete for sclp. Let's add some locking,
so they execute sclp calls in an orderly fashion and don't compete for
the data buffer.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190920080356.1948-2-frankja@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>

show more ...


# 1c3fe66b 25-Jan-2019 Paolo Bonzini <pbonzini@redhat.com>

Merge tag 's390x-2019-01-21' of https://gitlab.com/huth/kvm-unit-tests into HEAD

Making the binaries bootable under LPAR and z/VM
(to be able to compare the behaviour there)


# 35bfd1c4 18-Jan-2019 Janosch Frank <frankja@linux.ibm.com>

s390x: Move common sclp data and functions to sclp.c

sclp.c will provide the common functionality in the future and the
base memory detection as it is quite small.

Signed-off-by: Janosch Frank <fra

s390x: Move common sclp data and functions to sclp.c

sclp.c will provide the common functionality in the future and the
base memory detection as it is quite small.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>

show more ...


# 7ed7df23 18-Jan-2019 Janosch Frank <frankja@linux.ibm.com>

s390x: Rename and cleanup sclp-ascii.c

Let's rename to the more fitting name sclp-console.c and fix some
indentation problems.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Davi

s390x: Rename and cleanup sclp-ascii.c

Let's rename to the more fitting name sclp-console.c and fix some
indentation problems.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>

show more ...