1
+ # Vm base info configs
2
+ #
3
+ [base ]
4
+ # Guest vm id.
5
+ id = 1
6
+ # Guest vm name.
7
+ name = " linux"
8
+ # Virtualization type.
9
+ vm_type = 1
10
+ # The number of virtual CPUs.
11
+ cpu_num = 4
12
+ # Guest vm physical cpu sets.
13
+ # phys_cpu_sets = [1, 2, 4, 8, 16, 32, 64, 128]
14
+ phys_cpu_ids = [0x00 , 0x100 , 0x200 , 0x300 ]
15
+ phys_cpu_sets = [1 , 2 , 4 , 8 ]
16
+
17
+ #
18
+ # Vm kernel configs
19
+ #
20
+ [kernel ]
21
+ # The entry point of the kernel image.
22
+ entry_point = 0x1008_0000
23
+ # The load address of the kernel image.
24
+ kernel_load_addr = 0x1008_0000
25
+ # The load address of the device tree blob (DTB).
26
+ dtb_load_addr = 0x1000_0000
27
+ # The location of image: "memory" | "fs".
28
+ # load from memory
29
+ image_location = " memory"
30
+ # The file path of the kernel image.
31
+ kernel_path = " /path/to/linux-aarch64.bin"
32
+ # The file path of the device tree blob (DTB).
33
+ dtb_path = " /path/to/dtb"
34
+
35
+ # load from file system.
36
+ # image_location = "fs".
37
+ # # The file path of the kernel image.
38
+ # kernel_path = "linux-arceos-aarch64.bin"
39
+ # # The file path of the device tree blob (DTB).
40
+ # dtb_path = "linux-rk3588.dtb"
41
+
42
+ # # The file path of the ramdisk image.
43
+ # ramdisk_path = ""
44
+ # # The load address of the ramdisk image.
45
+ # ramdisk_load_addr = 0
46
+ # # The path of the disk image.
47
+ # disk_path = "disk.img"
48
+
49
+ # Memory regions with format (`base_paddr`, `size`, `flags`, `map_type`).
50
+ # For `map_type`, 0 means `MAP_ALLOC`, 1 means `MAP_IDENTICAL`.
51
+ memory_regions = [
52
+ # [0x0, 0x10_f000, 0x7, 1], # passthrough uncahed MAP_IDENTICAL
53
+ [0x940_0000 , 0xe6c00000 , 0x7 , 1 ], # ram 3G MAP_IDENTICAL
54
+ # [0x4000_0000, 0x4000_0000, 0x7, 1], # ram 1G MAP_IDENTICAL
55
+ ]
56
+
57
+ #
58
+ # Device specifications
59
+ #
60
+ [devices ]
61
+ # Emu_devices.
62
+ # Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig.
63
+ emu_devices = []
64
+
65
+ # Pass-through devices.
66
+ # Name Base-Ipa Base-Pa Length Alloc-Irq.
67
+ passthrough_devices = [
68
+ [
69
+ " ramoops" ,
70
+ 0x11_0000 ,
71
+ 0x11_0000 ,
72
+ 0xf_0000 ,
73
+ 0x17 ,
74
+ ],
75
+ [
76
+ " sram" ,
77
+ 0x10_f000 ,
78
+ 0x10_f000 ,
79
+ 0x1000 ,
80
+ 0x17 ,
81
+ ],
82
+ [
83
+ " gpu" ,
84
+ 0xfb00_0000 ,
85
+ 0xfb00_0000 ,
86
+ 0x20_0000 ,
87
+ 0x17 ,
88
+ ],
89
+ [
90
+ " uart8250 UART" ,
91
+ 0xfd00_0000 ,
92
+ 0xfd00_0000 ,
93
+ 0x200_0000 ,
94
+ 0x17 ,
95
+ ],
96
+ [
97
+ " usb" ,
98
+ 0xfc00_0000 ,
99
+ 0xfc00_0000 ,
100
+ 0x100_0000 ,
101
+ 0x17 ,
102
+ ],
103
+ [
104
+ " uncached" ,
105
+ 0x0 ,
106
+ 0x0 ,
107
+ 0x10_f000 ,
108
+ 0x17 ,
109
+ ],
110
+ # [
111
+ # "gicr",
112
+ # 0xfe68_0000,
113
+ # 0xfe68_0000,
114
+ # 0x10_0000,
115
+ # 0x1,
116
+ # ],
117
+ # [
118
+ # "uncached",
119
+ # 0xf300_0000,
120
+ # 0xf300_0000,
121
+ # 0x100_0000,
122
+ # 0x17,
123
+ # ],
124
+ # [
125
+ # "uncached",
126
+ # 0xf400_0000,
127
+ # 0xf400_0000,
128
+ # 0x100_0000,
129
+ # 0x17,
130
+ # ],
131
+ # [
132
+ # "uncached",
133
+ # 0xa_4100_0000,
134
+ # 0xa_4100_0000,
135
+ # 0x40_0000,
136
+ # 0x17,
137
+ # ],
138
+ # [
139
+ # "uncached",
140
+ # 0xa_40c0_0000,
141
+ # 0xa_40c0_0000,
142
+ # 0x40_0000,
143
+ # 0x17,
144
+ # ],
145
+ # [
146
+ # "uncached",
147
+ # 0x920_0000,
148
+ # 0x920_0000,
149
+ # 0x20_0000,
150
+ # 0x17,
151
+ # ],
152
+ ]
153
+
154
+
155
+ # [0xfe600000, 0x10000], # gic-v3 gicd
156
+ # [0xfe680000, 0x10_0000], # gic-v3 gicr
157
+
158
+ # [0xa41000000, 0x400000],
159
+ # [0xa40c00000, 0x400000],
160
+ # [0xf4000000,0x1000000],
161
+ # [0xf3000000,0x1000000],
0 commit comments