]> git.proxmox.com Git - mirror_qemu.git/blame - include/sysemu/hax.h
Merge tag 'pull-target-arm-20230518' of https://git.linaro.org/people/pmaydell/qemu...
[mirror_qemu.git] / include / sysemu / hax.h
CommitLineData
47c1c8c1
VP
1/*
2 * QEMU HAXM support
3 *
4 * Copyright IBM, Corp. 2008
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *
9 * Copyright (c) 2011 Intel Corporation
10 * Written by:
11 * Jiang Yunhong<yunhong.jiang@intel.com>
12 * Xin Xiaohui<xiaohui.xin@intel.com>
13 * Zhang Xiantao<xiantao.zhang@intel.com>
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
47c1c8c1 25int hax_sync_vcpus(void);
47c1c8c1 26
13b48fb0 27#ifdef NEED_CPU_H
b04363c2
PMD
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
13b48fb0 34
b04363c2 35#ifdef CONFIG_HAX_IS_POSSIBLE
47c1c8c1 36
b04363c2 37extern bool hax_allowed;
47c1c8c1 38
b04363c2 39#define hax_enabled() (hax_allowed)
47c1c8c1 40
b04363c2 41#else /* !CONFIG_HAX_IS_POSSIBLE */
47c1c8c1 42
b04363c2 43#define hax_enabled() (0)
47c1c8c1 44
b04363c2 45#endif /* CONFIG_HAX_IS_POSSIBLE */
13b48fb0 46
47c1c8c1 47#endif /* QEMU_HAX_H */