mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
68c7011856
Host capabilities provide libvirt's view of the host CPU, but for a useful support for host-model CPUs we really need a hypervisor's view of the CPU. And since the view can be differ with emulator, qemu capabilities is the best place to store the host CPU model. This patch just copies the CPU model from host capabilities, but this will change in the future. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
41 lines
1.1 KiB
C
41 lines
1.1 KiB
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, const char *binary,
|
|
virQEMUCapsPtr caps);
|
|
|
|
int testQemuCapsSetGIC(virQEMUCapsPtr qemuCaps,
|
|
int gic);
|
|
|
|
/* This variable is actually defined in src/qemu/qemu_capabilities.c */
|
|
extern const char *qemuTestCapsName;
|
|
#endif
|