mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 23:55:23 +00:00
8d04ea1661
This removes the hacky extern global variable and modifies the test code to properly create QEMU capabilities cache for QEMU binaries used in our tests. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
38 lines
964 B
C
38 lines
964 B
C
#ifdef WITH_QEMU
|
|
|
|
# include "capabilities.h"
|
|
# include "domain_conf.h"
|
|
# include "qemu/qemu_capabilities.h"
|
|
# include "qemu/qemu_conf.h"
|
|
|
|
enum {
|
|
GIC_NONE = 0,
|
|
GIC_V2,
|
|
GIC_V3,
|
|
GIC_BOTH,
|
|
};
|
|
|
|
virCapsPtr testQemuCapsInit(void);
|
|
virDomainXMLOptionPtr testQemuXMLConfInit(void);
|
|
|
|
virQEMUCapsPtr qemuTestParseCapabilities(virCapsPtr caps,
|
|
const char *capsFile);
|
|
|
|
extern virCPUDefPtr cpuDefault;
|
|
extern virCPUDefPtr cpuHaswell;
|
|
extern virCPUDefPtr cpuPower8;
|
|
|
|
void qemuTestSetHostArch(virCapsPtr caps,
|
|
virArch arch);
|
|
void qemuTestSetHostCPU(virCapsPtr caps,
|
|
virCPUDefPtr cpu);
|
|
|
|
int qemuTestDriverInit(virQEMUDriver *driver);
|
|
void qemuTestDriverFree(virQEMUDriver *driver);
|
|
int qemuTestCapsCacheInsert(virQEMUCapsCachePtr cache,
|
|
virQEMUCapsPtr caps);
|
|
|
|
int testQemuCapsSetGIC(virQEMUCapsPtr qemuCaps,
|
|
int gic);
|
|
#endif
|