#
610c1528 |
| 14-Jun-2022 |
Thomas Huth <thuth@redhat.com> |
Merge branch 's390x-next-2022-06' into 'master'
s390x: some migration tests and gcc12 support
See merge request kvm-unit-tests/kvm-unit-tests!33
|
#
cd719531 |
| 08-Jun-2022 |
Janis Schoetterl-Glausch <scgl@linux.ibm.com> |
s390x: Introduce symbol for lowcore and use it
This gets rid of bunch of pointers pointing to the lowcore used in various places and replaces it with a unified way of addressing the lowcore. The new
s390x: Introduce symbol for lowcore and use it
This gets rid of bunch of pointers pointing to the lowcore used in various places and replaces it with a unified way of addressing the lowcore. The new symbol is not a pointer. While this will lead to worse code generation (cannot use register 0 for addressing), that should not matter too much for kvm unit tests. Since the lowcore is located per definition at address 0, the symbol is defined via the linker scripts. The symbol also will be used to create pointers that the compiler cannot warn about as being outside the bounds of an array.
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20220608122953.1051952-2-scgl@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@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
|
#
4b2a0b42 |
| 21-Apr-2022 |
Janosch Frank <frankja@linux.ibm.com> |
s390x: css: Cleanup includes
Most includes were related to allocation but that's done in the io allocation library so having them in the test doesn't make sense.
Signed-off-by: Janosch Frank <frank
s390x: css: Cleanup includes
Most includes were related to allocation but that's done in the io allocation library so having them in the test doesn't make sense.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
show more ...
|
#
7a47d5d1 |
| 21-Apr-2022 |
Janosch Frank <frankja@linux.ibm.com> |
s390x: css: Skip if we're not run by qemu
There's no guarantee that we even find a device at the address we're testing for if we're not running under QEMU.
Signed-off-by: Janosch Frank <frankja@lin
s390x: css: Skip if we're not run by qemu
There's no guarantee that we even find a device at the address we're testing for if we're not running under QEMU.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Nico Boehr <nrb@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
show more ...
|
#
1a4529ce |
| 01-Apr-2022 |
Thomas Huth <thuth@redhat.com> |
Merge branch 's390x-next-2022-04' from imbrenda into 'master'
s390x: smp, vm lib updates; I/O and smp tests
See merge request kvm-unit-tests/kvm-unit-tests!29
|
#
06f9088a |
| 24-Feb-2022 |
Nico Boehr <nrb@linux.ibm.com> |
s390x: Add tests for TSCH
TSCH has two special cases which need to be tested:
- unaligned address. We test for misalignment by 1 and 2 bytes. - channel not operational - bit 47 in SID not set
Sign
s390x: Add tests for TSCH
TSCH has two special cases which need to be tested:
- unaligned address. We test for misalignment by 1 and 2 bytes. - channel not operational - bit 47 in SID not set
Signed-off-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
show more ...
|
#
c1034afe |
| 24-Feb-2022 |
Nico Boehr <nrb@linux.ibm.com> |
s390x: Add more tests for STSCH
css_lib extensively uses STSCH, but two more cases deserve their own tests:
- unaligned address for SCHIB. We check for misalignment by 1 and 2 bytes. - channel no
s390x: Add more tests for STSCH
css_lib extensively uses STSCH, but two more cases deserve their own tests:
- unaligned address for SCHIB. We check for misalignment by 1 and 2 bytes. - channel not operational - bit 47 in SID not set - bit 5 of PMCW flags. As per the principles of operation, bit 5 of the PMCW flags shall be ignored by msch and always stored as zero by stsch.
Older QEMU versions require this bit to always be zero on msch, which is why this test may fail. A fix is available in QEMU master commit 2df59b73e086 ("s390x/css: fix PMCW invalid mask").
Here's the QEMU PMCW invalid mask fix: https://lists.nongnu.org/archive/html/qemu-s390x/2021-12/msg00100.html
Signed-off-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Acked-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
show more ...
|
#
7502d215 |
| 24-Feb-2022 |
Nico Boehr <nrb@linux.ibm.com> |
s390x: Add more tests for SSCH
We already have some coverage of SSCH due to its use in start_ccw1_chain() in css_lib, but two more cases deserve our attention:
- unaligned operand address. We check
s390x: Add more tests for SSCH
We already have some coverage of SSCH due to its use in start_ccw1_chain() in css_lib, but two more cases deserve our attention:
- unaligned operand address. We check for misalignment by 1 and 2 bytes. - an invalid ORB structure.
Signed-off-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
show more ...
|
#
2b30c34d |
| 24-Feb-2022 |
Nico Boehr <nrb@linux.ibm.com> |
s390x: Add tests for STCRW
The test consists of two parts: First a simple check to ensure we enforce an aligned address. We test misalignment by 1 and 2 bytes.
The second part tests the handling of
s390x: Add tests for STCRW
The test consists of two parts: First a simple check to ensure we enforce an aligned address. We test misalignment by 1 and 2 bytes.
The second part tests the handling of pending Channel Reports (CR). We first assume no CR is initally pending and check STCRW returns accordingly. Then, we generate a CR by resetting a Channel Path using RCHP and make sure this results in exactly one CRW being generated which has a Reporting-Source Code (RSC) corresponding to the Channel Path facility.
Signed-off-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
show more ...
|
#
a32e2e9e |
| 24-Feb-2022 |
Nico Boehr <nrb@linux.ibm.com> |
s390x: Add more tests for MSCH
We already have some coverage for MSCH, but there are more cases to test for:
- invalid SCHIB structure. We cover that by setting reserved bits 0, 1, 6 and 7 in the
s390x: Add more tests for MSCH
We already have some coverage for MSCH, but there are more cases to test for:
- invalid SCHIB structure. We cover that by setting reserved bits 0, 1, 6 and 7 in the flags of the PMCW. Older QEMU versions require this bit to always be zero on msch, which is why this test may fail. A fix is available in QEMU master commit 2df59b73e086 ("s390x/css: fix PMCW invalid mask"). - a pointer to an unaligned SCHIB. We cover misalignment by 1 and 2 bytes. Using pointer to valid memory avoids messing up random memory in case of test failures.
Here's the QEMU PMCW invalid mask fix: https://lists.nongnu.org/archive/html/qemu-s390x/2021-12/msg00100.html
Signed-off-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Pierre Morel <pmorel@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
show more ...
|
#
5c3582f0 |
| 05-Oct-2021 |
Janis Schoetterl-Glausch <scgl@linux.ibm.com> |
Use report_pass(...) instead of report(1/true, ...)
Whitespace is kept consistent with the rest of the file.
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Reviewed-by: Thomas Huth <t
Use report_pass(...) instead of report(1/true, ...)
Whitespace is kept consistent with the rest of the file.
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20211005090921.1816373-6-scgl@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
198dfd0e |
| 05-Oct-2021 |
Janis Schoetterl-Glausch <scgl@linux.ibm.com> |
Use report_fail(...) instead of report(0/false, ...)
Whitespace is kept consistent with the rest of the file.
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Reviewed-by: Thomas Huth <
Use report_fail(...) instead of report(0/false, ...)
Whitespace is kept consistent with the rest of the file.
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Message-Id: <20211005090921.1816373-5-scgl@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
fa68e2a8 |
| 03-Feb-2021 |
Pierre Morel <pmorel@linux.ibm.com> |
s390x: css: testing measurement block format 1
Measurement block format 1 is made available by the extended measurement block facility and is indicated in the SCHIB by the bit in the PMCW.
The MBO
s390x: css: testing measurement block format 1
Measurement block format 1 is made available by the extended measurement block facility and is indicated in the SCHIB by the bit in the PMCW.
The MBO is specified in the SCHIB of each channel and the MBO defined by the SCHM instruction is ignored.
The test of the MB format 1 is just skipped if the feature is not available.
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Link: https://lore.kernel.org/kvm/1615545714-13747-7-git-send-email-pmorel@linux.ibm.com/ Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|
#
a87cf540 |
| 27-Jan-2021 |
Pierre Morel <pmorel@linux.ibm.com> |
s390x: css: testing measurement block format 0
We test the update of the measurement block format 0, the measurement block origin is calculated from the mbo argument used by the SCHM instruction and
s390x: css: testing measurement block format 0
We test the update of the measurement block format 0, the measurement block origin is calculated from the mbo argument used by the SCHM instruction and the offset calculated using the measurement block index of the SCHIB.
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Janosch Frank <frankja@linux.ibm.com> Link: https://lore.kernel.org/kvm/1615545714-13747-6-git-send-email-pmorel@linux.ibm.com/ Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|
#
d6c5a00e |
| 26-Feb-2021 |
Pierre Morel <pmorel@linux.ibm.com> |
s390x: css: implementing Set CHannel Monitor
We implement the call of the Set CHannel Monitor instruction, starting the monitoring of the all Channel Sub System, and initializing channel subsystem m
s390x: css: implementing Set CHannel Monitor
We implement the call of the Set CHannel Monitor instruction, starting the monitoring of the all Channel Sub System, and initializing channel subsystem monitoring.
Initial tests report the presence of the extended measurement block feature, and verify the error reporting of the hypervisor for SCHM.
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Janosch Frank <frankja@linux.ibm.com> Link: https://lore.kernel.org/kvm/1615545714-13747-5-git-send-email-pmorel@linux.ibm.com/ Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|
#
d3d7fa5a |
| 09-Mar-2021 |
Pierre Morel <pmorel@linux.ibm.com> |
s390x: css: simplifications of the tests
In order to ease the writing of tests based on: - interrupt - enabling a subchannel - using multiple I/O on a channel without disabling it
We do the followi
s390x: css: simplifications of the tests
In order to ease the writing of tests based on: - interrupt - enabling a subchannel - using multiple I/O on a channel without disabling it
We do the following simplifications: - the I/O interrupt handler is registered on CSS initialization - We do not enable again a subchannel in senseid if it is already enabled - we add a css_enabled() function to test if a subchannel is enabled
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Janosch Frank <frankja@linux.ibm.com> Link: https://lore.kernel.org/kvm/1615545714-13747-3-git-send-email-pmorel@linux.ibm.com/ Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|
#
7fbcef02 |
| 26-Jan-2021 |
Pierre Morel <pmorel@linux.ibm.com> |
s390x: css: Store CSS Characteristics
CSS characteristics exposes the features of the Channel SubSystem. Let's use Store Channel Subsystem Characteristics to retrieve the features of the CSS.
Signe
s390x: css: Store CSS Characteristics
CSS characteristics exposes the features of the Channel SubSystem. Let's use Store Channel Subsystem Characteristics to retrieve the features of the CSS.
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Janosch Frank <frankja@linux.ibm.com> Link: https://lore.kernel.org/kvm/1615545714-13747-2-git-send-email-pmorel@linux.ibm.com/ Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|
#
3054ca26 |
| 08-Mar-2021 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 's390x-pull-2021-08-03' of https://gitlab.com/frankja/kvm-unit-tests.git into 'master'
* IO tests PV compatibility (Pierre) * Backtrace support (Janosch) * mvpg test (Claudio) * Fixups
Merge branch 's390x-pull-2021-08-03' of https://gitlab.com/frankja/kvm-unit-tests.git into 'master'
* IO tests PV compatibility (Pierre) * Backtrace support (Janosch) * mvpg test (Claudio) * Fixups (Thomas)
show more ...
|
#
a6e5e596 |
| 22-Jan-2021 |
Pierre Morel <pmorel@linux.ibm.com> |
s390x: css: pv: css test adaptation for PV
We want the tests to automatically work with or without protected virtualisation. To do this we need to share the I/O memory with the host.
Let's replace
s390x: css: pv: css test adaptation for PV
We want the tests to automatically work with or without protected virtualisation. To do this we need to share the I/O memory with the host.
Let's replace all static allocations with dynamic allocations to clearly separate shared and private memory.
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Janosch Frank <frankja@de.ibm.com> Message-Id: <1611322060-1972-4-git-send-email-pmorel@linux.ibm.com> Signed-off-by: Janosch Frank <frankja@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 ...
|
#
fa624cc2 |
| 07-Dec-2020 |
Janosch Frank <frankja@linux.ibm.com> |
s390x: 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
s390x: 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 ...
|
#
1b53866b |
| 09-Aug-2020 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge tag 's390x-2020-31-07' of https://github.com/frankjaa/kvm-unit-tests into HEAD
* IO tests from Pierre * GCC 10 compile fix from Claudio * CPU model test fix from Thomas
|
#
1cd182cf |
| 31-Jul-2020 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge tag 's390x-2020-31-07' of https://github.com/frankjaa/kvm-unit-tests
* IO tests from Pierre * GCC 10 compile fix from Claudio * CPU model test fix from Thomas
|
#
8cb729e4 |
| 16-Jul-2020 |
Pierre Morel <pmorel@linux.ibm.com> |
s390x: css: ssch/tsch with sense and interrupt
After a channel is enabled we start a SENSE_ID command using the SSCH instruction to recognize the control unit and device.
This tests the success of
s390x: css: ssch/tsch with sense and interrupt
After a channel is enabled we start a SENSE_ID command using the SSCH instruction to recognize the control unit and device.
This tests the success of SSCH, the I/O interruption and the TSCH instructions.
The SENSE_ID command response is tested to report 0xff inside its reserved field and to report the same control unit type as the cu_type kernel argument.
Without the cu_type kernel argument, the test expects a device with a default control unit type of 0x3832, a.k.a virtio-net-ccw.
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Acked-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <1594904645-32499-1-git-send-email-pmorel@linux.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|