Skip to content

Commit 4b0aead

Browse files
BillXiangBillXiang
authored andcommitted
Enable SBI_V01 for RISCV64 kernel
Enable legacy SBI calls and activate vcpu_sbi_ext_v01 for kvm. Signed-off-by: BillXiang <[email protected]>
1 parent 5447a4e commit 4b0aead

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

riscv64/build_kernel.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ git clone --depth 1 --branch $KERNEL_TAG https://github.com/torvalds/linux.git
1616
pushd linux
1717
# Enable kvm module instead of inserting manually
1818
sed -i "s|^CONFIG_KVM=.*|CONFIG_KVM=y|g" arch/riscv/configs/defconfig
19+
# Enable legacy SBI calls and activate vcpu_sbi_ext_v01 for kvm.
20+
echo "CONFIG_RISCV_SBI_V01=y" >> arch/riscv/configs/defconfig
1921
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- defconfig && \
2022
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- -j$(nproc)
2123
mv arch/riscv/boot/Image $OUTPUT

0 commit comments

Comments
 (0)