2021-07-02 16:31:56 +08:00
|
|
|
# Xen hypervisor console via UART setup
|
|
|
|
#
|
|
|
|
# Copyright (c) 2021 EPAM Systems
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
config UART_XEN_HVC
|
2021-10-07 22:58:42 +08:00
|
|
|
bool "Xen hypervisor DomU console UART driver"
|
2021-07-02 16:31:56 +08:00
|
|
|
select SERIAL_HAS_DRIVER
|
2021-09-17 05:10:49 +08:00
|
|
|
select SERIAL_SUPPORT_INTERRUPT
|
2021-07-02 16:31:56 +08:00
|
|
|
depends on BOARD_XENVM
|
2021-10-07 22:58:42 +08:00
|
|
|
depends on !XEN_INITIAL_DOMAIN
|
2021-07-02 16:31:56 +08:00
|
|
|
default y
|
|
|
|
help
|
2021-10-07 22:58:42 +08:00
|
|
|
Enable Xen ring buffer based hypervisor console driver. Used
|
|
|
|
for Zephyr as unprivileged domain.
|
|
|
|
|
|
|
|
config UART_XEN_HVC_CONSOLEIO
|
|
|
|
bool "Xen hypervisor Dom0 console UART driver"
|
|
|
|
select SERIAL_HAS_DRIVER
|
|
|
|
depends on BOARD_XENVM
|
|
|
|
depends on XEN_INITIAL_DOMAIN
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable Xen hypervisor console driver. Used for Zephyr as
|
|
|
|
privileged domain (Dom0).
|
2021-07-02 16:31:56 +08:00
|
|
|
|
|
|
|
config XEN_HVC_INIT_PRIORITY
|
|
|
|
int "Xen hypervisor console init priority"
|
2021-10-07 22:58:42 +08:00
|
|
|
depends on UART_XEN_HVC || UART_XEN_HVC_CONSOLEIO
|
2021-07-02 16:31:56 +08:00
|
|
|
default 55
|
|
|
|
help
|
|
|
|
Set init priority for Xen HVC, should be inited before UART
|
|
|
|
console driver (HVC gets inited on PRE_KERNEL_1 stage).
|
|
|
|
|
|
|
|
config XEN_EARLY_CONSOLEIO
|
|
|
|
bool "Early printk/stdout through console_io Xen interface"
|
|
|
|
depends on BOARD_XENVM
|
2021-10-07 22:58:42 +08:00
|
|
|
depends on UART_XEN_HVC
|
2021-07-02 16:31:56 +08:00
|
|
|
help
|
|
|
|
Enable setting of console_io symbol hook for stdout and printk.
|
|
|
|
Log output will become available on PRE_KERNEL_1 stage. Requires
|
|
|
|
Xen, compiled with CONFIG_DEBUG flag.
|