diff options
author | Haibo Xu <haibo1.xu@intel.com> | 2024-01-22 17:58:39 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-03-06 20:51:41 +0530 |
commit | 38f680c25ece49c1f8ff55ee78dca0ee4e1793a6 (patch) | |
tree | ca4ee6636d3e89a7845959c23241423b91e5bbc7 /tools/testing/selftests/kvm/Makefile | |
parent | feb2c8fae3b8703408f01a8db822dd05b1a576ee (diff) |
KVM: riscv: selftests: Add exception handling support
Add the infrastructure for guest exception handling in riscv selftests.
Customized handlers can be enabled by vm_install_exception_handler(vector)
or vm_install_interrupt_handler().
The code is inspired from that of x86/arm64.
Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/testing/selftests/kvm/Makefile')
-rw-r--r-- | tools/testing/selftests/kvm/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index 63592045720f..3e94e915c9f0 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -53,6 +53,7 @@ LIBKVM_s390x += lib/s390x/diag318_test_handler.c LIBKVM_s390x += lib/s390x/processor.c LIBKVM_s390x += lib/s390x/ucall.c +LIBKVM_riscv += lib/riscv/handlers.S LIBKVM_riscv += lib/riscv/processor.c LIBKVM_riscv += lib/riscv/ucall.c |