mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 11:51:11 +00:00
d03de54e7e
The switch contains considerable amount of changes: virQEMUCapsRememberCached() is removed because this is now handled by virFileCacheSave(). virQEMUCapsInitCached() is removed because this is now handled by virFileCacheLoad(). virQEMUCapsNewForBinary() is split into two functions, virQEMUCapsNewData() which creates new data if there is nothing cached and virQEMUCapsLoadFile() which loads the cached data. This is now handled by virFileCacheNewData(). virQEMUCapsCacheValidate() is removed because this is now handled by virFileCacheValidate(). virQEMUCapsCacheFree() is removed because it's no longer required. Add virCapsPtr into virQEMUCapsCachePriv because for each call of virFileCacheLookup*() we need to use current virCapsPtr. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
40 lines
1018 B
C
40 lines
1018 B
C
#ifdef WITH_QEMU
|
|
|
|
# include "capabilities.h"
|
|
# include "virfilecache.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;
|
|
extern virCPUDefPtr cpuPower9;
|
|
|
|
void qemuTestSetHostArch(virCapsPtr caps,
|
|
virArch arch);
|
|
void qemuTestSetHostCPU(virCapsPtr caps,
|
|
virCPUDefPtr cpu);
|
|
|
|
int qemuTestDriverInit(virQEMUDriver *driver);
|
|
void qemuTestDriverFree(virQEMUDriver *driver);
|
|
int qemuTestCapsCacheInsert(virFileCachePtr cache,
|
|
virQEMUCapsPtr caps);
|
|
|
|
int testQemuCapsSetGIC(virQEMUCapsPtr qemuCaps,
|
|
int gic);
|
|
#endif
|