Patch "KVM: selftests: riscv: Fix alignment of the guest_hang() function" has been added to the 5.17-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    KVM: selftests: riscv: Fix alignment of the guest_hang() function

to the 5.17-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kvm-selftests-riscv-fix-alignment-of-the-guest_hang-.patch
and it can be found in the queue-5.17 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 30e3f471a7bcfa2981d56eff6b28f8f9a1223407
Author: Anup Patel <apatel@xxxxxxxxxxxxxxxx>
Date:   Sat Apr 9 09:15:51 2022 +0530

    KVM: selftests: riscv: Fix alignment of the guest_hang() function
    
    [ Upstream commit ebdef0de2dbc40e697adaa6b3408130f7a7b8351 ]
    
    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: 3e06cdf10520 ("KVM: selftests: Add initial support for RISC-V
    64-bit")
    Signed-off-by: Anup Patel <apatel@xxxxxxxxxxxxxxxx>
    Tested-by: Mayuresh Chitale <mchitale@xxxxxxxxxxxxxxxx>
    Signed-off-by: Anup Patel <anup@xxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/kvm/lib/riscv/processor.c b/tools/testing/selftests/kvm/lib/riscv/processor.c
index d377f2603d98..3961487a4870 100644
--- a/tools/testing/selftests/kvm/lib/riscv/processor.c
+++ b/tools/testing/selftests/kvm/lib/riscv/processor.c
@@ -268,7 +268,7 @@ void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid, uint8_t indent)
 		core.regs.t3, core.regs.t4, core.regs.t5, core.regs.t6);
 }
 
-static void guest_hang(void)
+static void __aligned(16) guest_hang(void)
 {
 	while (1)
 		;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux