Hart isolation configuration failure (error -3) with OpenSBI 1.8 on QEMU 10.1.3 rva22s64/rva23s64 profiles
Xiang W
wxjstz at 126.com
Tue Jan 6 18:48:06 PST 2026
在 2026-01-05一的 18:42 +0100,Thomas Perrot写道:
> Hello,
>
> Happy New Year!
>
> I'm facing a hart isolation configuration error when running OpenSBI
> 1.8 on QEMU 10.1.3 with the RISC-V application profiles rva22s64 and
> rva23s64:
>
> init_coldboot: hart isolation configure failed (error -3)
>
> No issue occurs when using the rv64 profile. The system continues to
> boot after the error, but I'd like to understand the root cause.
>
> I haven't tested OpenSBI 1.8 on real hardware yet - that's my next
> step.
>
> Is there a known QEMU issue? Is there a recommended workaround besides
> using rv64?
>
> Below is the complete trace:
>
> qemu-system-riscv64 -device virtio-net-
> device,netdev=net0,mac=52:54:00:12:35:02 -netdev
> user,id=net0,hostfwd=tcp:127.0.0.1:2222-:22,hostfwd=tcp:127.0.0.1:2323-
> :23,tftp=/src/build/tmp/deploy/images/qemuriscv64 -object rng-
> random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -
> drive id=disk0,file=/src/build/tmp/deploy/images/qemuriscv64/core-
> image-minimal-qemuriscv64.rootfs-20260105173847.ext4,if=none,format=raw
> -device virtio-blk-device,drive=disk0 -device qemu-xhci -device usb-
> tablet -device usb-kbd -machine virt -cpu rva23s64 -smp 4 -m 256 -
QEMU disables PMP by default; the following option needs to be added.
-cpu rva23s64,pmp=true
Regards,
Xiang W
> snapshot -serial mon:stdio -serial null -nographic -device bochs-
> display -bios /src/build/tmp/deploy/images/qemuriscv64/fw_jump.elf -
> kernel /src/build/tmp/deploy/images/qemuriscv64/Image -append
> 'root=/dev/vda rw mem=256M ip=dhcp console=ttyS0 console=hvc0
> earlycon=sbi swiotlb=0
>
> OpenSBI v1.8
> ____ _____ ____ _____
> / __ \ / ____| _ \_ _|
> | | | |_ __ ___ _ __ | (___ | |_) || |
> | | | | '_ \ / _ \ '_ \ \___ \| _ < | |
> | |__| | |_) | __/ | | |____) | |_) || |_
> \____/| .__/ \___|_| |_|_____/|____/_____|
> | |
> |_|
>
> Platform Name : riscv-virtio,qemu
> Platform Features : medeleg
> Platform HART Count : 4
> Platform HART Protection : ---
> Platform IPI Device : aclint-mswi
> Platform Timer Device : aclint-mtimer @ 10000000Hz
> Platform Console Device : uart8250
> Platform HSM Device : ---
> Platform PMU Device : ---
> Platform Reboot Device : syscon-reboot
> Platform Shutdown Device : syscon-poweroff
> Platform Suspend Device : ---
> Platform CPPC Device : ---
> Firmware Base : 0x80000000
> Firmware Size : 357 KB
> Firmware RW Offset : 0x40000
> Firmware RW Size : 101 KB
> Firmware Heap Offset : 0x4d000
> Firmware Heap Size : 49 KB (total), 0 KB (reserved), 13 KB
> (used), 35 KB (free)
> Firmware Scratch Size : 4096 B (total), 1464 B (used), 2632 B
> (free)
> Runtime SBI Version : 3.0
> Standard SBI Extensions :
> time,rfnc,ipi,base,hsm,srst,pmu,dbcn,fwft,legacy,dbtr,sse
> Experimental SBI Extensions : none
>
> Domain0 Name : root
> Domain0 Boot HART : 0
> Domain0 HARTs : 0*,1*,2*,3*
> Domain0 Region00 : 0x0000000080040000-0x000000008005ffff M:
> (F,R,W) S/U: ()
> Domain0 Region01 : 0x0000000080000000-0x000000008003ffff M:
> (F,R,X) S/U: ()
> Domain0 Region02 : 0x0000000000100000-0x0000000000100fff M:
> (I,R,W) S/U: (R,W)
> Domain0 Region03 : 0x0000000010000000-0x0000000010000fff M:
> (I,R,W) S/U: (R,W)
> Domain0 Region04 : 0x0000000002000000-0x000000000200ffff M:
> (I,R,W) S/U: ()
> Domain0 Region05 : 0x000000000c400000-0x000000000c5fffff M:
> (I,R,W) S/U: (R,W)
> Domain0 Region06 : 0x000000000c000000-0x000000000c3fffff M:
> (I,R,W) S/U: (R,W)
> Domain0 Region07 : 0x0000000000000000-0xffffffffffffffff M:
> () S/U: (R,W,X)
> Domain0 Next Address : 0x0000000080200000
> Domain0 Next Arg1 : 0x0000000082200000
> Domain0 Next Mode : S-mode
> Domain0 SysReset : yes
> Domain0 SysSuspend : yes
>
> Boot HART ID : 0
> Boot HART Domain : root
> Boot HART Priv Version : v1.12
> Boot HART Base ISA : rv64imafdcbvh
> Boot HART ISA Extensions :
> smstateen,sscofpmf,sstc,zicntr,zihpm,zicboz,zicbom,svpbmt,sdtrig,svade,
> smnpm,ssstateen
> Boot HART PMP Count : 0
> Boot HART PMP Granularity : 0 bits
> Boot HART PMP Address Bits : 0
> Boot HART MHPM Info : 16 (0x0007fff8)
> Boot HART Debug Triggers : 2 triggers
> Boot HART MIDELEG : 0x0000000000003666
> Boot HART MEDELEG : 0x0000000000f4b509
> init_coldboot: hart isolation configure failed (error -3)
>
> Kind regards,
> Thomas Perrot
More information about the opensbi
mailing list