08db0f5c | 02-May-2025 |
Sean Christopherson <seanjc@google.com> |
scripts: Search the entire string for the correct accelerator
Search the entire ACCEL string for the required accelerator as searching for an exact match incorrectly rejects ACCEL when additional ac
scripts: Search the entire string for the correct accelerator
Search the entire ACCEL string for the required accelerator as searching for an exact match incorrectly rejects ACCEL when additional accelerator specific options are provided, e.g.
SKIP pmu (kvm only, but ACCEL=kvm,kernel_irqchip=on)
Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
5f77b72d | 08-Apr-2025 |
Jean-Philippe Brucker <jean-philippe@linaro.org> |
configure: Add --target-cpu option
Add the --target-cpu option to let users set the CPU type to run on. At the moment --processor allows to set both GCC -mcpu flag and QEMU -cpu. On Arm we'd like to
configure: Add --target-cpu option
Add the --target-cpu option to let users set the CPU type to run on. At the moment --processor allows to set both GCC -mcpu flag and QEMU -cpu. On Arm we'd like to pass `-cpu max` to QEMU in order to enable all the TCG features by default, and it could also be nice to let users modify the CPU capabilities by setting extra -cpu options. Since GCC -mcpu doesn't accept "max" or "host", separate the compiler and QEMU arguments.
`--processor` is now exclusively for compiler options, as indicated by its documentation ("processor to compile for"). So use $TARGET_CPU on RISC-V as well.
Suggested-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
b9423a4f | 17-Mar-2025 |
Clément Léger <cleger@rivosinc.com> |
kbuild: Allow multiple asm-offsets file to be generated
In order to allow multiple asm-offsets files to generated the include guard need to be different between these file. Add a asm_offset_name mak
kbuild: Allow multiple asm-offsets file to be generated
In order to allow multiple asm-offsets files to generated the include guard need to be different between these file. Add a asm_offset_name makefile macro to obtain an uppercase name matching the original asm offsets file.
Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
846737f0 | 26-Jul-2024 |
Nicholas Piggin <npiggin@gmail.com> |
checkpatch support
This brings checkpatch.pl almost unchanged from linux.git, and adds it to gitlab-ci using QEMU's check-patch.py script.
For now, warnings are not treated as errors until we get a
checkpatch support
This brings checkpatch.pl almost unchanged from linux.git, and adds it to gitlab-ci using QEMU's check-patch.py script.
For now, warnings are not treated as errors until we get a feeling for what warnings are useful.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Acked-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
67bdbcff | 03-Jun-2024 |
Thomas Huth <thuth@redhat.com> |
scripts/s390x: Fix the execution of the PV tests
Commit ccb37496 ("scripts: allow machine option to be specified in unittests.cfg") added an additonal parameter (the "machine"), but we forgot to add
scripts/s390x: Fix the execution of the PV tests
Commit ccb37496 ("scripts: allow machine option to be specified in unittests.cfg") added an additonal parameter (the "machine"), but we forgot to add it to the spot that runs the PV test cases, so those are currently broken without this fix.
Fixes: ccb37496 ("scripts: allow machine option to be specified in unittests.cfg") Message-ID: <20240603075944.150445-1-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
f3393cdc | 04-May-2024 |
Nicholas Piggin <npiggin@gmail.com> |
scripts: Accommodate powerpc powernv machine differences
The QEMU powerpc powernv machine has minor differences that must be accommodated for in output parsing:
- Summary parsing must search more l
scripts: Accommodate powerpc powernv machine differences
The QEMU powerpc powernv machine has minor differences that must be accommodated for in output parsing:
- Summary parsing must search more lines of output for the summary line, to accommodate OPAL message on shutdown. - Premature failure testing must tolerate case differences in kernel load error message.
Acked-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240504122841.1177683-9-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
ccb37496 | 04-May-2024 |
Nicholas Piggin <npiggin@gmail.com> |
scripts: allow machine option to be specified in unittests.cfg
This allows different machines with different requirements to be supported by run_tests.sh, similarly to how different accelerators are
scripts: allow machine option to be specified in unittests.cfg
This allows different machines with different requirements to be supported by run_tests.sh, similarly to how different accelerators are handled.
Acked-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240504122841.1177683-8-npiggin@gmail.com> [thuth: Adjusted code in scripts/s390x/func.bash for the changes] Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
a481914f | 02-May-2024 |
Andrew Jones <andrew.jones@linux.dev> |
runtime: Adjust probe_maxsmp for older QEMU
probe_maxsmp is really just for Arm and for older QEMU which doesn't default to gicv3. So, even though later QEMU has a new error message format, we want
runtime: Adjust probe_maxsmp for older QEMU
probe_maxsmp is really just for Arm and for older QEMU which doesn't default to gicv3. So, even though later QEMU has a new error message format, we want to be able to parse the old error message format in order to use --probe-maxsmp when necessary. Adjust the parsing so it can handle both the old and new formats.
Fixes: 5dd20ec76ea6 ("runtime: Update MAX_SMP probe") Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
3df129a6 | 01-May-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Suppress various messages
Various info and warnings are suppressed here, where circumstances (commented) warrant.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicho
shellcheck: Suppress various messages
Various info and warnings are suppressed here, where circumstances (commented) warrant.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
b3a1827e | 01-May-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Fix SC2294
SC2294 (warning): eval negates the benefit of arrays. Drop eval to preserve whitespace/symbols (or eval as string).
No bug identified.
Reviewed-by: Andrew Jones <andrew.
shellcheck: Fix SC2294
SC2294 (warning): eval negates the benefit of arrays. Drop eval to preserve whitespace/symbols (or eval as string).
No bug identified.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
a8d9d8dc | 01-May-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Fix SC2124
SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
Shouldn't be a bug since bash concatenates with space and eval is
shellcheck: Fix SC2124
SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
Shouldn't be a bug since bash concatenates with space and eval is used on the result.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
b7e5dfd3 | 01-May-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Fix SC2155
SC2155 (warning): Declare and assign separately to avoid masking return values.
No bug identified.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nich
shellcheck: Fix SC2155
SC2155 (warning): Declare and assign separately to avoid masking return values.
No bug identified.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
ddfdcc39 | 01-May-2024 |
Nicholas Piggin <npiggin@gmail.com> |
Add initial shellcheck checking
This adds a basic shellcheck style file, some directives to help find scripts, and a make shellcheck target.
When changes settle down this could be made part of the
Add initial shellcheck checking
This adds a basic shellcheck style file, some directives to help find scripts, and a make shellcheck target.
When changes settle down this could be made part of the standard build / CI flow.
Suggested-by: Andrew Jones <andrew.jones@linux.dev> Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
bff3aac8 | 06-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
s390x: Use local accel variable in arch_cmd_s390x
By the time we end up in arch_cmd_s390x() the global ACCEL variable has already been processed and is passed to arch_cmd_s390x() as an argument. We
s390x: Use local accel variable in arch_cmd_s390x
By the time we end up in arch_cmd_s390x() the global ACCEL variable has already been processed and is passed to arch_cmd_s390x() as an argument. We should use the local argument to achieve the correct behavior and not rely on global variables.
Fix this by changing ACCEL to lower case.
Reported-by: shellcheck SC2153 Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Acked-by: Janosch Frank <frankja@linux.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Link: https://lore.kernel.org/r/20240406122456.405139-2-npiggin@gmail.com Message-ID: <20240406122456.405139-2-npiggin@gmail.com> [frankja@linux.ibm.com: Improved commit message] Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
show more ...
|
956004ac | 05-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
arch-run: Add a "continuous" migration option for tests
The cooperative migration protocol is very good to control precise pre and post conditions for a migration event. However in some cases its in
arch-run: Add a "continuous" migration option for tests
The cooperative migration protocol is very good to control precise pre and post conditions for a migration event. However in some cases its intrusiveness to the test program, can mask problems and make analysis more difficult.
For example to stress test migration vs concurrent complicated memory access, including TLB refill, ram dirtying, etc., then the tight spin at getchar() and resumption of the workload after migration is unhelpful.
This adds a continuous migration mode that directs the harness to perform migrations continually. This is added to the migration selftests, which also sees cooperative migration iterations reduced to avoid increasing test time too much.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240405083539.374995-6-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
fa8914bc | 05-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
migration: Add a migrate_skip command
Tests that are run with MIGRATION=yes but skip due to some requirement not being met will show as a failure due to the harness requirement to see one successful
migration: Add a migrate_skip command
Tests that are run with MIGRATION=yes but skip due to some requirement not being met will show as a failure due to the harness requirement to see one successful migration. The workaround for this is to migrate in test's skip path. Add a new command that just tells the harness to not expect a migration.
Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240405083539.374995-4-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
49bbfc65 | 05-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
arch-run: Keep infifo open
The infifo fifo that is used to send characters to QEMU console is only able to receive one character before the cat process exits. Supporting interactions between test an
arch-run: Keep infifo open
The infifo fifo that is used to send characters to QEMU console is only able to receive one character before the cat process exits. Supporting interactions between test and harness involving multiple characters requires the fifo to remain open.
The infifo is removed by the exit handler like other files and fifos so it does not have to be removed explicitly.
With this we can let the cat out of the subshell, simplifying the input pipeline.
Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240405083539.374995-3-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
4aadd216 | 05-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
arch-run: Add functions to help handle migration directives from test
The migration harness will be expanded to deal with more commands from the test, moving these checks into functions helps keep t
arch-run: Add functions to help handle migration directives from test
The migration harness will be expanded to deal with more commands from the test, moving these checks into functions helps keep things managable.
Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240405083539.374995-2-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
7f01fa71 | 06-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Fix SC2145
SC2145 (error): Argument mixes string and array. Use * or separate argument.
Shouldn't be a bug, since the preceding string ends with a space and there aren't any succeed
shellcheck: Fix SC2145
SC2145 (error): Argument mixes string and array. Use * or separate argument.
Shouldn't be a bug, since the preceding string ends with a space and there aren't any succeeding strings.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240406123833.406488-10-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
ec11048d | 06-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Fix SC2013
SC2013 (info): To read lines rather than words, pipe/redirect to a 'while read' loop.
Not a bug.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Andrew J
shellcheck: Fix SC2013
SC2013 (info): To read lines rather than words, pipe/redirect to a 'while read' loop.
Not a bug.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Message-ID: <20240406123833.406488-9-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
5bf124ff | 06-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Fix SC2143
SC2143 (style): Use ! grep -q instead of comparing output with [ -z .. ].
Not a bug.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <n
shellcheck: Fix SC2143
SC2143 (style): Use ! grep -q instead of comparing output with [ -z .. ].
Not a bug.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240406123833.406488-8-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
09e55926 | 06-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Fix SC2006
SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
No bug identified.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin
shellcheck: Fix SC2006
SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
No bug identified.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240406123833.406488-6-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
d50fa5a8 | 06-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Fix SC2094
SC2094 (info): Make sure not to read and write the same file in the same pipeline.
This is not as clearly bad as overwriting an input file with >, but could appended char
shellcheck: Fix SC2094
SC2094 (info): Make sure not to read and write the same file in the same pipeline.
This is not as clearly bad as overwriting an input file with >, but could appended characters possibly be read in from the input redirection?
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240406123833.406488-5-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
20a879fa | 06-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
shellcheck: Fix SC2223
SC2223 (info): This default assignment may cause DoS due to globbing. Quote it.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin
shellcheck: Fix SC2223
SC2223 (info): This default assignment may cause DoS due to globbing. Quote it.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240406123833.406488-3-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
6e67f74a | 05-Mar-2024 |
Andrew Jones <andrew.jones@linux.dev> |
runtime: Add yet another 'no kernel' error message
When booting an Arm machine with the -bios command line option we get yet another error message from QEMU when using _NO_FILE_4Uhere_ to probe comm
runtime: Add yet another 'no kernel' error message
When booting an Arm machine with the -bios command line option we get yet another error message from QEMU when using _NO_FILE_4Uhere_ to probe command line support. Add it to the check in premature_failure()
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-by: Shaoqin Huang <shahuang@redhat.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|