xref: /openbmc/qemu/include/sysemu/nvmm.h (revision 4c46fe2e)
1 /*
2  * Copyright (c) 2018-2019 Maxime Villard, All rights reserved.
3  *
4  * NetBSD Virtual Machine Monitor (NVMM) accelerator support.
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7  * See the COPYING file in the top-level directory.
8  */
9 
10 /* header to be included in non-NVMM-specific code */
11 
12 #ifndef QEMU_NVMM_H
13 #define QEMU_NVMM_H
14 
15 #ifdef NEED_CPU_H
16 
17 #ifdef CONFIG_NVMM
18 
19 int nvmm_enabled(void);
20 
21 #else /* CONFIG_NVMM */
22 
23 #define nvmm_enabled() (0)
24 
25 #endif /* CONFIG_NVMM */
26 
27 #endif /* NEED_CPU_H */
28 
29 #endif /* QEMU_NVMM_H */
30