mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
The main purpose of this patch is to introduce test mode to virQEMUCapsCacheLookup(). This is done by adding a global variable, which effectively overrides binary name. This variable is supposed to be set by test suite. The second addition is qemuTestCapsCacheInsert() function which allows the test suite to actually populate the cache. Signed-off-by: Pavel Fedin <p.fedin@samsung.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
27 lines
833 B
C
27 lines
833 B
C
#ifdef WITH_QEMU
|
|
|
|
# include "capabilities.h"
|
|
# include "domain_conf.h"
|
|
# include "qemu/qemu_command.h"
|
|
# include "qemu/qemu_capabilities.h"
|
|
|
|
virCapsPtr testQemuCapsInit(void);
|
|
virDomainXMLOptionPtr testQemuXMLConfInit(void);
|
|
extern qemuBuildCommandLineCallbacks testCallbacks;
|
|
|
|
virQEMUCapsPtr qemuTestParseCapabilities(const char *capsFile);
|
|
|
|
extern virCPUDefPtr cpuDefault;
|
|
extern virCPUDefPtr cpuHaswell;
|
|
void testQemuCapsSetCPU(virCapsPtr caps,
|
|
virCPUDefPtr hostCPU);
|
|
|
|
int qemuTestDriverInit(virQEMUDriver *driver);
|
|
void qemuTestDriverFree(virQEMUDriver *driver);
|
|
int qemuTestCapsCacheInsert(virQEMUCapsCachePtr cache, const char *binary,
|
|
virQEMUCapsPtr caps);
|
|
|
|
/* This variable is actually defined in src/qemu/qemu_capabilities.c */
|
|
extern const char *qemuTestCapsName;
|
|
#endif
|