]> Git Repo - qemu.git/blob - include/sysemu/hax.h
works with less than base ISA qemu-system-riscv32 -M virt -bios none -kernel output...
[qemu.git] / include / sysemu / hax.h
1 /*
2  * QEMU HAXM support
3  *
4  * Copyright IBM, Corp. 2008
5  *
6  * Authors:
7  *  Anthony Liguori   <[email protected]>
8  *
9  * Copyright (c) 2011 Intel Corporation
10  *  Written by:
11  *  Jiang Yunhong<[email protected]>
12  *  Xin Xiaohui<[email protected]>
13  *  Zhang Xiantao<[email protected]>
14  *
15  * Copyright 2016 Google, Inc.
16  *
17  * This work is licensed under the terms of the GNU GPL, version 2 or later.
18  * See the COPYING file in the top-level directory.
19  *
20  */
21
22 #ifndef QEMU_HAX_H
23 #define QEMU_HAX_H
24
25 int hax_sync_vcpus(void);
26
27 #ifdef NEED_CPU_H
28 # ifdef CONFIG_HAX
29 #  define CONFIG_HAX_IS_POSSIBLE
30 # endif
31 #else /* !NEED_CPU_H */
32 # define CONFIG_HAX_IS_POSSIBLE
33 #endif
34
35 #ifdef CONFIG_HAX_IS_POSSIBLE
36
37 extern bool hax_allowed;
38
39 #define hax_enabled()               (hax_allowed)
40
41 #else /* !CONFIG_HAX_IS_POSSIBLE */
42
43 #define hax_enabled()               (0)
44
45 #endif /* CONFIG_HAX_IS_POSSIBLE */
46
47 #endif /* QEMU_HAX_H */
This page took 0.023908 seconds and 4 git commands to generate.