d9a3efb834
This commit adds minimal support of Xen hypervisor console via UART-like driver. Implementation allows to use poll_in/poll_out char interface for uart_console.c driver directly to HV console instead of using Xen virtual PL011 UART. Future implementation will support interrupt driven interface on Xen event channels, currently it is under development. Also this commit introduces early console_io Xen interface, which allows to receive printk/stdout messages quickly after start, but requires Xen, built with CONFIG_DEBUG option. Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
31 lines
833 B
Plaintext
31 lines
833 B
Plaintext
# Xen hypervisor console via UART setup
|
|
#
|
|
# Copyright (c) 2021 EPAM Systems
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
config UART_XEN_HVC
|
|
bool "Xen hypervisor console UART Driver"
|
|
select SERIAL_HAS_DRIVER
|
|
depends on BOARD_XENVM
|
|
default y
|
|
help
|
|
Enable Xen hypervisor console driver.
|
|
|
|
config XEN_HVC_INIT_PRIORITY
|
|
int "Xen hypervisor console init priority"
|
|
depends on UART_XEN_HVC
|
|
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
|
|
default n
|
|
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.
|