# Vm base info configs
#
[base]
# Guest vm id.
id = 2
# Guest vm name.
name = "arceos"
# Virtualization type.
vm_type = 1
# The number of virtual CPUs.
cpu_num = 2
# The physical CPU ids.
phys_cpu_ids = [0x00, 0x100]

#
# Vm kernel configs
#
[kernel]
# The entry point of the kernel image.
entry_point = 0x7008_0000
# The location of image: "memory" | "fs".
# Load from memory.
image_location = "fs"
# The load address of the kernel image.
kernel_load_addr = 0x7008_0000
# The file path of the kernel image.
kernel_path = "/userdata/rootfs_overlay/guest/arceos/roc-rk3568-pc"
# The file path of the device tree blob (DTB).
# dtb_path = "/path/arceos-aarch64-rk3568_smp2.dtb"
# The load address of the device tree blob (DTB).
dtb_load_addr = 0x7000_0000
# Memory regions with format (`base_paddr`, `size`, `flags`, `map_type`).
# For `map_type`, 0 means `MAP_ALLOC`, 1 means `MAP_IDENTICAL`, 2 means `MAP_RESERVED`.
memory_regions = [
  [0x7000_0000, 0x1000_0000, 0x7, 1], # System RAM 1G MAP_IDENTICAL
]

#
# Device specifications
#
[devices]
# The interrupt mode.
interrupt_mode = "passthrough"

# Emu_devices.
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig.
emu_devices = []

# Pass-through devices.
# Name Base-Ipa Base-Pa Length Alloc-Irq.
passthrough_devices = [
    ["/"],
    #["/timer"],
]

# Passthrough addresses.
# Base-GPA  Length.
passthrough_addresses = [
    #[0x0, 0x10_f000]
]

# Devices that are not desired to be passed through to the guest
excluded_devices = [
   # ["/gic-v3"],
]
