xref: /openbmc/qemu/include/sysemu/nvmm.h (revision d2dfe0b5)
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 #ifndef QEMU_NVMM_H
11 #define QEMU_NVMM_H
12 
13 #ifdef NEED_CPU_H
14 
15 #ifdef CONFIG_NVMM
16 
17 int nvmm_enabled(void);
18 
19 #else /* CONFIG_NVMM */
20 
21 #define nvmm_enabled() (0)
22 
23 #endif /* CONFIG_NVMM */
24 
25 #endif /* NEED_CPU_H */
26 
27 #endif /* QEMU_NVMM_H */
28