Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions os/arceos/modules/axruntime/runtime.ld
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ SECTIONS {
KEEP(*(.driver.register*))
__edriver_register = .;

. = ALIGN(0x10);
__saxdevice_factory = .;
KEEP(*(.axdevice.factory*))
__eaxdevice_factory = .;

. = ALIGN(0x10);
_ex_table_start = .;
KEEP(*(__ex_table))
Expand Down
71 changes: 71 additions & 0 deletions os/axvisor/configs/vms/qemu/aarch64/linux-smp1-gppt-gic.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Vm base info configs
#
[base]
# Guest vm id.
id = 1
# Guest vm name.
name = "linux-qemu-gppt-gic"
# Virtualization type.
vm_type = 1
# The number of virtual CPUs.
cpu_num = 1
# Guest vm physical cpu sets.
phys_cpu_ids = [0]

#
# Vm kernel configs
#
[kernel]
# The entry point of the kernel image.
entry_point = 0x8020_0000
# The location of image: "memory" | "fs".
# Load from file system.
image_location = "fs"
# The file path of the kernel image.
kernel_path = "/guest/linux/linux-qemu"
# The load address of the kernel image.
kernel_load_addr = 0x8020_0000
# The file path of the device tree blob (DTB).
# dtb_path = "tmp/linux-aarch64-qemu-smp1.dtb"
# The load address of the device tree blob (DTB).
dtb_load_addr = 0x8000_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 = [
[0x8000_0000, 0x1000_0000, 0x7, 1], # System RAM 1G MAP_IDENTICAL
]

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

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

# Passthrough addresses.
# Base-GPA Length.
passthrough_addresses = [
#[0x28041000, 0x100_0000]
]

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

# Emu_devices.
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig.
emu_devices = [
# Keep this case focused on the first native DeviceOps migration target.
# ["gppt-gicd", 0x0800_0000, 0x1_0000, 0, 0x21, []],
["gppt-gicr", 0x080a_0000, 0x2_0000, 0, 0x20, [1, 0x2_0000, 0]], # 1 vcpu, stride 0x20000, starts with pcpu 0
# ["gppt-gits", 0x0808_0000, 0x2_0000, 0, 0x22, [0x0808_0000]], # host_gits_base
]
Loading
Loading