[PATCH] RISC-V: KVM: Change imsic->vsfile_lock from rwlock_t to raw_spinlock_t
Jiakai Xu
xujiakai2025 at iscas.ac.cn
Tue Mar 3 02:10:22 PST 2026
Hi Anup,
Thank you for the review and for pointing out the issue.
I've been trying to reproduce the problem following the setup described in
https://github.com/kvm-riscv/howto/wiki/KVM-RISCV64-on-QEMU.
I tested with this patch applied on two different kernel bases:
1. https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git master
2. https://github.com/kvm-riscv/linux master
I modified the QEMU command from the wiki to enable AIA:
./qemu/build/qemu-system-riscv64 -cpu rv64 -M virt,aia=aplic-imsic -m 512M \
-nographic -kernel ./build-riscv64/arch/riscv/boot/Image \
-initrd ./rootfs_kvm_riscv64.img \
-append "root=/dev/ram rw console=ttyS0 earlycon=sbi"
Then ran the guest with:
./apps/lkvm-static run -m 128 -c2 --console serial \
-p "console=ttyS0 earlycon" -k ./apps/Image --debug
In my testing, the guest boots successfully.
Could you please provide more details about your setup so I can reproduce
the issue?
Thanks,
Jiakai
More information about the linux-riscv
mailing list