]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: riscv: Fix alignment of the guest_hang() function
authorAnup Patel <apatel@ventanamicro.com>
Sat, 9 Apr 2022 03:45:51 +0000 (09:15 +0530)
committerAnup Patel <anup@brainfault.org>
Sat, 9 Apr 2022 03:45:51 +0000 (09:15 +0530)
commitdcb89c3048def9882e9d607507460009dae1ff8d
tree829a328b29febec8d7586ff4945a40811c818480
parente94c9fc2bba7ea0ad5268a54828c455bc69ecf88
KVM: selftests: riscv: Fix alignment of the guest_hang() function

The guest_hang() function is used as the default exception handler
for various KVM selftests applications by setting it's address in
the vstvec CSR. The vstvec CSR requires exception handler base address
to be at least 4-byte aligned so this patch fixes alignment of the
guest_hang() function.

Fixes: 9b8eaa51136d ("KVM: selftests: Add initial support for RISC-V
64-bit")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Tested-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/lib/riscv/processor.c