a08052bc24
qtest_available() will always return 0 on non-POSIX systems. It's simpler to just not compile the accelerator code on those systems instead of relying on the AccelClass::available function. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190422210448.2488-3-ehabkost@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> [on mingw64] Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
31 lines
520 B
C
31 lines
520 B
C
/*
|
|
* Test Server
|
|
*
|
|
* Copyright IBM, Corp. 2011
|
|
*
|
|
* Authors:
|
|
* Anthony Liguori <aliguori@us.ibm.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
#ifndef QTEST_H
|
|
#define QTEST_H
|
|
|
|
#include "qemu-common.h"
|
|
|
|
extern bool qtest_allowed;
|
|
|
|
static inline bool qtest_enabled(void)
|
|
{
|
|
return qtest_allowed;
|
|
}
|
|
|
|
bool qtest_driver(void);
|
|
|
|
void qtest_init(const char *qtest_chrdev, const char *qtest_log, Error **errp);
|
|
|
|
#endif
|