Skip to content

Commit 80233f4

Browse files
authored
Merge pull request arceos-hypervisor#20 from arceos-hypervisor/guoweikang/adapt_axdevice
axvm to support axdevice
2 parents 5d3d45d + c0e8598 commit 80233f4

File tree

6 files changed

+36
-6
lines changed

6 files changed

+36
-6
lines changed

arceos-vmm/configs/arceos-aarch64.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ memory_regions = [
1616
[0x900_0000, 0x1000, 0x17], # pl011 (Uart) 4K 0b10111 R|W|DEVICE
1717
[0x901_0000, 0x1000, 0x17], # pl031 (timer) 4K 0b10111 R|W|DEVICE
1818
[0xfed0_0000, 0x1000, 0x17], # HPET 4K 0b10111 R|W|DEVICE
19-
]
19+
]
20+
21+
# Emu_devices
22+
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig
23+
emu_devices = [
24+
]

arceos-vmm/configs/arceos-riscv64.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ memory_regions = [
1111
[0x0c00_0000, 0x21_0000, 0x13], # PLIC 0x21_0000 0b10011 R|W|DEVICE
1212
[0x1000_0000, 0x1000, 0x13], # UART 4K 0b10011 R|W|DEVICE
1313
]
14+
15+
# Emu_devices
16+
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig
17+
emu_devices = [
18+
]

arceos-vmm/configs/arceos-x86_64.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ memory_regions = [
1616
[0xfec0_0000, 0x1000, 0x17], # IO APIC 4K 0b10111
1717
[0xfee0_0000, 0x1000, 0x17], # Local APIC 4K 0b10111
1818
[0xfed0_0000, 0x1000, 0x17], # HPET 4K 0b10111
19-
]
19+
]
20+
21+
# Emu_devices
22+
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig
23+
emu_devices = [
24+
]

arceos-vmm/configs/nimbos-aarch64.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ kernel_load_addr = 0x4008_0000
1313
# Memory regions with format (`base_paddr`, `size`, `flags`).
1414
memory_regions = [
1515
[0x4000_0000, 0x100_0000, 0x7], # Low RAM 16M 0b00111 R|W|EXECUTE
16-
[0x800_0000, 0x10_000, 0x17], # intc 4K 0b10111 R|W|DEVICE
1716
[0x801_0000, 0x10_000, 0x17], # intc 4K 0b10111 R|W|DEVICE
1817
[0x900_0000, 0x1000, 0x17], # pl011 (Uart) 4K 0b10111 R|W|DEVICE
1918
[0x901_0000, 0x1000, 0x17], # pl031 (timer) 4K 0b10111 R|W|DEVICE
2019
[0xfed0_0000, 0x1000, 0x17], # HPET 4K 0b10111 R|W|DEVICE
21-
]
20+
]
21+
22+
# Emu_devices
23+
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig
24+
emu_devices = [
25+
#["vgicd-v2", 0x800_0000, 0x10_000, 25, 1, [2]] # Vgicdv2 4k irq-25 EmuDeviceTGicdV2 config: vcpu_num
26+
]

arceos-vmm/configs/nimbos-riscv64.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ memory_regions = [
1515
[0x9000_0000, 0x100_0000, 0xf], # Low RAM 16M 0b1111 R|W|EXECUTE|U
1616
[0x0c00_0000, 0x21_0000, 0x13], # PLIC 0x21_0000 0b10011 R|W|DEVICE
1717
[0x1000_0000, 0x1000, 0x13], # UART 4K 0b10011 R|W|DEVICE
18-
]
18+
]
19+
20+
# Emu_devices
21+
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig
22+
emu_devices = [
23+
]

arceos-vmm/configs/nimbos-x86_64.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ memory_regions = [
1616
[0xfec0_0000, 0x1000, 0x17], # IO APIC 4K 0b10111 R|W|DEVICE
1717
[0xfee0_0000, 0x1000, 0x17], # Local APIC 4K 0b10111 R|W|DEVICE
1818
[0xfed0_0000, 0x1000, 0x17], # HPET 4K 0b10111 R|W|DEVICE
19-
]
19+
]
20+
21+
# Emu_devices
22+
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig
23+
emu_devices = [
24+
]

0 commit comments

Comments
 (0)