File tree Expand file tree Collapse file tree 7 files changed +30
-16
lines changed Expand file tree Collapse file tree 7 files changed +30
-16
lines changed Original file line number Diff line number Diff line change @@ -54,4 +54,4 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
5454 zephyr_cc_option(-moverride=tune=no_ldp_stp_qregs)
5555endif ()
5656
57- add_subdirectory_ifdef(CONFIG_SOC_XENVM xen)
57+ add_subdirectory_ifdef(CONFIG_XEN xen)
Original file line number Diff line number Diff line change @@ -197,6 +197,8 @@ config ARMV8_A
197197 so that it can support some features included in the AArch64 state.
198198 It supports the T32 and A32 instruction sets.
199199
200+ rsource "xen/Kconfig"
201+
200202endif # CPU_CORTEX_A
201203
202204if CPU_AARCH64_CORTEX_R
Original file line number Diff line number Diff line change 1+ # Xen hypervisor configuration options
2+
3+ # Copyright (c) 2023 EPAM Systems
4+ # SPDX-License-Identifier: Apache-2.0
5+
6+ config XEN
7+ bool
8+ default y
9+ depends on ARMV8_A
10+ depends on DT_HAS_XEN_XEN_ENABLED
11+ help
12+ Enables support of Xen hypervisor on arm64 platform. Get enabled
13+ when board device tree contains "hypervisor" node with "xen,xen"
14+ compatible enabled.
15+
16+ config XEN_DOM0
17+ bool "Zephyr as Xen Domain 0"
18+ depends on XEN
19+ help
20+ Built binary will be used as Xen privileged domain (Domain 0).
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ add_subdirectory(usb_c)
1515add_subdirectory_ifdef(CONFIG_ADC adc)
1616add_subdirectory_ifdef(CONFIG_AUDIO audio)
1717add_subdirectory_ifdef(CONFIG_BBRAM bbram)
18- add_subdirectory_ifdef(CONFIG_BOARD_XENVM xen)
18+ add_subdirectory_ifdef(CONFIG_XEN xen)
1919add_subdirectory_ifdef(CONFIG_BT_DRIVERS bluetooth)
2020add_subdirectory_ifdef(CONFIG_CACHE_MANAGEMENT cache )
2121add_subdirectory_ifdef(CONFIG_CAN can)
Original file line number Diff line number Diff line change 11# Xen hypervisor console via UART setup
22#
3- # Copyright (c) 2021 EPAM Systems
3+ # Copyright (c) 2021-2023 EPAM Systems
44# SPDX-License-Identifier: Apache-2.0
55#
66
@@ -10,16 +10,15 @@ config UART_XEN_HVC
1010 depends on DT_HAS_XEN_HVC_UART_ENABLED
1111 select SERIAL_HAS_DRIVER
1212 select SERIAL_SUPPORT_INTERRUPT
13- depends on !XEN_INITIAL_DOMAIN
13+ depends on XEN && !XEN_DOM0
1414 help
1515 Enable Xen ring buffer based hypervisor console driver. Used
1616 for Zephyr as unprivileged domain.
1717
1818config UART_XEN_HVC_CONSOLEIO
1919 bool "Xen hypervisor Dom0 console UART driver"
2020 select SERIAL_HAS_DRIVER
21- depends on BOARD_XENVM
22- depends on XEN_INITIAL_DOMAIN
21+ depends on XEN_DOM0
2322 default y
2423 help
2524 Enable Xen hypervisor console driver. Used for Zephyr as
@@ -35,7 +34,6 @@ config XEN_HVC_INIT_PRIORITY
3534
3635config XEN_EARLY_CONSOLEIO
3736 bool "Early printk/stdout through console_io Xen interface"
38- depends on BOARD_XENVM
3937 depends on UART_XEN_HVC
4038 help
4139 Enable setting of console_io symbol hook for stdout and printk.
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: Apache-2.0
2- # Copyright (c) 2022 EPAM Systems
2+ # Copyright (c) 2022-2023 EPAM Systems
33
4- if SOC_XENVM
4+ if XEN
55
66menu "Xen drivers"
77
@@ -22,4 +22,4 @@ config XEN_GRANT_TABLE_INIT_PRIORITY
2222
2323endmenu
2424
25- endif # SOC_XENVM
25+ endif # XEN
Original file line number Diff line number Diff line change @@ -6,9 +6,3 @@ config SOC_XENVM
66 select ARM64
77 select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
88 select CPU_CORTEX_A72
9-
10- config XEN_INITIAL_DOMAIN
11- bool "Zephyr as Xen Domain 0"
12- depends on SOC_XENVM
13- help
14- Built binary will be used as Xen privileged domain.
You can’t perform that action at this time.
0 commit comments