Skip to content

Commit 7f04c35

Browse files
firscityfabiobaltieri
authored andcommitted
snippets: xen_dom0: add support for Renesas R-Car Gen3 boards
Renesas rcar_h3ulcb_ca57 and rcar_salvator_xs_m3 boards support recently was added to Zephyr mainline. Add Xen control domain guest support for them via xen_dom0 snippet extention. Note: please pay attetion to overlay nodes and comments in case of any issues on your setup. Signed-off-by: Dmytro Firsov <[email protected]>
1 parent 5207c6f commit 7f04c35

File tree

3 files changed

+88
-0
lines changed

3 files changed

+88
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (C) 2023 EPAM Systems.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &ram;
8+
/delete-node/ &scif2;
9+
10+
/ {
11+
/*
12+
* This node may differs on different setups, please check
13+
* following line in Xen boot log to set it right:
14+
* (XEN) Grant table range: 0x00000088080000-0x000000880c0000
15+
*
16+
* Xen passes actual values for setup in domain device tree, but Zephyr
17+
* is not capable to parse and handle it in runtime.
18+
*/
19+
hypervisor: hypervisor@88080000 {
20+
compatible = "xen,xen";
21+
reg = <0x0 0x88080000 0x0 0x40000>;
22+
interrupts = <GIC_PPI 0x0 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
23+
interrupt-parent = <&gic>;
24+
status = "okay";
25+
};
26+
27+
/*
28+
* This node may differs on different setups, because Xen picks
29+
* region for Domain-0 for every specific configuration. You can
30+
* start Xen for your platform and check following log:
31+
* (XEN) Allocating 1:1 mappings for dom0:
32+
* (XEN) BANK[0] 0x00000060000000-0x00000070000000 (256MB)
33+
*
34+
* Xen passes actual values for setup in domain device tree, but Zephyr
35+
* is not capable to parse and handle it in runtime.
36+
*/
37+
ram: memory@60000000 {
38+
device_type = "mmio-sram";
39+
reg = <0x00 0x60000000 0x00 DT_SIZE_M(256)>;
40+
};
41+
};
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (C) 2023 EPAM Systems.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &ram;
8+
/delete-node/ &scif2;
9+
10+
/ {
11+
/*
12+
* This node may differs on different setups, please check
13+
* following line in Xen boot log to set it right:
14+
* (XEN) Grant table range: 0x00000088080000-0x000000880c0000
15+
*
16+
* Xen passes actual values for setup in domain device tree, but Zephyr
17+
* is not capable to parse and handle it in runtime.
18+
*/
19+
hypervisor: hypervisor@88080000 {
20+
compatible = "xen,xen";
21+
reg = <0x0 0x88080000 0x0 0x40000>;
22+
interrupts = <GIC_PPI 0x0 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
23+
interrupt-parent = <&gic>;
24+
status = "okay";
25+
};
26+
27+
/*
28+
* This node may differs on different setups, because Xen picks
29+
* region for Domain-0 for every specific configuration. You can
30+
* start Xen for your platform and check following log:
31+
* (XEN) Allocating 1:1 mappings for dom0:
32+
* (XEN) BANK[0] 0x00000060000000-0x00000070000000 (256MB)
33+
*
34+
* Xen passes actual values for setup in domain device tree, but Zephyr
35+
* is not capable to parse and handle it in runtime.
36+
*/
37+
ram: memory@60000000 {
38+
device_type = "mmio-sram";
39+
reg = <0x00 0x60000000 0x00 DT_SIZE_M(256)>;
40+
};
41+
};

snippets/xen_dom0/snippet.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ boards:
77
qemu_cortex_a53:
88
append:
99
EXTRA_DTC_OVERLAY_FILE: boards/qemu_cortex_a53.overlay
10+
rcar_h3ulcb_ca57:
11+
append:
12+
EXTRA_DTC_OVERLAY_FILE: boards/rcar_h3ulcb_ca57.overlay
13+
rcar_salvator_xs_m3:
14+
append:
15+
EXTRA_DTC_OVERLAY_FILE: boards/rcar_salvator_xs_m3.overlay

0 commit comments

Comments
 (0)