1# SPDX-License-Identifier: Apache-2.0
2# Copyright (c) 2022-2024 EPAM Systems
3
4if XEN
5
6menu "Xen drivers"
7
8config XEN_DMOP
9	bool "Xen dmop hypercall wrappers"
10	help
11	  Enable lightweight wrappers for Xen dm_op hypercalls used by
12	  Xen device backends. Disable to drop dmop.c from the build.
13
14config XEN_GRANT_TABLE
15	bool "Xen grant table driver"
16	depends on HEAP_MEM_POOL_SIZE > 0
17	default y
18	help
19	  Xen grant table driver. Please note that driver uses dynamic memory
20	  allocation with k_malloc(), so CONFIG_HEAP_MEM_POOL_SIZE should be
21	  >= number of pages, that you want to alloc and grant or foreign frames
22	  that you want to map.
23
24config XEN_GRANT_TABLE_INIT_PRIORITY
25	int "Grant table driver init priority"
26	depends on XEN_GRANT_TABLE
27	default 50
28
29config NR_GRANT_FRAMES
30	int "Number of grant frames mapped to Zephyr"
31	depends on XEN_GRANT_TABLE
32	default 1
33	help
34	  This value configures how much grant frames will be supported by Zephyr
35	  grant table driver in runtime. This value should be <= max_grant_frames
36	  configured for domain in Xen hypervisor.
37
38endmenu
39
40endif # XEN
41