Skip to contentSkip to conversation

Hart isolation configuration failure (error -3) with OpenSBI 1.8 on QEMU 10.1.3 rva22s64/rva23s64 profiles

DISCUSSION Thomas Perrot 5 participants 9 messages Jan 5 – Jan 9

lore
Share & tools
lore
#0 lore raw

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 - 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

Signature · 3 lines
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#1 lore raw
Quoted 11 lines · 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)

Quoted 8 lines

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?

I had tested on real SiFive Unleashed and StarFive VisionFive 2 board along with QEMU virt machine and QEMU sifive_u machine.

On QEMU virt, I had only tested rv64 and max CPU types which worked fine. I guess I should include rva22s64 and rva23s64 CPU types in my testing as well.

Quoted 80 lines

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 - 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

Quoted 16 lines

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)

Yes, I was able to reproduce this failure on the latest QEMU virt machine with rva22s64 CPU type.

Regards,
Anup

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#2 lore raw
In reply to Thomas Perrot
Quoted 99 lines · 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 - 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

Quoted 15 lines

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)

Thinking about this more, this looks like QEMU bug because there are no PMP entries for rva22s64 and rva23s64 which is why there is no hart isolation mechanism hence the hart isolation configure fails.

Regards,
Anup

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#3 lore raw
In reply to Thomas Perrot
Quoted 21 lines · 在 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:

Quoted 9 lines

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

Quoted 86 lines

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

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#4 lore raw

Hello Xiang,

Quoted 39 lines · Xiang W
Quoted 25 lines · 在 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:

Quoted 13 lines

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 -

Quoted 4 lines

QEMU disables PMP by default; the following option needs to be added.

-cpu rva23s64,pmp=true

Thank you. With the additional option, the issue no longer occurs.

Kind regards,
Thomas Perrot

Quoted 99 lines

Regards,
Xiang W

Quoted 96 lines

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,sv ade,
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

Signature · 3 lines
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#5 lore raw

Hi Thomas,

Quoted 43 lines · Thomas Perrot

Hello Xiang,

Quoted 39 lines · Xiang W
Quoted 38 lines · 在 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 -

Quoted 6 lines
Quoted 4 lines

QEMU disables PMP by default; the following option needs to be added.

-cpu rva23s64,pmp=true

Thank you. With the additional option, the issue no longer occurs.

I have done an incremental OpenSBI v1.8.1 release to address this issue. With this incremental release, you don't have to explicitly pass "pmp=true" to rva22s64 and rva23s64 CPU types in QEMU.

Regards,
Anup

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#6 lore raw
Quoted 51 lines · Anup Patel

Hi Thomas,

Quoted 48 lines · Thomas Perrot

Hello Xiang,

Quoted 43 lines · Xiang W
Quoted 25 lines · 在 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:

Quoted 13 lines

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

Quoted 6 lines
Quoted 1 line

Thank you. With the additional option, the issue no longer occurs.

I have done an incremental OpenSBI v1.8.1 release to address this issue. With this incremental release, you don't have to explicitly pass "pmp=true" to rva22s64 and rva23s64 CPU types in QEMU.

Seems like we don't need this patch I sent a few days ago then:

"[PATCH] target/riscv/cpu.c: enable PMP by default for profile CPUs"

https://lore.kernel.org/qemu-devel/[email protected]/

We can leave this patch alone. We can also leave the update to OpenSBI 1.8 alone as well and update to 1.8.1 to get the fix.

Thanks,

Daniel

Quoted 4 lines

Regards,
Anup

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#7 lore raw
Quoted 65 lines · Daniel Henrique Barboza
Quoted 51 lines · Anup Patel

Hi Thomas,

Quoted 48 lines · Thomas Perrot

Hello Xiang,

Quoted 43 lines · Xiang W
Quoted 25 lines · 在 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:

Quoted 13 lines

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

Quoted 6 lines
Quoted 1 line

Thank you. With the additional option, the issue no longer occurs.

I have done an incremental OpenSBI v1.8.1 release to address this issue. With this incremental release, you don't have to explicitly pass "pmp=true" to rva22s64 and rva23s64 CPU types in QEMU.

Seems like we don't need this patch I sent a few days ago then:

Quoted 7 lines

"[PATCH] target/riscv/cpu.c: enable PMP by default for profile CPUs"

https://lore.kernel.org/qemu-devel/[email protected]/

We can leave this patch alone. We can also leave the update to OpenSBI 1.8 alone as well and update to 1.8.1 to get the fix.

I think the QEMU patch is still needed because without PMP there is nothing to protect M-mode firmware (OpenSBI) from lower privilege modes.

Regards,
Anup

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
#8 lore raw

Hello,

Quoted 88 lines · Anup Patel
Quoted 86 lines · Daniel Henrique Barboza
Quoted 65 lines · Anup Patel

Hi Thomas,

Quoted 61 lines · Thomas Perrot

Hello Xiang,

Quoted 56 lines · Xiang W
Quoted 42 lines · 在 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

Quoted 8 lines

-
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

Quoted 7 lines
Quoted 2 lines

Thank you. With the additional option, the issue no longer occurs.

I have done an incremental OpenSBI v1.8.1 release to address this issue. With this incremental release, you don't have to explicitly pass "pmp=true" to rva22s64 and rva23s64 CPU types in QEMU.

Seems like we don't need this patch I sent a few days ago then:

"[PATCH] target/riscv/cpu.c: enable PMP by default for profile CPUs"

https://lore.kernel.org/qemu-devel/[email protected]/

Quoted 8 lines
Quoted 3 lines

We can leave this patch alone. We can also leave the update to OpenSBI
1.8 alone as well and update to 1.8.1 to get the fix.

I think the QEMU patch is still needed because without PMP there is nothing to protect M-mode firmware (OpenSBI) from lower privilege modes.

Thank you for the update.

Kind regards,
Thomas Perrot

Quoted 2 lines

Regards,
Anup

Signature · 3 lines
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi