guest0: Failed to create
Opened this issue · 1 comments
./qemu/build/qemu-system-riscv64 -cpu rv64,h=off \
-machine virt -m 512M -smp 1 -nographic
-bios opensbi-h/build/platform/generic/firmware/fw_jump.elf
-kernel ./xvisor/build/vmm.bin
-initrd ./xvisor/build/disk.img
-append 'vmm.bootcmd="vfs mount initrd /;vfs run /boot.xscript;guest kick guest0 "' -s
OpenSBI v1.2
/ __ \ / | _ _ |
| | | | __ ___ _ __ | ( | |) || |
| | | | '_ \ / _ \ '_ \ ___ | _ < | |
| || | |) | __/ | | |) | |) || |
_/| ./ _|| ||/|____/|
| |
|_|
sbi_hext_init: Hypervisor extension emulation enabled.
Platform Name : riscv-virtio,qemu
Platform Features : medeleg
Platform HART Count : 1
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 10000000Hz
Platform Console Device : uart8250
Platform HSM Device : ---
Platform PMU Device : ---
Platform Reboot Device : sifive_test
Platform Shutdown Device : sifive_test
Firmware Base : 0x80000000
Firmware Size : 256 KB
Firmware RW Offset : 0x20000
Runtime SBI Version : 1.0
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*
Domain0 Region00 : 0x0000000002000000-0x000000000200ffff M: (I,R,W) S/U: ()
Domain0 Region01 : 0x0000000080000000-0x000000008001ffff M: (R,X) S/U: ()
Domain0 Region02 : 0x0000000080020000-0x000000008003ffff M: (R,W) S/U: ()
Domain0 Region03 : 0x000000009fc00000-0x000000009fffffff M: (R,W,X) S/U: (R)
Domain0 Region04 : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X)
Domain0 Next Address : 0x0000000080200000
Domain0 Next Arg1 : 0x0000000082200000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART Priv Version : v1.12
Boot HART Base ISA : rv64imafdc
Boot HART ISA Extensions : time,sstc
Boot HART PMP Count : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 54
Boot HART MHPM Count : 16
Boot HART MIDELEG : 0x0000000000000222
Boot HART MEDELEG : 0x000000000000b109
Hypervisor Extension : Emulated
Shadow PT Space Base : 0x9fc00000
Shadow PT Space Size : 1024 pages
Xvisor v0.3.2-24-gc21af932 (Apr 15 2024 16:01:48)
INIT: host address space
INIT: vapool: base=0x0000000010000000 size=33554432
INIT: vapool: hkbase=0x0000000010158000 hksize=131072
INIT: ram: bank0 phys=0x0000000080000000 size=536870912
INIT: ram: bank0 hkbase=0x0000000010178000 hksize=16384
INIT: ram_reserve: phys=0x0000000080200000 size=884736
INIT: ram_reserve: phys=0x0000000080358000 size=376832
INIT: ram_reserve: phys=0x00000000802D8000 size=524288
INIT: vapool_reserve: virt=0x0000000010000000 size=1785856
INIT: ram_reserve: phys=0x0000000082200000 size=8192
INIT: heap management
INIT: device tree
INIT: device tree reserved-memory
INIT: ram_reserve: phys=0x0000000080020000 size=131072
INIT: ram_reserve: phys=0x0000000080000000 size=131072
INIT: ram_reserve: phys=0x000000009FC00000 size=4194304
INIT: DMA heap management
INIT: CPU nascent
INIT: SBI specification v1.0 detected
INIT: SBI implementation ID=0x1 Version=0x10002
INIT: SBI TIME extension detected
INIT: SBI IPI extension detected
INIT: SBI RFENCE extension detected
INIT: SBI SRST extension detected
INIT: board nascent
INIT: nascent funtions
INIT: page pool
INIT: exception table
INIT: discover secondary CPUs
INIT: using SBI SMP operations
INIT: per-CPU areas
INIT: CPU hotplug
INIT: host irq subsystem
INIT: riscv-intc: registered 64 local interrupts
INIT: plic: plic@c000000: devices=97 contexts=1/2
INIT: CPU early
INIT: early_params: vmm.bootcmd="vfs mount initrd /;vfs run /boot.xscript;guest kick guest0 "
INIT: riscv-sbi-ipi: registered IPI domain
INIT: board early
INIT: early funtions
INIT: standard I/O
INIT: clocksource manager
INIT: riscv-timer: registered clocksource @ 10000000Hz using Sstc
INIT: clockchip manager
INIT: hypervisor timer
INIT: hypervisor soft delay
INIT: hypervisor shared memory
INIT: hypervisor manager
INIT: synchronus inter-processor interrupts
INIT: hypervisor scheduler
INIT: asynchronus inter-processor interrupts
INIT: hypervisor threads
INIT: workqueue framework
INIT: wallclock subsystem
INIT: start secondary CPUs
INIT: command manager
INIT: device driver framework
INIT: device emulation framework
INIT: character device framework
INIT: iommu framework
INIT: hypervisor modules
INIT: block device framework
INIT: network switch framework
INIT: network port framework
initrd: RBD created at 0x88200000 - 0x8a200000
INIT: CPU final
INIT: board final
INIT: final functions
INIT: CPU0 online
INIT: brought-up 1 CPUs
INIT: freeing init memory 28K
INIT: change stdio device to serial@10000000
INIT: syncup wallclock using rtc@101000
INIT: bootcmd: vfs mount initrd /
Trying: cpio ext4
Mounted initrd using ext4 at /
INIT: bootcmd: vfs run /boot.xscript
Created default shared memory
guest0: Failed to create
Error: command guest failed (code -1)
line7: failed (error -1)
INIT: bootcmd: guest kick guest0
Failed to find guest
Error: command guest failed (code -3)
XVisor#
by trying the OpenSBI-H, I have this issue, anything thougths ?