diff options
| author | Colton Lewis <coltonlewis@google.com> | 2024-08-23 17:58:35 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2024-08-30 09:03:45 +0100 |
| commit | ca1a18368d764f9b29ab0c79b3ddd712f5511855 (patch) | |
| tree | 695b712f3d6e9567f01a69bf51f32dcc41f8130a /tools/testing/selftests/kvm/include | |
| parent | Linux 6.11-rc1 (diff) | |
| download | linux-ca1a18368d764f9b29ab0c79b3ddd712f5511855.tar.gz linux-ca1a18368d764f9b29ab0c79b3ddd712f5511855.zip | |
KVM: arm64: selftests: Ensure pending interrupts are handled in arch_timer test
Break up the asm instructions poking daifclr and daifset to handle
interrupts. R_RBZYL specifies pending interrupts will be handle after
context synchronization events such as an ISB.
Introduce a function wrapper for the WFI instruction.
Signed-off-by: Colton Lewis <coltonlewis@google.com>
Link: https://lore.kernel.org/r/20240823175836.2798235-2-coltonlewis@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/testing/selftests/kvm/include')
| -rw-r--r-- | tools/testing/selftests/kvm/include/aarch64/processor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/aarch64/processor.h b/tools/testing/selftests/kvm/include/aarch64/processor.h index 9b20a355d81a..de977d131082 100644 --- a/tools/testing/selftests/kvm/include/aarch64/processor.h +++ b/tools/testing/selftests/kvm/include/aarch64/processor.h @@ -243,4 +243,7 @@ void smccc_smc(uint32_t function_id, uint64_t arg0, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4, uint64_t arg5, uint64_t arg6, struct arm_smccc_res *res); +/* Execute a Wait For Interrupt instruction. */ +void wfi(void); + #endif /* SELFTEST_KVM_PROCESSOR_H */ |
