#
796217d8 |
| 04-Apr-2023 |
Thomas Huth <thuth@redhat.com> |
s390x/snippets: Fix compilation with Clang 15
Clang complains:
s390x/snippets/c/cstart.S:22:13: error: invalid operand for instruction lghi %r15, stackptr ^ Let's load the address w
s390x/snippets: Fix compilation with Clang 15
Clang complains:
s390x/snippets/c/cstart.S:22:13: error: invalid operand for instruction lghi %r15, stackptr ^ Let's load the address with "larl" instead, like we already do it in s390x/cstart64.S. For this we should also switch to 64-bit mode first, then we also don't have to clear r15 right in front of this anymore.
Changing the code here triggered another problem: initial_cr0 must be aligned on a double-word boundary, otherwise the lctlg instruction will fail with an specification exception. This was just working by accident so far - add an ".align 8" now to avoid the problem.
Message-Id: <20230404101434.172721-1-thuth@redhat.com> Reviewed-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.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
|
#
df8d7ad7 |
| 31-Mar-2022 |
Janosch Frank <frankja@linux.ibm.com> |
s390x: snippets: c: Load initial cr0
As soon as we use C we need to set the AFP bit in cr0 so we can use all fprs.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda
s390x: snippets: c: Load initial cr0
As soon as we use C we need to set the AFP bit in cr0 so we can use all fprs.
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 ...
|
#
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
|
#
478996b1 |
| 08-Oct-2021 |
Thomas Huth <thuth@redhat.com> |
s390x: snippets: Define all things that are needed to link the libc
In the long run, we want to use parts of the libc like memset() etc., too. However, to be able to link it correctly, we have to pr
s390x: snippets: Define all things that are needed to link the libc
In the long run, we want to use parts of the libc like memset() etc., too. However, to be able to link it correctly, we have to provide some stub functions like puts() and exit() to avoid that too much other stuff from the lib folder gets pulled into the binaries, which we cannot provide in the snippets (like the sclp support).
Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20211008092649.959956-1-thuth@redhat.com> Link: https://lore.kernel.org/kvm/20211008092649.959956-1-thuth@redhat.com/ Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|
#
a6c15401 |
| 01-Oct-2021 |
Janosch Frank <frankja@linux.ibm.com> |
s390x: snippets: Set stackptr and stacktop in cstart.S
We have a stack, so why not define it and be a step closer to include the lib into the snippets.
Signed-off-by: Janosch Frank <frankja@linux.i
s390x: snippets: Set stackptr and stacktop in cstart.S
We have a stack, so why not define it and be a step closer to include the lib into the snippets.
Signed-off-by: Janosch Frank <frankja@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
|
#
dcb58231 |
| 28-Jul-2021 |
Janosch Frank <frankja@linux.ibm.com> |
s390x: Add SPDX and header comments for the snippets folder
Seems like I missed adding them.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.c
s390x: Add SPDX and header comments for the snippets folder
Seems like I missed adding them.
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 ...
|
#
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
|
#
acc93cbf |
| 22-Jun-2021 |
Janosch Frank <frankja@linux.ibm.com> |
s390x: snippets: Add gitignore as well as linker script and start assembly
Snippets are small guests which can be run under a unit test that implements a simple hypervisor. They can be written in C
s390x: snippets: Add gitignore as well as linker script and start assembly
Snippets are small guests which can be run under a unit test that implements a simple hypervisor. They can be written in C or assembly. The C code needs a linker script and a start assembly file that jumps to main to work properly. So let's add that as well as a gitignore entry for the new files.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
show more ...
|