typedef int
(*virDrvDomainIsPersistent)(virDomainPtr dom);
+typedef int
+ (*virDrvCPUCompare)(virConnectPtr conn,
+ const char *cpu,
+ unsigned int flags);
+
/**
* _virDriver:
*
virDrvConnectIsSecure isSecure;
virDrvDomainIsActive domainIsActive;
virDrvDomainIsPersistent domainIsPersistent;
+ virDrvCPUCompare cpuCompare;
};
typedef int
esxIsSecure, /* isSecure */
esxDomainIsActive, /* domainIsActive */
esxDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* cpuCompare */
};
lxcIsSecure,
lxcDomainIsActive,
lxcDomainIsPersistent,
+ NULL, /* cpuCompare */
};
static virStateDriver lxcStateDriver = {
oneIsSecure,
NULL, /* domainIsActive */
NULL, /* domainIsPersistent */
+ NULL, /* cpuCompare */
};
static virStateDriver oneStateDriver = {
openvzIsSecure,
openvzDomainIsActive,
openvzDomainIsPersistent,
+ NULL, /* cpuCompare */
};
int openvzRegister(void) {
phypIsSecure,
NULL, /* domainIsActive */
NULL, /* domainIsPersistent */
+ NULL, /* cpuCompare */
};
int
qemuIsSecure,
qemuDomainIsActive,
qemuDomainIsPersistent,
+ NULL, /* cpuCompare */
};
remoteIsSecure, /* isSecure */
remoteDomainIsActive, /* domainIsActive */
remoteDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* cpuCompare */
};
static virNetworkDriver network_driver = {
testIsSecure, /* isEncrypted */
testDomainIsActive, /* domainIsActive */
testDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* cpuCompare */
};
static virNetworkDriver testNetworkDriver = {
umlIsSecure,
umlDomainIsActive,
umlDomainIsPersistent,
+ NULL, /* cpuCompare */
};
vboxIsSecure,
vboxDomainIsActive,
vboxDomainIsPersistent,
+ NULL, /* cpuCompare */
};
virNetworkDriver NAME(NetworkDriver) = {
xenUnifiedIsSecure,
xenUnifiedDomainIsActive,
xenUnifiedDomainisPersistent,
+ NULL, /* cpuCompare */
};
/**