#
abdc5d02 |
| 08-Apr-2025 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'arm/queue' into 'master'
arm/arm64: Default to 'max' cpu type and add MTE test
See merge request kvm-unit-tests/kvm-unit-tests!76
|
#
1b59c632 |
| 27-Feb-2025 |
Vladimir Murzin <vladimir.murzin@arm.com> |
arm64: Add basic MTE test
Test tag storage access and tag mismatch for different MTE modes.
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> Reviewed-by: Alexandru Elisei <alexandru.elisei@
arm64: Add basic MTE test
Test tag storage access and tag mismatch for different MTE modes.
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
0cc3a351 |
| 22-Feb-2025 |
Sean Christopherson <seanjc@google.com> |
lib: Use __ASSEMBLER__ instead of __ASSEMBLY__
Convert all non-x86 #ifdefs from __ASSEMBLY__ to __ASSEMBLER__, and remove all manual __ASSEMBLY__ #defines. __ASSEMBLY_ was inherited blindly from th
lib: Use __ASSEMBLER__ instead of __ASSEMBLY__
Convert all non-x86 #ifdefs from __ASSEMBLY__ to __ASSEMBLER__, and remove all manual __ASSEMBLY__ #defines. __ASSEMBLY_ was inherited blindly from the Linux kernel, and must be manually defined, e.g. through build rules or with the aforementioned explicit #defines in assembly code.
__ASSEMBLER__ on the other hand is automatically defined by the compiler when preprocessing assembly, i.e. doesn't require manually #defines for the code to function correctly.
Ignore x86, as x86 doesn't actually rely on __ASSEMBLY__ at the moment, and is undergoing a parallel cleanup.
Signed-off-by: Sean Christopherson <seanjc@google.com> Reviewed-by: Andrew Jones <andrew.jones@linux.dev> Message-ID: <20250222014526.2302653-1-seanjc@google.com> [thuth: Fix three more occurances in libfdt.h and sbi-tests.h] Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
201b9e8b |
| 03-Jul-2024 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'arm/queue' into 'master'
arm/arm64: LPA2 support and fpu/sve s/r test
See merge request kvm-unit-tests/kvm-unit-tests!61
|
#
d47d370c |
| 12-Apr-2024 |
Subhasish Ghosh <subhasish.ghosh@arm.com> |
arm: Add test for FPU/SIMD context save/restore
Test that the FPU/SIMD registers are saved and restored correctly when context switching CPUs.
In order to test fpu/simd functionality, we need to ma
arm: Add test for FPU/SIMD context save/restore
Test that the FPU/SIMD registers are saved and restored correctly when context switching CPUs.
In order to test fpu/simd functionality, we need to make sure that kvm-unit-tests doesn't generate code that uses the fpu registers, as that might interfere with the test results. Thus make sure we compile the tests with -mgeneral-regs-only.
Signed-off-by: Subhasish Ghosh <subhasish.ghosh@arm.com> [ Added SVE register tests ] Signed-off-by: Joey Gouly <joey.gouly@arm.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> [Removed references to realms.] Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
53855996 |
| 22-Aug-2023 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'arm/queue' into 'master'
SCTLR_EL1 bit field improvements
See merge request kvm-unit-tests/kvm-unit-tests!46
|
#
117f2690 |
| 24-Jul-2023 |
Shaoqin Huang <shahuang@redhat.com> |
arm64: Define name for these bits used in SCTLR_EL1
Currently some fields in SCTLR_EL1 don't define a name and directly used in the SCTLR_EL1_RES1, that's not good now since these fields have been f
arm64: Define name for these bits used in SCTLR_EL1
Currently some fields in SCTLR_EL1 don't define a name and directly used in the SCTLR_EL1_RES1, that's not good now since these fields have been functional and have a name.
Delete the SCTLR_EL1_RES1 since these bits are not RES1 if the related feature has been implemented, it's wired to define these bits as RES1. So simply delete the SCTLR_EL1_RES1 and unwind its definition to INIT_SCTLR_MMU_OFF.
According to the ARM DDI 0487J.a, define the name related to these fields.
Suggested-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Shaoqin Huang <shahuang@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
16bff5db |
| 24-Jul-2023 |
Shaoqin Huang <shahuang@redhat.com> |
arm64: Use _BITULL() to define SCTLR_EL1 bit fields
Currently the SCTLR_EL1_* is defined by (1 << x), all of them can be replaced by the _BITULL() macro to make the format consistent with the SCTLR_
arm64: Use _BITULL() to define SCTLR_EL1 bit fields
Currently the SCTLR_EL1_* is defined by (1 << x), all of them can be replaced by the _BITULL() macro to make the format consistent with the SCTLR_EL1_RES1 definition.
Signed-off-by: Shaoqin Huang <shahuang@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
f583d924 |
| 30-Mar-2021 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 'arm/queue' into 'master'
arm/arm64: Fixes, improvements, and prep for target-efi
See merge request kvm-unit-tests/kvm-unit-tests!6
|
#
10b65ce7 |
| 22-Mar-2021 |
Alexandru Elisei <alexandru.elisei@arm.com> |
arm64: Configure SCTLR_EL1 at boot
Some fields in SCTLR_EL1 are UNKNOWN at reset and the arm64 boot requirements, as stated by Linux in Documentation/arm64/booting.rst, do not specify a particular v
arm64: Configure SCTLR_EL1 at boot
Some fields in SCTLR_EL1 are UNKNOWN at reset and the arm64 boot requirements, as stated by Linux in Documentation/arm64/booting.rst, do not specify a particular value for all the fields. Do not rely on the good will of the hypervisor and userspace to set SCTLR_EL1 to a sane value (by their definition of sane) and set SCTLR_EL1 explicitely before running setup(). This will ensure that all tests are performed with the hardware set up identically, regardless of the KVM or VMM versions.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
1dd3501a |
| 22-Mar-2021 |
Alexandru Elisei <alexandru.elisei@arm.com> |
lib: arm64: Consolidate register definitions to sysreg.h
Move system register field definitions to sysreg.h, where the opcodes for system register access are defined, to align ourselves with the Lin
lib: arm64: Consolidate register definitions to sysreg.h
Move system register field definitions to sysreg.h, where the opcodes for system register access are defined, to align ourselves with the Linux kernel. EL2 support, needed for EFI and nested virtualization testing, will require additional register and field definions, and having them in the same place as Linux will make maintenance easier.
Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
4ce2a804 |
| 03-Apr-2020 |
Eric Auger <eric.auger@redhat.com> |
arm: pmu: Basic event counter Tests
Adds the following tests: - event-counter-config: test event counter configuration - basic-event-count: - programs counters #0 and #1 to count 2 required events
arm: pmu: Basic event counter Tests
Adds the following tests: - event-counter-config: test event counter configuration - basic-event-count: - programs counters #0 and #1 to count 2 required events (resp. CPU_CYCLES and INST_RETIRED). Counter #0 is preset to a value close enough to the 32b overflow limit so that we check the overflow bit is set after the execution of the asm loop. - mem-access: counts MEM_ACCESS event on counters #0 and #1 with and without 32-bit overflow.
Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
c7ca23ce |
| 03-Apr-2020 |
Andrew Jones <drjones@redhat.com> |
arm64: Provide read/write_sysreg_s
Sometimes we need to test access to system registers which are missing assembler mnemonics.
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Alexandr
arm64: Provide read/write_sysreg_s
Sometimes we need to test access to system registers which are missing assembler mnemonics.
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
show more ...
|
#
ea325c68 |
| 22-Dec-2016 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge tag 'for-master' of https://github.com/rhdrjones/kvm-unit-tests into HEAD
arm/arm64 patches ready for master
|
#
91a6c3ce |
| 08-Nov-2016 |
Andrew Jones <drjones@redhat.com> |
arm/arm64: add initial gicv3 support
Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
|
#
92fca209 |
| 06-Dec-2016 |
Wei Huang <wei@redhat.com> |
arm: Add support for read_sysreg() and write_sysreg()
This patch adds two new macros to support read/write operations of ARMv7 and ARMv8 system registers. As part of the change, xstr() is revised to
arm: Add support for read_sysreg() and write_sysreg()
This patch adds two new macros to support read/write operations of ARMv7 and ARMv8 system registers. As part of the change, xstr() is revised to support variable arguments. With it, ARMv7 system register can be defined with __ACCESS_CP15() or __ACCESS_CP15_64() depending if it is 32-bit or 64-bit. get_mpidr() is re-written with new macros.
Suggested-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Wei Huang <wei@redhat.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|