#
a0e236bd |
| 06-Nov-2023 |
Nico Boehr <nrb@linux.ibm.com> |
s390x: ensure kernel-doc parameters are properly formated
In kernel-doc, parameters names should end in a colon (:). Add them where they are missing.
Signed-off-by: Nico Boehr <nrb@linux.ibm.com> R
s390x: ensure kernel-doc parameters are properly formated
In kernel-doc, parameters names should end in a colon (:). Add them where they are missing.
Signed-off-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20231106125352.859992-6-nrb@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
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 ...
|
#
64fa4199 |
| 06-Nov-2023 |
Nico Boehr <nrb@linux.ibm.com> |
s390x: lib: don't forward PSW when handling exception in SIE
When we're handling a pgm int in SIE, we want to return to the SIE cleanup after handling the exception. That's why we set pgm_old_psw to
s390x: lib: don't forward PSW when handling exception in SIE
When we're handling a pgm int in SIE, we want to return to the SIE cleanup after handling the exception. That's why we set pgm_old_psw to the sie_exit label in fixup_pgm_int.
On nullifing pgm ints, fixup_pgm_int will also forward the old PSW such that we don't cause an pgm int again.
However, when we want to return to the sie_exit label, this is not needed (since we've manually set pgm_old_psw). Instead, forwarding the PSW might cause us to skip an instruction or end up in the middle of an instruction.
So, let's just skip the rest of the fixup in case we're inside SIE.
Note that we're intentionally not fixing up the PSW in the guest; that's best left to the test at hand by registering their own psw fixup.
Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Link: https://lore.kernel.org/r/20231106163738.1116942-5-nrb@linux.ibm.com Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
show more ...
|
#
fedfd112 |
| 06-Nov-2023 |
Nico Boehr <nrb@linux.ibm.com> |
s390x: add function to set DAT mode for all interrupts
When toggling DAT or switch address space modes, it is likely that interrupts should be handled in the same DAT or address space mode.
Add a f
s390x: add function to set DAT mode for all interrupts
When toggling DAT or switch address space modes, it is likely that interrupts should be handled in the same DAT or address space mode.
Add a function which toggles DAT and address space mode for all interruptions, except restart interrupts.
Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Link: https://lore.kernel.org/r/20231106163738.1116942-3-nrb@linux.ibm.com Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
show more ...
|
#
e3c5c3ef |
| 16-Feb-2023 |
Thomas Huth <thuth@redhat.com> |
Merge branch 's390x-next-2023-02' into 'master'
s390x: storage key migration tests, snippets and linker cleanups
See merge request kvm-unit-tests/kvm-unit-tests!40
|
#
cdc9bd7b |
| 12-Jan-2023 |
Janosch Frank <frankja@linux.ibm.com> |
lib: s390x: Handle debug prints for SIE exceptions correctly
When we leave SIE due to an exception, we'll still have guest values in registers 0 - 13 and that's not clearly portraied in our debug pr
lib: s390x: Handle debug prints for SIE exceptions correctly
When we leave SIE due to an exception, we'll still have guest values in registers 0 - 13 and that's not clearly portraied in our debug prints. So let's fix that.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Link: https://lore.kernel.org/r/20230112154548.163021-8-frankja@linux.ibm.com Message-Id: <20230112154548.163021-8-frankja@linux.ibm.com>
show more ...
|
#
5bf99cb3 |
| 25-Oct-2022 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 's390x-next-2022-10' into 'master'
* library fixes to allow multi-cpu PV guests
* additional tests and fixes for uv-host
* timing tests and library improvements
* misc fixes
|
#
89ce5095 |
| 28-Sep-2022 |
Claudio Imbrenda <imbrenda@linux.ibm.com> |
lib: s390x: terminate if PGM interrupt in interrupt handler
If a program interrupt is received while in an interrupt handler, terminate immediately, stopping all CPUs and leaving the last CPU in dis
lib: s390x: terminate if PGM interrupt in interrupt handler
If a program interrupt is received while in an interrupt handler, terminate immediately, stopping all CPUs and leaving the last CPU in disabled wait with a specific PSW code.
This will aid debugging by not cluttering the output, avoiding further interrupts (that would be needed to write to the output), and providing an indication of the cause of the termination.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Message-Id: <20221020123143.213778-2-imbrenda@linux.ibm.com> Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
show more ...
|
#
7b2e4176 |
| 21-Jul-2022 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 's390x-next-2022-07' into 'master'
s390x: Fix sclp facility bit numbers
See merge request kvm-unit-tests/kvm-unit-tests!34
|
#
4e5dd758 |
| 21-Feb-2022 |
Claudio Imbrenda <imbrenda@linux.ibm.com> |
lib: s390x: better smp interrupt checks
Use per-CPU flags and callbacks for Program and Extern interrupts, instead of global variables.
This allows for more accurate error handling; a CPU waiting f
lib: s390x: better smp interrupt checks
Use per-CPU flags and callbacks for Program and Extern interrupts, instead of global variables.
This allows for more accurate error handling; a CPU waiting for an interrupt will not have it "stolen" by a different CPU that was not supposed to wait for one, and now two CPUs can wait for interrupts at the same time.
This will significantly improve error reporting and debugging when things go wrong.
Both program interrupts and external interrupts are now CPU-bound, even though some external interrupts are floating (notably, the SCLP interrupt). In those cases, the testcases should mask interrupts and/or expect them appropriately according to need.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|
#
c2c1663a |
| 21-Jun-2022 |
Janis Schoetterl-Glausch <scgl@linux.ibm.com> |
s390x: Rework TEID decoding and usage
The translation-exception identification (TEID) contains information to identify the cause of certain program exceptions, including translation exceptions occur
s390x: Rework TEID decoding and usage
The translation-exception identification (TEID) contains information to identify the cause of certain program exceptions, including translation exceptions occurring during dynamic address translation, as well as protection exceptions. The meaning of fields in the TEID is complex, depending on the exception occurring and various potentially installed facilities.
Rework the type describing the TEID, in order to ease decoding. Change the existing code interpreting the TEID and extend it to take the installed suppression-on-protection facility into account.
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Message-Id: <20220621143015.748290-4-scgl@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
show more ...
|
#
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 ...
|
#
3ac97f8f |
| 18-Oct-2021 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 's390x-pull-2021-10-18' into 'master'
s390x-pull-2021-10-18
See merge request kvm-unit-tests/kvm-unit-tests!18
|
#
61f45aba |
| 07-Sep-2021 |
Janosch Frank <frankja@linux.ibm.com> |
lib: s390x: Print PGM code as hex
We have them defined as hex constants in lib/s390x/asm/arch_def.h so why not print them as hex values?
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewe
lib: s390x: Print PGM code as hex
We have them defined as hex constants in lib/s390x/asm/arch_def.h so why not print them as hex values?
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
1921c4c6 |
| 06-Aug-2021 |
Janosch Frank <frankja@linux.ibm.com> |
lib: s390x: Print addressing related exception information
Right now we only get told the kind of program exception as well as the PSW at the point where it happened.
For addressing exceptions the
lib: s390x: Print addressing related exception information
Right now we only get told the kind of program exception as well as the PSW at the point where it happened.
For addressing exceptions the PSW is not always enough so let's print the TEID which contains the failing address and flags that tell us more about the kind of address exception.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
0c259cf3 |
| 16-Aug-2021 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 's390x-pull-2021-16-08' into 'master'
s390x-pull-2021-16-08
See merge request kvm-unit-tests/kvm-unit-tests!15
|
#
68721b97 |
| 09-Aug-2021 |
Janosch Frank <frankja@linux.ibm.com> |
lib: s390x: Add 0x3d, 0x3e and 0x3f PGM constants
For UV and format 4 SIE tests we need to handle the following PGM exceptions: 0x3d Secure Storage Access (non-secure CPU accesses secure storage) 0x
lib: s390x: Add 0x3d, 0x3e and 0x3f PGM constants
For UV and format 4 SIE tests we need to handle the following PGM exceptions: 0x3d Secure Storage Access (non-secure CPU accesses secure storage) 0x3e Non-Secure Storage Access (secure CPU accesses non-secure storage) 0x3f Mapping of secure guest is wrong
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
show more ...
|
#
60ac107d |
| 07-Jul-2021 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 's390x-pull-2021-07-07' into 'master'
s390x-pull-2021-07-07
See merge request kvm-unit-tests/kvm-unit-tests!13
|
#
81598ca0 |
| 01-Jul-2021 |
Janosch Frank <frankja@linux.ibm.com> |
lib: s390x: Remove left behing PGM report
When I added the backtrace support I forgot to remove the PGM report.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Cornelia Huck <cohu
lib: s390x: Remove left behing PGM report
When I added the backtrace support I forgot to remove the PGM report.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com>
show more ...
|
#
7f5b10b7 |
| 11-Jun-2021 |
Janosch Frank <frankja@linux.ibm.com> |
lib: s390x: Print if a pgm happened while in SIE
For debugging it helps if you know if the PGM happened while being in SIE or not.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by:
lib: s390x: Print if a pgm happened while in SIE
For debugging it helps if you know if the PGM happened while being in SIE or not.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com>
show more ...
|
#
d4123fdd |
| 22-Jun-2021 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 's390x-pull-2021-22-06' into 'master'
s390x-pull-2021-22-06
See merge request kvm-unit-tests/kvm-unit-tests!11
|
#
2652cb00 |
| 11-Jun-2021 |
Claudio Imbrenda <imbrenda@linux.ibm.com> |
s390x: lib: add teid union and clear teid from lowcore
Add a union to represent Translation-Exception Identification (TEID).
Clear the TEID in expect_pgm_int clear_pgm_int.
Signed-off-by: Claudio
s390x: lib: add teid union and clear teid from lowcore
Add a union to represent Translation-Exception Identification (TEID).
Clear the TEID in expect_pgm_int clear_pgm_int.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Message-Id: <20210611140705.553307-6-imbrenda@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 ...
|
#
b43c912f |
| 07-Dec-2020 |
Claudio Imbrenda <imbrenda@linux.ibm.com> |
s390x: introduce leave_pstate to leave userspace
In most testcases, we enter problem state (userspace) just to test if a privileged instruction causes a fault. In some cases, though, we need to test
s390x: introduce leave_pstate to leave userspace
In most testcases, we enter problem state (userspace) just to test if a privileged instruction causes a fault. In some cases, though, we need to test if an instruction works properly in userspace. This means that we do not expect a fault, and we need an orderly way to leave problem state afterwards.
This patch introduces a simple system based on the SVC instruction.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Link: https://lore.kernel.org/kvm/20210302114107.501837-2-imbrenda@linux.ibm.com/ Acked-by: David Hildenbrand <david@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|