2013-05-31 10:47:22 -06:00
|
|
|
#ifdef WITH_QEMU
|
2008-05-16 16:51:30 +00:00
|
|
|
|
2013-05-31 10:47:22 -06:00
|
|
|
# include "capabilities.h"
|
|
|
|
# include "domain_conf.h"
|
2014-06-27 16:39:27 +02:00
|
|
|
# include "qemu/qemu_capabilities.h"
|
2016-04-13 08:12:47 +02:00
|
|
|
# include "qemu/qemu_conf.h"
|
2008-05-16 16:51:30 +00:00
|
|
|
|
2016-05-10 11:35:43 +02:00
|
|
|
enum {
|
|
|
|
GIC_NONE = 0,
|
|
|
|
GIC_V2,
|
|
|
|
GIC_V3,
|
|
|
|
GIC_BOTH,
|
|
|
|
};
|
|
|
|
|
2008-05-16 16:51:30 +00:00
|
|
|
virCapsPtr testQemuCapsInit(void);
|
2013-03-31 20:03:42 +02:00
|
|
|
virDomainXMLOptionPtr testQemuXMLConfInit(void);
|
2014-06-27 16:39:27 +02:00
|
|
|
|
2016-06-15 14:35:18 +02:00
|
|
|
virQEMUCapsPtr qemuTestParseCapabilities(virCapsPtr caps,
|
|
|
|
const char *capsFile);
|
2015-03-23 17:19:28 +01:00
|
|
|
|
|
|
|
extern virCPUDefPtr cpuDefault;
|
|
|
|
extern virCPUDefPtr cpuHaswell;
|
2016-09-13 22:27:09 +02:00
|
|
|
extern virCPUDefPtr cpuPower8;
|
2016-08-04 13:16:55 +02:00
|
|
|
|
|
|
|
void qemuTestSetHostArch(virCapsPtr caps,
|
|
|
|
virArch arch);
|
|
|
|
void qemuTestSetHostCPU(virCapsPtr caps,
|
|
|
|
virCPUDefPtr cpu);
|
2015-03-23 17:19:28 +01:00
|
|
|
|
2015-09-15 08:16:02 +02:00
|
|
|
int qemuTestDriverInit(virQEMUDriver *driver);
|
|
|
|
void qemuTestDriverFree(virQEMUDriver *driver);
|
2015-09-09 17:03:14 +03:00
|
|
|
int qemuTestCapsCacheInsert(virQEMUCapsCachePtr cache, const char *binary,
|
|
|
|
virQEMUCapsPtr caps);
|
|
|
|
|
2016-05-10 11:35:43 +02:00
|
|
|
int testQemuCapsSetGIC(virQEMUCapsPtr qemuCaps,
|
|
|
|
int gic);
|
|
|
|
|
2015-09-09 17:03:14 +03:00
|
|
|
/* This variable is actually defined in src/qemu/qemu_capabilities.c */
|
|
|
|
extern const char *qemuTestCapsName;
|
2013-05-31 10:47:22 -06:00
|
|
|
#endif
|