提交 53c05341 编写于 作者: J Jiri Denemark

Internal driver API for virConnectBaselineCPU

上级 605542c3
......@@ -367,6 +367,11 @@ typedef int
(*virDrvCPUCompare)(virConnectPtr conn,
const char *cpu,
unsigned int flags);
typedef char *
(*virDrvCPUBaseline)(virConnectPtr conn,
const char **xmlCPUs,
unsigned int ncpus,
unsigned int flags);
/**
* _virDriver:
......@@ -458,6 +463,7 @@ struct _virDriver {
virDrvDomainIsActive domainIsActive;
virDrvDomainIsPersistent domainIsPersistent;
virDrvCPUCompare cpuCompare;
virDrvCPUBaseline cpuBaseline;
};
typedef int
......
......@@ -3403,6 +3403,7 @@ static virDriver esxDriver = {
esxDomainIsActive, /* domainIsActive */
esxDomainIsPersistent, /* domainIsPersistent */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
};
......
......@@ -2449,6 +2449,7 @@ static virDriver lxcDriver = {
lxcDomainIsActive,
lxcDomainIsPersistent,
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
};
static virStateDriver lxcStateDriver = {
......
......@@ -785,6 +785,7 @@ static virDriver oneDriver = {
NULL, /* domainIsActive */
NULL, /* domainIsPersistent */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
};
static virStateDriver oneStateDriver = {
......
......@@ -1537,6 +1537,7 @@ static virDriver openvzDriver = {
openvzDomainIsActive,
openvzDomainIsPersistent,
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
};
int openvzRegister(void) {
......
......@@ -1653,6 +1653,7 @@ virDriver phypDriver = {
NULL, /* domainIsActive */
NULL, /* domainIsPersistent */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
};
int
......
......@@ -8587,6 +8587,7 @@ static virDriver qemuDriver = {
qemuDomainIsActive,
qemuDomainIsPersistent,
qemuCPUCompare, /* cpuCompare */
NULL, /* cpuBaseline */
};
......
......@@ -8980,6 +8980,7 @@ static virDriver remote_driver = {
remoteDomainIsActive, /* domainIsActive */
remoteDomainIsPersistent, /* domainIsPersistent */
remoteCPUCompare, /* cpuCompare */
NULL, /* cpuBaseline */
};
static virNetworkDriver network_driver = {
......
......@@ -5242,6 +5242,7 @@ static virDriver testDriver = {
testDomainIsActive, /* domainIsActive */
testDomainIsPersistent, /* domainIsPersistent */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
};
static virNetworkDriver testNetworkDriver = {
......
......@@ -1916,6 +1916,7 @@ static virDriver umlDriver = {
umlDomainIsActive,
umlDomainIsPersistent,
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
};
......
......@@ -7060,6 +7060,7 @@ virDriver NAME(Driver) = {
vboxDomainIsActive,
vboxDomainIsPersistent,
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
};
virNetworkDriver NAME(NetworkDriver) = {
......
......@@ -1903,6 +1903,7 @@ static virDriver xenUnifiedDriver = {
xenUnifiedDomainIsActive,
xenUnifiedDomainisPersistent,
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
};
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册