@@ -17,24 +17,24 @@ phys_cpu_ids = [0]
1717#
1818[kernel ]
1919# The entry point of the kernel image.
20- entry_point = 0x8020_0000
20+ entry_point = 0x9000_0000
2121# The location of image: "memory" | "fs".
2222# load from memory.
23- image_location = " fs "
23+ image_location = " memory "
2424# The file path of the kernel image.
2525# kernel_path = "linux-6.6.62.bin"
26- kernel_path = " /guest /qemu-riscv64"
26+ kernel_path = " /path/tmp/images/qemu_riscv64_linux /qemu-riscv64"
2727# The load address of the kernel image.
28- kernel_load_addr = 0x8020_0000
28+ kernel_load_addr = 0x9000_0000
2929# The file path of the device tree blob (DTB).
30- dtb_path = " /guest/ linux-aarch64 -qemu-smp1.dtb"
30+ dtb_path = " /path/tmp/configs/ linux-riscv64 -qemu-smp1.dtb"
3131# The load address of the device tree blob (DTB).
32- dtb_load_addr = 0x8000_0000
32+ dtb_load_addr = 0x9200_0000
3333
3434# Memory regions with format (`base_paddr`, `size`, `flags`, `map_type`).
3535# For `map_type`, 0 means `MAP_ALLOC`, 1 means `MAP_IDENTICAL`.
3636memory_regions = [
37- [ 0x8000_0000 , 0x1000_0000 , 0x7 , 1 ], # System RAM 1G MAP_IDENTICAL
37+ [ 0x9000_0000 , 0x4000_0000 , 0x7 , 2 ], # System RAM 1G MAP_IDENTICAL
3838]
3939
4040#
@@ -44,27 +44,24 @@ memory_regions = [
4444# Pass-through devices.
4545# Name Base-Ipa Base-Pa Length Alloc-Irq.
4646passthrough_devices = [
47- [" /" ],
48- # ["/timer"],
47+ # ["/soc/serial@10000000", 0x1000_0000, 0x1000_0000, 0x1000, 33],
4948]
5049
5150# Passthrough addresses.
5251# Base-GPA Length.
5352passthrough_addresses = [
54- # [0x28041000, 0x100_0000]
53+ [0x1000_0000 , 0x1000 ], # uart
54+ [0x1000_1000 , 0x8000 ], # virtio-mmio
5555]
5656
5757# Devices that are not desired to be passed through to the guest
5858excluded_devices = [
59- # ["/gic-v3"],
6059]
6160
6261# Emu_devices.
6362# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig.
6463emu_devices = [
65- # ["gppt-gicd", 0x0800_0000, 0x1_0000, 0, 0x21, []],
66- # ["gppt-gicr", 0x080a_0000, 0x2_0000, 0, 0x20, [1, 0x2_0000, 0]], # 1 vcpu, stride 0x20000, starts with pcpu 0
67- # ["gppt-gits", 0x0808_0000, 0x2_0000, 0, 0x22, [0x0808_0000]], # host_gits_base
64+ [" plic" , 0x0c00_0000 , 0x60_0000 , 0 , 0x30 , [2 ]], # [context_num]
6865]
6966
7067interrupt_mode = " passthrough"
0 commit comments