Skip to content

Commit 3d62469

Browse files
committed
content: Add document to boot VM with AIA
Add script to boot a VM that meets RVA23 standard. Signed-off-by: Ruoqing He <[email protected]>
1 parent b7a226f commit 3d62469

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/virtualization/cloud-hypervisor/heterogeneous-runner.md

+22
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,25 @@ popd
166166

167167
After kernel is properly installed, you may power it off and start it again with
168168
AIA enabled.
169+
170+
#### Boot with AIA
171+
172+
The new kernel should be able to boot with AIA in place, change your start
173+
script like this:
174+
175+
```bash
176+
# Change memory and cores that fits in your host
177+
qemu-system-riscv64 \
178+
-machine virt,aia=aplic-imsic \
179+
-nographic \
180+
-m 96G \
181+
-smp 16 \
182+
-bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin \
183+
-kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf \
184+
-device virtio-net-device,netdev=eth0 \
185+
-netdev user,id=eth0,hostfwd=tcp::12055-:22 \
186+
-device virtio-rng-pci \
187+
-drive file=$1,format=raw,if=virtio \
188+
```
189+
190+
Now the VM is ready for type II hypervisor development.

0 commit comments

Comments
 (0)