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