#
61ff9901 |
| 04-Jul-2025 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'arm/queue' into 'master'
scripts: Add support for kvmtool
See merge request kvm-unit-tests/kvm-unit-tests!79
|
#
db9c4e1c |
| 25-Jun-2025 |
Alexandru Elisei <alexandru.elisei@arm.com> |
scripts: Add support for kvmtool
Teach the arm runner to use kvmtool when kvm-unit-tests has been configured appropriately.
The test is ran using run_test_status(), and a 0 return code (which means
scripts: Add support for kvmtool
Teach the arm runner to use kvmtool when kvm-unit-tests has been configured appropriately.
The test is ran using run_test_status(), and a 0 return code (which means success) is converted to 1, because kvmtool does not have a testdev device to return the test exit code, so kvm-unit-tests must always parse the "EXIT: STATUS" line for the exit code.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Reviewed-by: Shaoqin Huang <shahuang@redhat.com> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
31f2cece |
| 04-May-2024 |
Nicholas Piggin <npiggin@gmail.com> |
powerpc: Permit ACCEL=tcg,thread=single
Modify run script to permit single vs mttcg threading, add a thread=single smp case to unittests.cfg.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Mess
powerpc: Permit ACCEL=tcg,thread=single
Modify run script to permit single vs mttcg threading, add a thread=single smp case to unittests.cfg.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240504122841.1177683-19-npiggin@gmail.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
610c5a9c |
| 04-May-2024 |
Nicholas Piggin <npiggin@gmail.com> |
powerpc: Support powernv machine with QEMU TCG
Add support for QEMU's powernv machine. This uses standard firmware (skiboot) rather than a minimal firmware shim.
Reviewed-by: Cédric Le Goater <clg@
powerpc: Support powernv machine with QEMU TCG
Add support for QEMU's powernv machine. This uses standard firmware (skiboot) rather than a minimal firmware shim.
Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240504122841.1177683-10-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
06806ed9 |
| 05-Apr-2024 |
Nicholas Piggin <npiggin@gmail.com> |
powerpc: Fix KVM caps on POWER9 hosts
KVM does not like to run on POWER9 hosts without cap-ccf-assist=off.
Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.
powerpc: Fix KVM caps on POWER9 hosts
KVM does not like to run on POWER9 hosts without cap-ccf-assist=off.
Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240405083539.374995-9-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
8ad8b8cd |
| 16-Dec-2023 |
Nicholas Piggin <npiggin@gmail.com> |
powerpc: Quiet QEMU TCG pseries capability warnings
Quieten this console spam.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20231216134257.1743345-7-npiggin@gmail.com> Reviewed-b
powerpc: Quiet QEMU TCG pseries capability warnings
Quieten this console spam.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20231216134257.1743345-7-npiggin@gmail.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
e526bc78 |
| 01-Jul-2023 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'arm/queue' into 'master'
arm/arm64: EFI support, arm64 backtrace support, PMU test improvements, and more
See merge request kvm-unit-tests/kvm-unit-tests!43
|
#
01e047d0 |
| 23-Jun-2023 |
Gavin Shan <gshan@redhat.com> |
runtime: Allow to specify properties for accelerator
There are extra properties for accelerators to enable the specific features. For example, the dirty ring for KVM accelerator can be enabled by "-
runtime: Allow to specify properties for accelerator
There are extra properties for accelerators to enable the specific features. For example, the dirty ring for KVM accelerator can be enabled by "-accel kvm,dirty-ring-size=65536". Unfortuntely, the extra properties for the accelerators aren't supported. It makes it's impossible to test the combination of KVM and dirty ring as the following error message indicates.
# cd /home/gavin/sandbox/kvm-unit-tests/tests # QEMU=/home/gavin/sandbox/qemu.main/build/qemu-system-aarch64 \ ACCEL=kvm,dirty-ring-size=65536 ./its-migration : BUILD_HEAD=2fffb37e timeout -k 1s --foreground 90s \ /home/gavin/sandbox/qemu.main/build/qemu-system-aarch64 \ -nodefaults -machine virt -accel kvm,dirty-ring-size=65536 \ -cpu cortex-a57 -device virtio-serial-device \ -device virtconsole,chardev=ctd -chardev testdev,id=ctd \ -device pci-testdev -display none -serial stdio \ -kernel _NO_FILE_4Uhere_ -smp 160 -machine gic-version=3 \ -append its-pending-migration # -initrd /tmp/tmp.gfDLa1EtWk : qemu-system-aarch64: kvm_init_vcpu: kvm_arch_init_vcpu failed (0): Invalid argument
Allow to specify extra properties for accelerators. With this, the "its-migration" can be tested for the combination of KVM and dirty ring. Rename get_qemu_accelerator() to set_qemu_accelerator() since no values are returned by printing at return.
Signed-off-by: Gavin Shan <gshan@redhat.com> Tested-by: Nico Boehr <nrb@linux.ibm.com> Acked-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
57ab5a6d |
| 20-Jan-2022 |
Thomas Huth <thuth@redhat.com> |
Use a prefix for the STANDALONE environment variable
Seems like "STANDALONE" is too generic and causes a conflict in certain environments (see bug link below). Add a prefix here to decrease the poss
Use a prefix for the STANDALONE environment variable
Seems like "STANDALONE" is too generic and causes a conflict in certain environments (see bug link below). Add a prefix here to decrease the possibility of a conflict here.
Resolves: https://gitlab.com/kvm-unit-tests/kvm-unit-tests/-/issues/3 Message-Id: <20220120182200.152835-1-thuth@redhat.com> Acked-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
f4d99928 |
| 29-Jun-2017 |
Radim Krčmář <rkrcmar@redhat.com> |
arch/run: unify accelerator detection
Use the same mechanism as search_qemu_binary().
The simplified [ "$HOST" = "$ARCH_NAME" ] check will mishandle a case if you compile for $arch on $arch then tr
arch/run: unify accelerator detection
Use the same mechanism as search_qemu_binary().
The simplified [ "$HOST" = "$ARCH_NAME" ] check will mishandle a case if you compile for $arch on $arch then try to run it with $other_arch/run, but that isn't really worth checking.
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Message-Id: <20170629142824.13666-1-rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
fcf4e0d9 |
| 28-Jun-2017 |
Radim Krčmář <rkrcmar@redhat.com> |
scripts/arch-run: fix qemu binary search failure path
Doing exit from a subshell won't exit the main shell, so arch-run will try to continue without a working QEMU if search_qemu_binary() failed.
A
scripts/arch-run: fix qemu binary search failure path
Doing exit from a subshell won't exit the main shell, so arch-run will try to continue without a working QEMU if search_qemu_binary() failed.
Also fix error message from search_qemu_binary().
Signed-off-by: Radim KrÄmář <rkrcmar@redhat.com> Message-Id: <20170628200857.1718-5-rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
e0a8391e |
| 28-Jun-2017 |
Radim Krčmář <rkrcmar@redhat.com> |
s390+powerpc/run: improve output handling
If the test is hanging, then using arch/run would produce no output, because of caching in a temporary variable. Use the `tee` trick to save the output whil
s390+powerpc/run: improve output handling
If the test is hanging, then using arch/run would produce no output, because of caching in a temporary variable. Use the `tee` trick to save the output while passing it through.
They were also using the very same code.
Signed-off-by: Radim KrÄmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
8b13a5b5 |
| 28-Jun-2017 |
Radim Krčmář <rkrcmar@redhat.com> |
arch/run: simplify copy-paste of the command line
The major annoyance coming from errata was "-initrd `mktemp`" that had to be removed before running the copy-pasted command line. Move "-initrd ..."
arch/run: simplify copy-paste of the command line
The major annoyance coming from errata was "-initrd `mktemp`" that had to be removed before running the copy-pasted command line. Move "-initrd ..." part at the end of the line and hide it behind "#" if the initird file is a temporary one.
This patch also brings s390 to use the same code as other architectures and eliminates code duplication.
Signed-off-by: Radim KrÄmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
4da0bc9a |
| 13-Jun-2017 |
Andrew Jones <drjones@redhat.com> |
arch-run: introduce initrd_create
Encapsulate the preparation of the optional initrd command line option.
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redha
arch-run: introduce initrd_create
Encapsulate the preparation of the optional initrd command line option.
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
1b7dd7d3 |
| 15-Mar-2017 |
Sergey Bronnikov <sergeyb@bronevichok.ru> |
Use /bin/env in shebang to make scripts more portable
Some operating systems installs bash executable file to other directory than /bin. So it is better to use env utility to find bash.
Signed-off-
Use /bin/env in shebang to make scripts more portable
Some operating systems installs bash executable file to other directory than /bin. So it is better to use env utility to find bash.
Signed-off-by: Sergey Bronnikov <sergeyb@bronevichok.ru> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
04fcca42 |
| 19-Apr-2017 |
Balamuruhan S <bala24@linux.vnet.ibm.com> |
powerpc/run: use search_qemu_binary function for powerpc
Changes required for powerpc/run to use the search_qemu_binary function for seaching the qemu
Signed-off-by: Balamuruhan S <bala24@linux.vne
powerpc/run: use search_qemu_binary function for powerpc
Changes required for powerpc/run to use the search_qemu_binary function for seaching the qemu
Signed-off-by: Balamuruhan S <bala24@linux.vnet.ibm.com> Message-Id: <1492629589-24845-1-git-send-email-bala24@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
65a9238e |
| 29-Mar-2017 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge branch 'ppc-next' of https://github.com/huth/kvm-unit-tests into HEAD
|
#
37abdda9 |
| 28-Mar-2017 |
Thomas Huth <thuth@redhat.com> |
Add the possibility to do simple migration tests
To be able to do simple migration tests with kvm-unit-tests, too, add a helper script that does all the necessary work: Start two instances of QEMU (
Add the possibility to do simple migration tests
To be able to do simple migration tests with kvm-unit-tests, too, add a helper script that does all the necessary work: Start two instances of QEMU (source and destination) with QMP sockets for sending commands to them, then trigger the migration from one instance to the other and finally signal the end of the migration to the guest by injecting an NMI. This helper script is now used automatically for powerpc tests if the test is put into the "migration" group in the unittests.cfg file.
Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
f266c3e8 |
| 13-Jan-2017 |
Andrew Jones <drjones@redhat.com> |
powerpc: enable environ
Give powerpc unit tests access to environment variables. The environment variables are passed to the unit test with '-initrd env-file'.
Signed-off-by: Andrew Jones <drjones@
powerpc: enable environ
Give powerpc unit tests access to environment variables. The environment variables are passed to the unit test with '-initrd env-file'.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
3695c93a |
| 15-Nov-2016 |
Andrew Jones <drjones@redhat.com> |
run: add -nodefaults
Adding pci-test to arm allowed us to see that a virtio-net-pci device was getting added to our machine by default. Unit tests should configure the most minimal machines they can
run: add -nodefaults
Adding pci-test to arm allowed us to see that a virtio-net-pci device was getting added to our machine by default. Unit tests should configure the most minimal machines they can, only adding devices necessary for the tests. Let's add -nodefaults to all the run scripts.
I tested all arches (powerpc and arm on tcg). There were no unexpected changes.
Signed-off-by: Andrew Jones <drjones@redhat.com> Acked-by: Thomas Huth <thuth@redhat.com> [powerpc] Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
d5f55dcc |
| 11-May-2016 |
Radim Krčmář <rkrcmar@redhat.com> |
scripts/runtime: skip tests that cannot run
A case where QEMU won't run the kernel should be considered as skipped. Hyper-V tests used to FAIL on old QEMUs. The infamous QEMU=/dev/null FAIL streak
scripts/runtime: skip tests that cannot run
A case where QEMU won't run the kernel should be considered as skipped. Hyper-V tests used to FAIL on old QEMUs. The infamous QEMU=/dev/null FAIL streak is covered too. Some error messages in arch/run were reworded, because they are now visible in summary.
Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Message-Id: <1462984243-5783-2-git-send-email-rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
fd149358 |
| 02-Mar-2016 |
Andrew Jones <drjones@redhat.com> |
run scripts: add timeout support
Also remove useless qemu variable in scripts/runtime.bash.
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Radim KrÄmář <rkrcmar@redhat.com>
Messa
run scripts: add timeout support
Also remove useless qemu variable in scripts/runtime.bash.
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Radim KrÄmář <rkrcmar@redhat.com>
Message-Id: <1456939982-13178-7-git-send-email-drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
b2a2aa5d |
| 02-Mar-2016 |
Andrew Jones <drjones@redhat.com> |
arch-run: reduce return code ambiguity
qemu/unittest exit codes are convoluted, causing codes 0 and 1 to be ambiguous. Here are the possible meanings
.---------------------------------------------
arch-run: reduce return code ambiguity
qemu/unittest exit codes are convoluted, causing codes 0 and 1 to be ambiguous. Here are the possible meanings
.-----------------------------------------------------------------. | | 0 | 1 | |-----------------------------------------------------------------| | QEMU | did something successfully, | FAILURE | | | but probably didn't run the | | | | unittest, OR caught SIGINT, | | | | SIGHUP, or SIGTERM | | |-----------------------------------------------------------------| | unittest | for some reason exited using | SUCCESS | | | ACPI/PSCI, not with debug-exit | | .-----------------------------------------------------------------.
As we can see above, an exit code of zero is even ambiguous for each row, i.e. QEMU could exit with zero because it successfully completed, or because it caught a signal. unittest could exit with zero because it successfully powered-off, or because for some odd reason it powered- off instead of calling debug-exit.
And, the most fun is that exit-code == 1 means QEMU failed, but the unittest succeeded.
This patch attempts to reduce that ambiguity, by also looking at stderr.
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Radim KrÄmář <rkrcmar@redhat.com>
Message-Id: <1456939982-13178-4-git-send-email-drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
f1df8658 |
| 29-Feb-2016 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge branch 'ppc64/initial-drop-v7' of https://github.com/rhdrjones/kvm-unit-tests into HEAD
This series brings basic setup; starts a test's C entry point, main(), and printf, exit, and malloc work
Merge branch 'ppc64/initial-drop-v7' of https://github.com/rhdrjones/kvm-unit-tests into HEAD
This series brings basic setup; starts a test's C entry point, main(), and printf, exit, and malloc work. Three more series should follow this one which must bring; vector support, mmu support, and smp support, at which point I believe the framework could just evolve with the creation of unit tests.
Tested on TCG and a P8 kvm_pr machine, and Laurent has tested it on both a PowerMac G5 (kvm_pr) and a kvm_hv machine. I'm looking forward to hearing more testing feedback from others though.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
f5a87330 |
| 08-Feb-2016 |
Andrew Jones <drjones@redhat.com> |
powerpc/ppc64: make a fake debug-exit
We should use a QEMU debug-exit device like chr-testdev, but for now we just fake things by outputting the exit code (which we parse later) and quitting with RT
powerpc/ppc64: make a fake debug-exit
We should use a QEMU debug-exit device like chr-testdev, but for now we just fake things by outputting the exit code (which we parse later) and quitting with RTAS (which always exits with zero).
(When we've got a real debug-exit working, then this patch can be reverted.)
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Tested-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
show more ...
|