#
7e973773 |
| 14-Feb-2023 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'arm/queue' into 'master'
arm/arm64: PMU and PSCI tests
See merge request kvm-unit-tests/kvm-unit-tests!39
|
#
6afb9481 |
| 03-Feb-2023 |
Alexandru Elisei <alexandru.elisei@arm.com> |
arm/psci: Test that CPU 1 has been successfully brought online
For the PSCI CPU_ON function test, all other CPUs perform a CPU_ON call that target CPU 1. The test is considered a success if CPU_ON r
arm/psci: Test that CPU 1 has been successfully brought online
For the PSCI CPU_ON function test, all other CPUs perform a CPU_ON call that target CPU 1. The test is considered a success if CPU_ON returns PSCI SUCCESS exactly once, and for the rest of the calls PSCI ALREADY_ON.
Enhance the test by checking that CPU 1 is actually online and able to execute code. Also make the test more robust by checking that the CPU_ON call returns, instead of assuming that it will always succeed and hanging indefinitely if it doesn't.
Since the CPU 1 thread is now being set up properly by kvm-unit-tests when being brought online, it becomes possible to add other tests in the future that require all CPUs.
The include header order in arm/psci.c has been changed to be in alphabetic order. This means moving the errata.h include before libcflat.h, which causes compilation to fail because of missing includes in errata.h. Fix that also by including the needed header in errata.h.
Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
c81d5352 |
| 05-Apr-2019 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge branch 'support-kvmtool' of https://github.com/rhdrjones/kvm-unit-tests into HEAD
|
#
35145f14 |
| 20-Mar-2019 |
Andrew Jones <drjones@redhat.com> |
arm/arm64: kvmtool: force all tests to run
The errata framework doesn't work with kvmtool, so just live dangerously and force all tests to run.
Cc: Alexandru Elisei <alexandru.elisei@arm.com> Signe
arm/arm64: kvmtool: force all tests to run
The errata framework doesn't work with kvmtool, so just live dangerously and force all tests to run.
Cc: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
c346a8e0 |
| 13-Jun-2017 |
Andrew Jones <drjones@redhat.com> |
errata: add ERRATA_FORCE
Provide an easy way for test runners to run all tests, even those guarded by an erratum. Setting ERRATA_FORCE forces errata() and errata_relaxed() to always return true. ./r
errata: add ERRATA_FORCE
Provide an easy way for test runners to run all tests, even those guarded by an erratum. Setting ERRATA_FORCE forces errata() and errata_relaxed() to always return true. ./run_tests.sh -a is also updated to set it.
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 ...
|
#
4b6da826 |
| 07-Apr-2017 |
Thomas Huth <thuth@redhat.com> |
lib: Add headers to generic library files
Many files in the lib folder do not have proper statements about their license. Add such a header there so that it is clear under which conditions the code
lib: Add headers to generic library files
Many files in the lib folder do not have proper statements about their license. Add such a header there so that it is clear under which conditions the code can be used.
Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
218bb0d4 |
| 13-Jan-2017 |
Andrew Jones <drjones@redhat.com> |
Introduce lib/errata.h
Now that we have environment variables we can apply them to defining errata booleans to determine behavior of report_skip or report_xfail in tests. lib/errata.h provides handy
Introduce lib/errata.h
Now that we have environment variables we can apply them to defining errata booleans to determine behavior of report_skip or report_xfail in tests. lib/errata.h provides handy wrappers allowing one to do things like:
Only running dangerous tests (host crashers) when the errata has been applied
if (!ERRATA(0123456789ab)) report_skip("ERRATA_123456789ab not set 'y', skipping..."); else report(...);
Trigger an XFAIL vs. a FAIL, when set to 'n'
report_xfail("APIC test", !ERRATA_RELAXED(ba9876543210), ...);
The xfail example uses ERRATA_RELAXED to ensure we have the same behavior as now (assuming the software under test should pass, i.e output FAIL if it does not), when testing without the optional environ.
Signed-off-by: Andrew Jones <drjones@redhat.com> [Changed the example to use kernel hashes as errata identifiers. Andrew aggreed.] Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|