zephyr/drivers/xen/Kconfig
Grygorii Strashko db1bea3ae2 drivers: xen: add XEN_EVENTS Kconfig option
The Xen events channel driver consume 72K of RAM, but may not be
required in all use cases.

Added a XEN_EVENTS Kconfig option so that Xen events can be gracefully
disabled if not required. Updated the relevant CMakeLists.txt and
Kconfig files to guard the inclusion of the Xen events driver and its
source files by this option.

Signed-off-by: Grygorii Strashko <grygorii_strashko@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-01-30 16:56:52 -06:00

46 lines
1.2 KiB
Text

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2022-2024 EPAM Systems
if XEN
menu "Xen drivers"
config XEN_DMOP
bool "Xen dmop hypercall wrappers"
help
Enable lightweight wrappers for Xen dm_op hypercalls used by
Xen device backends. Disable to drop dmop.c from the build.
config XEN_GRANT_TABLE
bool "Xen grant table driver"
depends on HEAP_MEM_POOL_SIZE > 0
default y
help
Xen grant table driver. Please note that driver uses dynamic memory
allocation with k_malloc(), so CONFIG_HEAP_MEM_POOL_SIZE should be
>= number of pages, that you want to alloc and grant or foreign frames
that you want to map.
config XEN_GRANT_TABLE_INIT_PRIORITY
int "Grant table driver init priority"
depends on XEN_GRANT_TABLE
default 50
config NR_GRANT_FRAMES
int "Number of grant frames mapped to Zephyr"
depends on XEN_GRANT_TABLE
default 1
help
This value configures how much grant frames will be supported by Zephyr
grant table driver in runtime. This value should be <= max_grant_frames
configured for domain in Xen hypervisor.
config XEN_EVENTS
bool "Xen events driver"
default y
help
Xen event channels driver.
endmenu
endif # XEN