mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
libvirt: implements virDomain{Get,Set}BlkioParameters
Implements virDomainSetBlkioParameters and virDomainGetBlkioParameters and initialization Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
This commit is contained in:
parent
13c5282122
commit
d55aa8694e
18
src/driver.h
18
src/driver.h
@ -149,6 +149,18 @@ typedef int
|
|||||||
virMemoryParameterPtr params,
|
virMemoryParameterPtr params,
|
||||||
int *nparams,
|
int *nparams,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
typedef int
|
||||||
|
(*virDrvDomainSetBlkioParameters)
|
||||||
|
(virDomainPtr domain,
|
||||||
|
virBlkioParameterPtr params,
|
||||||
|
int nparams,
|
||||||
|
unsigned int flags);
|
||||||
|
typedef int
|
||||||
|
(*virDrvDomainGetBlkioParameters)
|
||||||
|
(virDomainPtr domain,
|
||||||
|
virBlkioParameterPtr params,
|
||||||
|
int *nparams,
|
||||||
|
unsigned int flags);
|
||||||
typedef int
|
typedef int
|
||||||
(*virDrvDomainGetInfo) (virDomainPtr domain,
|
(*virDrvDomainGetInfo) (virDomainPtr domain,
|
||||||
virDomainInfoPtr info);
|
virDomainInfoPtr info);
|
||||||
@ -541,6 +553,10 @@ struct _virDriver {
|
|||||||
virDrvDomainSetMaxMemory domainSetMaxMemory;
|
virDrvDomainSetMaxMemory domainSetMaxMemory;
|
||||||
virDrvDomainSetMemory domainSetMemory;
|
virDrvDomainSetMemory domainSetMemory;
|
||||||
virDrvDomainSetMemoryFlags domainSetMemoryFlags;
|
virDrvDomainSetMemoryFlags domainSetMemoryFlags;
|
||||||
|
virDrvDomainSetMemoryParameters domainSetMemoryParameters;
|
||||||
|
virDrvDomainGetMemoryParameters domainGetMemoryParameters;
|
||||||
|
virDrvDomainSetBlkioParameters domainSetBlkioParameters;
|
||||||
|
virDrvDomainGetBlkioParameters domainGetBlkioParameters;
|
||||||
virDrvDomainGetInfo domainGetInfo;
|
virDrvDomainGetInfo domainGetInfo;
|
||||||
virDrvDomainSave domainSave;
|
virDrvDomainSave domainSave;
|
||||||
virDrvDomainRestore domainRestore;
|
virDrvDomainRestore domainRestore;
|
||||||
@ -616,8 +632,6 @@ struct _virDriver {
|
|||||||
virDrvDomainRevertToSnapshot domainRevertToSnapshot;
|
virDrvDomainRevertToSnapshot domainRevertToSnapshot;
|
||||||
virDrvDomainSnapshotDelete domainSnapshotDelete;
|
virDrvDomainSnapshotDelete domainSnapshotDelete;
|
||||||
virDrvQemuDomainMonitorCommand qemuDomainMonitorCommand;
|
virDrvQemuDomainMonitorCommand qemuDomainMonitorCommand;
|
||||||
virDrvDomainSetMemoryParameters domainSetMemoryParameters;
|
|
||||||
virDrvDomainGetMemoryParameters domainGetMemoryParameters;
|
|
||||||
virDrvDomainOpenConsole domainOpenConsole;
|
virDrvDomainOpenConsole domainOpenConsole;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4594,6 +4594,10 @@ static virDriver esxDriver = {
|
|||||||
esxDomainSetMaxMemory, /* domainSetMaxMemory */
|
esxDomainSetMaxMemory, /* domainSetMaxMemory */
|
||||||
esxDomainSetMemory, /* domainSetMemory */
|
esxDomainSetMemory, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
esxDomainSetMemoryParameters, /* domainSetMemoryParameters */
|
||||||
|
esxDomainGetMemoryParameters, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
esxDomainGetInfo, /* domainGetInfo */
|
esxDomainGetInfo, /* domainGetInfo */
|
||||||
NULL, /* domainSave */
|
NULL, /* domainSave */
|
||||||
NULL, /* domainRestore */
|
NULL, /* domainRestore */
|
||||||
@ -4669,8 +4673,6 @@ static virDriver esxDriver = {
|
|||||||
esxDomainRevertToSnapshot, /* domainRevertToSnapshot */
|
esxDomainRevertToSnapshot, /* domainRevertToSnapshot */
|
||||||
esxDomainSnapshotDelete, /* domainSnapshotDelete */
|
esxDomainSnapshotDelete, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
esxDomainSetMemoryParameters, /* domainSetMemoryParameters */
|
|
||||||
esxDomainGetMemoryParameters, /* domainGetMemoryParameters */
|
|
||||||
NULL, /* domainOpenConsole */
|
NULL, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
109
src/libvirt.c
109
src/libvirt.c
@ -2907,7 +2907,6 @@ error:
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virDomainSetMemoryParameters:
|
* virDomainSetMemoryParameters:
|
||||||
* @domain: pointer to domain object
|
* @domain: pointer to domain object
|
||||||
@ -3034,6 +3033,114 @@ error:
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virDomainSetBlkioParameters:
|
||||||
|
* @domain: pointer to domain object
|
||||||
|
* @params: pointer to blkio parameter objects
|
||||||
|
* @nparams: number of blkio parameters (this value should be same or
|
||||||
|
* less than the number of parameters supported)
|
||||||
|
* @flags: currently unused, for future extension
|
||||||
|
*
|
||||||
|
* Change the blkio tunables
|
||||||
|
* This function requires privileged access to the hypervisor.
|
||||||
|
*
|
||||||
|
* Returns -1 in case of error, 0 in case of success.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
virDomainSetBlkioParameters(virDomainPtr domain,
|
||||||
|
virBlkioParameterPtr params,
|
||||||
|
int nparams, unsigned int flags)
|
||||||
|
{
|
||||||
|
virConnectPtr conn;
|
||||||
|
|
||||||
|
VIR_DOMAIN_DEBUG(domain, "params=%p, nparams=%d, flags=%u",
|
||||||
|
params, nparams, flags);
|
||||||
|
|
||||||
|
virResetLastError();
|
||||||
|
|
||||||
|
if (!VIR_IS_CONNECTED_DOMAIN(domain)) {
|
||||||
|
virLibDomainError(VIR_ERR_INVALID_DOMAIN, __FUNCTION__);
|
||||||
|
virDispatchError(NULL);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (domain->conn->flags & VIR_CONNECT_RO) {
|
||||||
|
virLibDomainError(VIR_ERR_OPERATION_DENIED, __FUNCTION__);
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
if ((nparams <= 0) || (params == NULL)) {
|
||||||
|
virLibDomainError(VIR_ERR_INVALID_ARG, __FUNCTION__);
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
conn = domain->conn;
|
||||||
|
|
||||||
|
if (conn->driver->domainSetBlkioParameters) {
|
||||||
|
int ret;
|
||||||
|
ret = conn->driver->domainSetBlkioParameters (domain, params, nparams, flags);
|
||||||
|
if (ret < 0)
|
||||||
|
goto error;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
virLibConnError(VIR_ERR_NO_SUPPORT, __FUNCTION__);
|
||||||
|
|
||||||
|
error:
|
||||||
|
virDispatchError(domain->conn);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virDomainGetBlkioParameters:
|
||||||
|
* @domain: pointer to domain object
|
||||||
|
* @params: pointer to blkio parameter object
|
||||||
|
* (return value, allocated by the caller)
|
||||||
|
* @nparams: pointer to number of blkio parameters
|
||||||
|
* @flags: currently unused, for future extension
|
||||||
|
*
|
||||||
|
* Get the blkio parameters, the @params array will be filled with the values
|
||||||
|
* equal to the number of parameters suggested by @nparams
|
||||||
|
*
|
||||||
|
* This function requires privileged access to the hypervisor. This function
|
||||||
|
* expects the caller to allocate the @params.
|
||||||
|
*
|
||||||
|
* Returns -1 in case of error, 0 in case of success.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
virDomainGetBlkioParameters(virDomainPtr domain,
|
||||||
|
virBlkioParameterPtr params,
|
||||||
|
int *nparams, unsigned int flags)
|
||||||
|
{
|
||||||
|
virConnectPtr conn;
|
||||||
|
|
||||||
|
VIR_DOMAIN_DEBUG(domain, "params=%p, nparams=%d, flags=%u",
|
||||||
|
params, (nparams) ? *nparams : -1, flags);
|
||||||
|
|
||||||
|
virResetLastError();
|
||||||
|
|
||||||
|
if (!VIR_IS_CONNECTED_DOMAIN(domain)) {
|
||||||
|
virLibDomainError(VIR_ERR_INVALID_DOMAIN, __FUNCTION__);
|
||||||
|
virDispatchError(NULL);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if ((nparams == NULL) || (*nparams < 0)) {
|
||||||
|
virLibDomainError(VIR_ERR_INVALID_ARG, __FUNCTION__);
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
conn = domain->conn;
|
||||||
|
|
||||||
|
if (conn->driver->domainGetBlkioParameters) {
|
||||||
|
int ret;
|
||||||
|
ret = conn->driver->domainGetBlkioParameters (domain, params, nparams, flags);
|
||||||
|
if (ret < 0)
|
||||||
|
goto error;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
virLibConnError (VIR_ERR_NO_SUPPORT, __FUNCTION__);
|
||||||
|
|
||||||
|
error:
|
||||||
|
virDispatchError(domain->conn);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virDomainGetInfo:
|
* virDomainGetInfo:
|
||||||
* @domain: a domain object
|
* @domain: a domain object
|
||||||
|
@ -426,6 +426,8 @@ LIBVIRT_0.8.8 {
|
|||||||
|
|
||||||
LIBVIRT_0.9.0 {
|
LIBVIRT_0.9.0 {
|
||||||
global:
|
global:
|
||||||
|
virDomainGetBlkioParameters;
|
||||||
|
virDomainSetBlkioParameters;
|
||||||
virDomainSetMemoryFlags;
|
virDomainSetMemoryFlags;
|
||||||
virEventRegisterDefaultImpl;
|
virEventRegisterDefaultImpl;
|
||||||
virEventRunDefaultImpl;
|
virEventRunDefaultImpl;
|
||||||
|
@ -2852,6 +2852,10 @@ static virDriver lxcDriver = {
|
|||||||
lxcDomainSetMaxMemory, /* domainSetMaxMemory */
|
lxcDomainSetMaxMemory, /* domainSetMaxMemory */
|
||||||
lxcDomainSetMemory, /* domainSetMemory */
|
lxcDomainSetMemory, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
lxcDomainSetMemoryParameters, /* domainSetMemoryParameters */
|
||||||
|
lxcDomainGetMemoryParameters, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
lxcDomainGetInfo, /* domainGetInfo */
|
lxcDomainGetInfo, /* domainGetInfo */
|
||||||
NULL, /* domainSave */
|
NULL, /* domainSave */
|
||||||
NULL, /* domainRestore */
|
NULL, /* domainRestore */
|
||||||
@ -2927,8 +2931,6 @@ static virDriver lxcDriver = {
|
|||||||
NULL, /* domainRevertToSnapshot */
|
NULL, /* domainRevertToSnapshot */
|
||||||
NULL, /* domainSnapshotDelete */
|
NULL, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
lxcDomainSetMemoryParameters, /* domainSetMemoryParameters */
|
|
||||||
lxcDomainGetMemoryParameters, /* domainGetMemoryParameters */
|
|
||||||
lxcDomainOpenConsole, /* domainOpenConsole */
|
lxcDomainOpenConsole, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -751,6 +751,10 @@ static virDriver oneDriver = {
|
|||||||
NULL, /* domainSetMaxMemory */
|
NULL, /* domainSetMaxMemory */
|
||||||
NULL, /* domainSetMemory */
|
NULL, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
NULL, /* domainSetMemoryParameters */
|
||||||
|
NULL, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
oneDomainGetInfo, /* domainGetInfo */
|
oneDomainGetInfo, /* domainGetInfo */
|
||||||
NULL, /* domainSave */
|
NULL, /* domainSave */
|
||||||
NULL, /* domainRestore */
|
NULL, /* domainRestore */
|
||||||
@ -826,8 +830,6 @@ static virDriver oneDriver = {
|
|||||||
NULL, /* domainRevertToSnapshot */
|
NULL, /* domainRevertToSnapshot */
|
||||||
NULL, /* domainSnapshotDelete */
|
NULL, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
NULL, /* domainSetMemoryParameters */
|
|
||||||
NULL, /* domainGetMemoryParameters */
|
|
||||||
NULL, /* domainOpenConsole */
|
NULL, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1572,6 +1572,10 @@ static virDriver openvzDriver = {
|
|||||||
NULL, /* domainSetMaxMemory */
|
NULL, /* domainSetMaxMemory */
|
||||||
NULL, /* domainSetMemory */
|
NULL, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
NULL, /* domainSetMemoryParameters */
|
||||||
|
NULL, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
openvzDomainGetInfo, /* domainGetInfo */
|
openvzDomainGetInfo, /* domainGetInfo */
|
||||||
NULL, /* domainSave */
|
NULL, /* domainSave */
|
||||||
NULL, /* domainRestore */
|
NULL, /* domainRestore */
|
||||||
@ -1647,8 +1651,6 @@ static virDriver openvzDriver = {
|
|||||||
NULL, /* domainRevertToSnapshot */
|
NULL, /* domainRevertToSnapshot */
|
||||||
NULL, /* domainSnapshotDelete */
|
NULL, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
NULL, /* domainSetMemoryParameters */
|
|
||||||
NULL, /* domainGetMemoryParameters */
|
|
||||||
NULL, /* domainOpenConsole */
|
NULL, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3974,6 +3974,10 @@ static virDriver phypDriver = {
|
|||||||
NULL, /* domainSetMaxMemory */
|
NULL, /* domainSetMaxMemory */
|
||||||
NULL, /* domainSetMemory */
|
NULL, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
NULL, /* domainSetMemoryParameters */
|
||||||
|
NULL, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
phypDomainGetInfo, /* domainGetInfo */
|
phypDomainGetInfo, /* domainGetInfo */
|
||||||
NULL, /* domainSave */
|
NULL, /* domainSave */
|
||||||
NULL, /* domainRestore */
|
NULL, /* domainRestore */
|
||||||
@ -4049,8 +4053,6 @@ static virDriver phypDriver = {
|
|||||||
NULL, /* domainRevertToSnapshot */
|
NULL, /* domainRevertToSnapshot */
|
||||||
NULL, /* domainSnapshotDelete */
|
NULL, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuMonitorCommand */
|
NULL, /* qemuMonitorCommand */
|
||||||
NULL, /* domainSetMemoryParameters */
|
|
||||||
NULL, /* domainGetMemoryParameters */
|
|
||||||
NULL, /* domainOpenConsole */
|
NULL, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6887,6 +6887,10 @@ static virDriver qemuDriver = {
|
|||||||
NULL, /* domainSetMaxMemory */
|
NULL, /* domainSetMaxMemory */
|
||||||
qemudDomainSetMemory, /* domainSetMemory */
|
qemudDomainSetMemory, /* domainSetMemory */
|
||||||
qemudDomainSetMemoryFlags, /* domainSetMemoryFlags */
|
qemudDomainSetMemoryFlags, /* domainSetMemoryFlags */
|
||||||
|
qemuDomainSetMemoryParameters, /* domainSetMemoryParameters */
|
||||||
|
qemuDomainGetMemoryParameters, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
qemudDomainGetInfo, /* domainGetInfo */
|
qemudDomainGetInfo, /* domainGetInfo */
|
||||||
qemudDomainSave, /* domainSave */
|
qemudDomainSave, /* domainSave */
|
||||||
qemudDomainRestore, /* domainRestore */
|
qemudDomainRestore, /* domainRestore */
|
||||||
@ -6962,8 +6966,6 @@ static virDriver qemuDriver = {
|
|||||||
qemuDomainRevertToSnapshot, /* domainRevertToSnapshot */
|
qemuDomainRevertToSnapshot, /* domainRevertToSnapshot */
|
||||||
qemuDomainSnapshotDelete, /* domainSnapshotDelete */
|
qemuDomainSnapshotDelete, /* domainSnapshotDelete */
|
||||||
qemuDomainMonitorCommand, /* qemuDomainMonitorCommand */
|
qemuDomainMonitorCommand, /* qemuDomainMonitorCommand */
|
||||||
qemuDomainSetMemoryParameters, /* domainSetMemoryParameters */
|
|
||||||
qemuDomainGetMemoryParameters, /* domainGetMemoryParameters */
|
|
||||||
qemuDomainOpenConsole, /* domainOpenConsole */
|
qemuDomainOpenConsole, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10904,6 +10904,10 @@ static virDriver remote_driver = {
|
|||||||
remoteDomainSetMaxMemory, /* domainSetMaxMemory */
|
remoteDomainSetMaxMemory, /* domainSetMaxMemory */
|
||||||
remoteDomainSetMemory, /* domainSetMemory */
|
remoteDomainSetMemory, /* domainSetMemory */
|
||||||
remoteDomainSetMemoryFlags, /* domainSetMemoryFlags */
|
remoteDomainSetMemoryFlags, /* domainSetMemoryFlags */
|
||||||
|
remoteDomainSetMemoryParameters, /* domainSetMemoryParameters */
|
||||||
|
remoteDomainGetMemoryParameters, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
remoteDomainGetInfo, /* domainGetInfo */
|
remoteDomainGetInfo, /* domainGetInfo */
|
||||||
remoteDomainSave, /* domainSave */
|
remoteDomainSave, /* domainSave */
|
||||||
remoteDomainRestore, /* domainRestore */
|
remoteDomainRestore, /* domainRestore */
|
||||||
@ -10979,8 +10983,6 @@ static virDriver remote_driver = {
|
|||||||
remoteDomainRevertToSnapshot, /* domainRevertToSnapshot */
|
remoteDomainRevertToSnapshot, /* domainRevertToSnapshot */
|
||||||
remoteDomainSnapshotDelete, /* domainSnapshotDelete */
|
remoteDomainSnapshotDelete, /* domainSnapshotDelete */
|
||||||
remoteQemuDomainMonitorCommand, /* qemuDomainMonitorCommand */
|
remoteQemuDomainMonitorCommand, /* qemuDomainMonitorCommand */
|
||||||
remoteDomainSetMemoryParameters, /* domainSetMemoryParameters */
|
|
||||||
remoteDomainGetMemoryParameters, /* domainGetMemoryParameters */
|
|
||||||
remoteDomainOpenConsole, /* domainOpenConsole */
|
remoteDomainOpenConsole, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5366,6 +5366,10 @@ static virDriver testDriver = {
|
|||||||
testSetMaxMemory, /* domainSetMaxMemory */
|
testSetMaxMemory, /* domainSetMaxMemory */
|
||||||
testSetMemory, /* domainSetMemory */
|
testSetMemory, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
NULL, /* domainSetMemoryParameters */
|
||||||
|
NULL, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
testGetDomainInfo, /* domainGetInfo */
|
testGetDomainInfo, /* domainGetInfo */
|
||||||
testDomainSave, /* domainSave */
|
testDomainSave, /* domainSave */
|
||||||
testDomainRestore, /* domainRestore */
|
testDomainRestore, /* domainRestore */
|
||||||
@ -5441,8 +5445,6 @@ static virDriver testDriver = {
|
|||||||
NULL, /* domainRevertToSnapshot */
|
NULL, /* domainRevertToSnapshot */
|
||||||
NULL, /* domainSnapshotDelete */
|
NULL, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
NULL, /* domainSetMemoryParameters */
|
|
||||||
NULL, /* domainGetMemoryParameters */
|
|
||||||
NULL, /* domainOpenConsole */
|
NULL, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2168,6 +2168,10 @@ static virDriver umlDriver = {
|
|||||||
umlDomainSetMaxMemory, /* domainSetMaxMemory */
|
umlDomainSetMaxMemory, /* domainSetMaxMemory */
|
||||||
umlDomainSetMemory, /* domainSetMemory */
|
umlDomainSetMemory, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
NULL, /* domainSetMemoryParameters */
|
||||||
|
NULL, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
umlDomainGetInfo, /* domainGetInfo */
|
umlDomainGetInfo, /* domainGetInfo */
|
||||||
NULL, /* domainSave */
|
NULL, /* domainSave */
|
||||||
NULL, /* domainRestore */
|
NULL, /* domainRestore */
|
||||||
@ -2243,8 +2247,6 @@ static virDriver umlDriver = {
|
|||||||
NULL, /* domainRevertToSnapshot */
|
NULL, /* domainRevertToSnapshot */
|
||||||
NULL, /* domainSnapshotDelete */
|
NULL, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
NULL, /* domainSetMemoryParamters */
|
|
||||||
NULL, /* domainGetMemoryParamters */
|
|
||||||
umlDomainOpenConsole, /* domainOpenConsole */
|
umlDomainOpenConsole, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8556,6 +8556,10 @@ virDriver NAME(Driver) = {
|
|||||||
NULL, /* domainSetMaxMemory */
|
NULL, /* domainSetMaxMemory */
|
||||||
vboxDomainSetMemory, /* domainSetMemory */
|
vboxDomainSetMemory, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
NULL, /* domainSetMemoryParameters */
|
||||||
|
NULL, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
vboxDomainGetInfo, /* domainGetInfo */
|
vboxDomainGetInfo, /* domainGetInfo */
|
||||||
vboxDomainSave, /* domainSave */
|
vboxDomainSave, /* domainSave */
|
||||||
NULL, /* domainRestore */
|
NULL, /* domainRestore */
|
||||||
@ -8641,8 +8645,6 @@ virDriver NAME(Driver) = {
|
|||||||
vboxDomainRevertToSnapshot, /* domainRevertToSnapshot */
|
vboxDomainRevertToSnapshot, /* domainRevertToSnapshot */
|
||||||
vboxDomainSnapshotDelete, /* domainSnapshotDelete */
|
vboxDomainSnapshotDelete, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
NULL, /* domainSetMemoryParameters */
|
|
||||||
NULL, /* domainGetMemoryParameters */
|
|
||||||
NULL, /* domainOpenConsole */
|
NULL, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -926,6 +926,10 @@ static virDriver vmwareDriver = {
|
|||||||
NULL, /* domainSetMaxMemory */
|
NULL, /* domainSetMaxMemory */
|
||||||
NULL, /* domainSetMemory */
|
NULL, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
NULL, /* domainSetMemoryParameters */
|
||||||
|
NULL, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
vmwareDomainGetInfo, /* domainGetInfo */
|
vmwareDomainGetInfo, /* domainGetInfo */
|
||||||
NULL, /* domainSave */
|
NULL, /* domainSave */
|
||||||
NULL, /* domainRestore */
|
NULL, /* domainRestore */
|
||||||
@ -1001,8 +1005,6 @@ static virDriver vmwareDriver = {
|
|||||||
NULL, /* domainRevertToSnapshot */
|
NULL, /* domainRevertToSnapshot */
|
||||||
NULL, /* domainSnapshotDelete */
|
NULL, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
NULL, /* domainSetMemoryParameters */
|
|
||||||
NULL, /* domainGetMemoryParameters */
|
|
||||||
NULL, /* domainOpenConsole */
|
NULL, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2035,6 +2035,10 @@ static virDriver xenUnifiedDriver = {
|
|||||||
xenUnifiedDomainSetMaxMemory, /* domainSetMaxMemory */
|
xenUnifiedDomainSetMaxMemory, /* domainSetMaxMemory */
|
||||||
xenUnifiedDomainSetMemory, /* domainSetMemory */
|
xenUnifiedDomainSetMemory, /* domainSetMemory */
|
||||||
NULL, /*domainSetMemoryFlags */
|
NULL, /*domainSetMemoryFlags */
|
||||||
|
NULL, /* domainSetMemoryParameters */
|
||||||
|
NULL, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
xenUnifiedDomainGetInfo, /* domainGetInfo */
|
xenUnifiedDomainGetInfo, /* domainGetInfo */
|
||||||
xenUnifiedDomainSave, /* domainSave */
|
xenUnifiedDomainSave, /* domainSave */
|
||||||
xenUnifiedDomainRestore, /* domainRestore */
|
xenUnifiedDomainRestore, /* domainRestore */
|
||||||
@ -2110,8 +2114,6 @@ static virDriver xenUnifiedDriver = {
|
|||||||
NULL, /* domainRevertToSnapshot */
|
NULL, /* domainRevertToSnapshot */
|
||||||
NULL, /* domainSnapshotDelete */
|
NULL, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
NULL, /* domainSetMemoryParameters */
|
|
||||||
NULL, /* domainGetMemoryParameters */
|
|
||||||
xenUnifiedDomainOpenConsole, /* domainOpenConsole */
|
xenUnifiedDomainOpenConsole, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1804,6 +1804,10 @@ static virDriver xenapiDriver = {
|
|||||||
xenapiDomainSetMaxMemory, /* domainSetMaxMemory */
|
xenapiDomainSetMaxMemory, /* domainSetMaxMemory */
|
||||||
NULL, /* domainSetMemory */
|
NULL, /* domainSetMemory */
|
||||||
NULL, /* domainSetMemoryFlags */
|
NULL, /* domainSetMemoryFlags */
|
||||||
|
NULL, /* domainSetMemoryParameters */
|
||||||
|
NULL, /* domainGetMemoryParameters */
|
||||||
|
NULL, /* domainSetBlkioParameters */
|
||||||
|
NULL, /* domainGetBlkioParameters */
|
||||||
xenapiDomainGetInfo, /* domainGetInfo */
|
xenapiDomainGetInfo, /* domainGetInfo */
|
||||||
NULL, /* domainSave */
|
NULL, /* domainSave */
|
||||||
NULL, /* domainRestore */
|
NULL, /* domainRestore */
|
||||||
@ -1879,8 +1883,6 @@ static virDriver xenapiDriver = {
|
|||||||
NULL, /* domainRevertToSnapshot */
|
NULL, /* domainRevertToSnapshot */
|
||||||
NULL, /* domainSnapshotDelete */
|
NULL, /* domainSnapshotDelete */
|
||||||
NULL, /* qemuDomainMonitorCommand */
|
NULL, /* qemuDomainMonitorCommand */
|
||||||
NULL, /* domainSetMemoryParameters */
|
|
||||||
NULL, /* domainGetMemoryParameters */
|
|
||||||
NULL, /* domainOpenConsole */
|
NULL, /* domainOpenConsole */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user