Skip to content

Commit d2e1651

Browse files
authored
Merge pull request #205 from syswonder/dev
Merge new features to main for hvisor-v0.3 release
2 parents 06a79e5 + 4450a9b commit d2e1651

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+9906
-522
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
/images/*
77
/platform/*/*/image/kernel/*
88
/platform/*/*/image/virtdisk/*
9+
/platform/*/*/image/bootloader/out
10+
/platform/*/*/image/iso/boot/kernel/*
11+
/platform/*/*/image/iso/boot/hvisor
912
/tools/hvisor
1013
/tmp
1114
*.mod.[co]

Cargo.lock

Lines changed: 35 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ heapless = { version = "0.8.0 "}
2323

2424
[target.'cfg(target_arch = "aarch64")'.dependencies]
2525
aarch64-cpu = "9.4.0"
26-
psci = { version = "0.1.0", default-features = false, features = ["smc"]}
26+
psci = { version = "0.1.0", default-features = false, features = ["smc"] }
2727

2828
[target.'cfg(target_arch = "riscv64")'.dependencies]
2929
sbi-rt = { version = "0.0.3", features = ["legacy"] }
@@ -38,10 +38,11 @@ riscv-pac = "0.2.0"
3838
loongArch64 = "0.2.5"
3939

4040
[target.'cfg(target_arch = "x86_64")'.dependencies]
41-
x86 = "0.52.0"
41+
x86 = "=0.52.0"
4242
x86_64 = "=0.14.10"
43-
x2apic = "0.4.3"
44-
raw-cpuid = "10.7.0"
43+
x2apic = "=0.4.3"
44+
raw-cpuid = "=10.7.0"
45+
acpi = "=5.2.0"
4546

4647
[features]
4748
############# general ##############
@@ -60,6 +61,7 @@ imx_uart = []
6061
uart_16550 = []
6162
sifive_ccache = []
6263
eic7700_sysreg = []
64+
uart16550a = []
6365

6466
############## riscv64 #############
6567
# irqchip driver
@@ -80,6 +82,9 @@ loongson_uart = []
8082
loongson_3a5000 = []
8183
loongson_3a6000 = []
8284

85+
############# x86_64 ###############
86+
graphics = []
87+
8388

8489
[profile.dev]
8590
# panic = "abort" # avoid cargo test failure, this is a bug of cargo

platform/aarch64/qemu-gicv3/image/dts/zone1-linux.dts

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,43 @@
3737
reg = <0x0 0x50000000 0x0 0x30000000>;
3838
};
3939

40-
gic@8000000 {
40+
intc@8000000 {
41+
phandle = <0x01>;
42+
interrupts = <0x01 0x09 0x04>;
43+
reg = <0x00 0x8000000 0x00 0x10000 0x00 0x80a0000 0x00 0xf60000>;
44+
#redistributor-regions = <0x01>;
4145
compatible = "arm,gic-v3";
42-
#interrupt-cells = <0x03>;
46+
ranges;
47+
#size-cells = <0x02>;
48+
#address-cells = <0x02>;
4349
interrupt-controller;
44-
reg = <0x00 0x8000000 0x00 0x10000 0x00 0x80a0000 0x00 0xf60000>;
45-
phandle = <0x01>;
50+
#interrupt-cells = <0x03>;
51+
52+
its@8080000 {
53+
phandle = <0x8006>;
54+
reg = <0x00 0x8080000 0x00 0x20000>;
55+
#msi-cells = <0x01>;
56+
msi-controller;
57+
compatible = "arm,gic-v3-its";
58+
};
59+
};
60+
61+
pcie@10000000 {
62+
interrupt-map-mask = <0x1800 0x00 0x00 0x07>;
63+
interrupt-map = <0x00 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x03 0x04 0x00 0x00 0x00 0x02 0x01 0x00 0x00 0x00 0x04 0x04 0x00 0x00 0x00 0x03 0x01 0x00 0x00 0x00 0x05 0x04 0x00 0x00 0x00 0x04 0x01 0x00 0x00 0x00 0x06 0x04 0x800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x04 0x04 0x800 0x00 0x00 0x02 0x01 0x00 0x00 0x00 0x05 0x04 0x800 0x00 0x00 0x03 0x01 0x00 0x00 0x00 0x06 0x04 0x800 0x00 0x00 0x04 0x01 0x00 0x00 0x00 0x03 0x04 0x1000 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x05 0x04 0x1000 0x00 0x00 0x02 0x01 0x00 0x00 0x00 0x06 0x04 0x1000 0x00 0x00 0x03 0x01 0x00 0x00 0x00 0x03 0x04 0x1000 0x00 0x00 0x04 0x01 0x00 0x00 0x00 0x04 0x04 0x1800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x06 0x04 0x1800 0x00 0x00 0x02 0x01 0x00 0x00 0x00 0x03 0x04 0x1800 0x00 0x00 0x03 0x01 0x00 0x00 0x00 0x04 0x04 0x1800 0x00 0x00 0x04 0x01 0x00 0x00 0x00 0x05 0x04>;
64+
#interrupt-cells = <0x01>;
65+
ranges = <0x1000000 0x00 0x00 0x00 0x3eff0000 0x00 0x10000
66+
0x2000000 0x00 0x10000000 0x00 0x10000000 0x00 0x2eff0000
67+
0x3000000 0x80 0x00 0x80 0x00 0x80 0x00>;
68+
reg = <0x40 0x10000000 0x00 0x10000000>;
69+
msi-map = <0x00 0x8006 0x00 0x10000>;
70+
dma-coherent;
71+
bus-range = <0x00 0xff>;
72+
linux,pci-domain = <0x00>;
73+
#size-cells = <0x02>;
74+
#address-cells = <0x03>;
75+
device_type = "pci";
76+
compatible = "pci-host-ecam-generic";
4677
};
4778

4879
apb-pclk {

0 commit comments

Comments
 (0)