forked from xvisor/xvisor
-
Notifications
You must be signed in to change notification settings - Fork 58
/
riscv32-nested-mmu-test-qemu.txt
45 lines (33 loc) · 1.65 KB
/
riscv32-nested-mmu-test-qemu.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Xvisor RISC-V 32bit Nested MMU Test on QEMU Virt Machine
This section of readme explains how to build & run Xvisor RISC-V 32bit
nested MMU test-suite on Virt machine emulated by QEMU RISC-V.
Please follow the steps below for nested MMU test-suite on QEMU virt
machine (v8 or higher):
[1. Build environment for Xvisor]
# CROSS_COMPILE=riscv64-unknown-linux-gnu-
[2. GoTo Xvisor source directory]
# cd <xvisor_source_directory>
[3. Configure Xvisor with Generic-32bit default settings]
# make ARCH=riscv generic-32b-defconfig
[4. Enable Nested MMU test-suite for Xvisor]
# make ARCH=riscv menuconfig
(Select/enable "Library Options" ==> "White-box testing library")
[5. Build Xvisor & DTBs]
# make
[6. GoTo OpenSBI source directory]
# cd <opensbi_source_directory>
[7. Build OpenSBI]
# make PLATFORM=generic PLATFORM_RISCV_XLEN=32
[8. GoTo Xvisor source directory]
# cd <xvisor_source_directory>
[9. Run nested MMU test-suite]
# qemu-system-riscv32 -M virt -m 512M -nographic -bios <opensbi_source_directory>/build/platform/generic/firmware/fw_jump.bin -kernel ./build/vmm.bin -append 'vmm.bootcmd="wboxtest run_groups 1 nested_mmu"'
OR
# qemu-system-riscv32 -M virt -m 512M -nographic -bios <opensbi_source_directory>/build/platform/generic/firmware/fw_jump.bin -kernel ./build/vmm.bin
XVisor# wboxtest run_groups 1 nested_mmu
(Note: replace all <> brackets based on your workspace)
(Note: some of the above steps will need to be adapted for other
types of RISC-V host)
(Note: for more info on your desired RISC-V host refer docs/riscv/)
(Note: you are free to change the ordering of above steps based
on your workspace)