1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

Add the remote protocol implementation for virNodeSuspendForDuration

Implement the remote protocol for virNodeSuspendForDuration() API.
This commit is contained in:
Srivatsa S. Bhat 2011-11-29 15:15:14 +08:00 committed by Daniel Veillard
parent 979676e3db
commit 76da40a820
3 changed files with 16 additions and 1 deletions

View File

@ -4618,6 +4618,7 @@ static virDriver remote_driver = {
.domainBlockPull = remoteDomainBlockPull, /* 0.9.4 */ .domainBlockPull = remoteDomainBlockPull, /* 0.9.4 */
.setKeepAlive = remoteSetKeepAlive, /* 0.9.8 */ .setKeepAlive = remoteSetKeepAlive, /* 0.9.8 */
.isAlive = remoteIsAlive, /* 0.9.8 */ .isAlive = remoteIsAlive, /* 0.9.8 */
.nodeSuspendForDuration = remoteNodeSuspendForDuration, /* 0.9.8 */
}; };
static virNetworkDriver network_driver = { static virNetworkDriver network_driver = {

View File

@ -2269,6 +2269,13 @@ struct remote_domain_open_graphics_args {
unsigned int flags; unsigned int flags;
}; };
struct remote_node_suspend_for_duration_args {
unsigned int target;
unsigned hyper duration;
unsigned int flags;
};
/*----- Protocol. -----*/ /*----- Protocol. -----*/
/* Define the program number, protocol version and procedure numbers here. */ /* Define the program number, protocol version and procedure numbers here. */
@ -2564,7 +2571,8 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_SNAPSHOT_NUM_CHILDREN = 246, /* autogen autogen priority:high */ REMOTE_PROC_DOMAIN_SNAPSHOT_NUM_CHILDREN = 246, /* autogen autogen priority:high */
REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_CHILDREN_NAMES = 247, /* autogen autogen priority:high */ REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_CHILDREN_NAMES = 247, /* autogen autogen priority:high */
REMOTE_PROC_DOMAIN_EVENT_DISK_CHANGE = 248, /* skipgen skipgen */ REMOTE_PROC_DOMAIN_EVENT_DISK_CHANGE = 248, /* skipgen skipgen */
REMOTE_PROC_DOMAIN_OPEN_GRAPHICS = 249 /* skipgen skipgen */ REMOTE_PROC_DOMAIN_OPEN_GRAPHICS = 249, /* skipgen skipgen */
REMOTE_PROC_NODE_SUSPEND_FOR_DURATION = 250 /* autogen autogen */
/* /*
* Notice how the entries are grouped in sets of 10 ? * Notice how the entries are grouped in sets of 10 ?

View File

@ -1757,6 +1757,11 @@ struct remote_domain_open_graphics_args {
u_int idx; u_int idx;
u_int flags; u_int flags;
}; };
struct remote_node_suspend_for_duration_args {
u_int target;
uint64_t duration;
u_int flags;
};
enum remote_procedure { enum remote_procedure {
REMOTE_PROC_OPEN = 1, REMOTE_PROC_OPEN = 1,
REMOTE_PROC_CLOSE = 2, REMOTE_PROC_CLOSE = 2,
@ -2007,4 +2012,5 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_CHILDREN_NAMES = 247, REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_CHILDREN_NAMES = 247,
REMOTE_PROC_DOMAIN_EVENT_DISK_CHANGE = 248, REMOTE_PROC_DOMAIN_EVENT_DISK_CHANGE = 248,
REMOTE_PROC_DOMAIN_OPEN_GRAPHICS = 249, REMOTE_PROC_DOMAIN_OPEN_GRAPHICS = 249,
REMOTE_PROC_NODE_SUSPEND_FOR_DURATION = 250,
}; };