Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions riscv64/build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ git clone --depth 1 --branch $KERNEL_TAG https://github.com/torvalds/linux.git
pushd linux
# Enable kvm module instead of inserting manually
sed -i "s|^CONFIG_KVM=.*|CONFIG_KVM=y|g" arch/riscv/configs/defconfig
# Enable legacy SBI calls and activate vcpu_sbi_ext_v01 for kvm.
echo "CONFIG_RISCV_SBI_V01=y" >> arch/riscv/configs/defconfig
Copy link
Member

@RuoqingHe RuoqingHe Sep 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is need for KVM to process SBI legacy interfaces, and put vcpu_sbi_ext_v01 into working, would you please document this line a bit, like add a comment above, and add some descriptions in the commit message 🙂

make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- defconfig && \
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- -j$(nproc)
mv arch/riscv/boot/Image $OUTPUT
Expand Down
Loading