]> Git Repo - qemu.git/blame - include/sysemu/qtest.h
sysemu.h: Document what MAX_CPUMASK_BITS really limits
[qemu.git] / include / sysemu / qtest.h
CommitLineData
c7f0f3b1
AL
1/*
2 * Test Server
3 *
4 * Copyright IBM, Corp. 2011
5 *
6 * Authors:
7 * Anthony Liguori <[email protected]>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
11 *
12 */
13
14#ifndef QTEST_H
15#define QTEST_H
16
17#include "qemu-common.h"
23802b4f 18#include "qapi/error.h"
9c06a1f7 19#include "sysemu/qemumachine.h"
c7f0f3b1 20
d5286af5 21extern bool qtest_allowed;
c7f0f3b1
AL
22
23static inline bool qtest_enabled(void)
24{
25 return qtest_allowed;
26}
27
b3be57c3
MT
28bool qtest_driver(void);
29
135a129a 30int qtest_init_accel(QEMUMachine *machine);
23802b4f 31void qtest_init(const char *qtest_chrdev, const char *qtest_log, Error **errp);
d4fce24f 32
c7f0f3b1
AL
33static inline int qtest_available(void)
34{
d4fce24f 35#ifdef CONFIG_POSIX
c7f0f3b1 36 return 1;
e776bffb 37#else
e776bffb 38 return 0;
e776bffb 39#endif
d4fce24f 40}
c7f0f3b1
AL
41
42#endif
This page took 0.191789 seconds and 4 git commands to generate.