forked from arceos-hypervisor/axvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux-qemu-aarch64-smp2.toml
70 lines (64 loc) · 1.85 KB
/
linux-qemu-aarch64-smp2.toml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Vm base info configs
#
[base]
# Guest vm id.
id = 1
# Guest vm name.
name = "linux-qemu"
# Virtualization type.
vm_type = 1
# The number of virtual CPUs.
cpu_num = 2
# Guest vm physical cpu sets.
phys_cpu_sets = [1, 2]
#
# Vm kernel configs
#
[kernel]
# The entry point of the kernel image.
entry_point = 0x8008_0000
# The location of image: "memory" | "fs".
# load from memory.
image_location = "memory"
# The file path of the kernel image.
kernel_path = "linux-6.6.62.bin"
# The load address of the kernel image.
kernel_load_addr = 0x8008_0000
# The file path of the device tree blob (DTB).
dtb_path = "linux-qemu-smp2.dtb"
# The load address of the device tree blob (DTB).
dtb_load_addr = 0x8000_0000
## load from file system
# image_location = "fs"
## The file path of the kernel image.
# kernel_path = "linux-arceos-aarch64.bin"
## The file path of the device tree blob (DTB).
# dtb_path = "linux-rk3588.dtb"
## The file path of the ramdisk image.
# ramdisk_path = ""
## The load address of the ramdisk image.
# ramdisk_load_addr = 0
## The path of the disk image.
# disk_path = "disk.img"
# Memory regions with format (`base_paddr`, `size`, `flags`, `map_type`).
# For `map_type`, 0 means `MAP_ALLOC`, 1 means `MAP_IDENTICAL`.
memory_regions = [
[0x8000_0000, 0x4000_0000, 0x7, 1], # System RAM 1G MAP_IDENTICAL
]
#
# Device specifications
#
[devices]
# Emu_devices.
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig.
emu_devices = []
# Pass-through devices.
passthrough_devices = [
["intc@8000000", 0x800_0000, 0x800_0000, 0x50_000, 0x1],
["pl011@9000000", 0x900_0000, 0x900_0000, 0x1000, 0x1],
["pl031@9010000", 0x901_0000, 0x901_0000, 0x1000, 0x1],
["pl061@9030000", 0x903_0000, 0x903_0000, 0x1000, 0x1],
# a003000.virtio_mmio virtio_mmio@a003000
# a003200.virtio_mmio virtio_mmio@a003200
["virtio_mmio", 0xa00_0000, 0xa00_0000, 0x4000, 0x1],
]