Specify remote protocol for virDomainSendProcessSignal

* src/remote/remote_protocol.x: message definition
* src/remote/remote_driver.c: Register driver function
* src/remote_protocol-structs: Test case

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2011-11-15 16:38:19 +00:00
parent 46c329bcc5
commit c51babd90e
3 changed files with 17 additions and 1 deletions

View File

@ -6124,6 +6124,7 @@ static virDriver remote_driver = {
.domainMigrateFinish3 = remoteDomainMigrateFinish3, /* 0.9.2 */
.domainMigrateConfirm3 = remoteDomainMigrateConfirm3, /* 0.9.2 */
.domainSendKey = remoteDomainSendKey, /* 0.9.3 */
.domainSendProcessSignal = remoteDomainSendProcessSignal, /* 1.0.1 */
.domainBlockJobAbort = remoteDomainBlockJobAbort, /* 0.9.4 */
.domainGetBlockJobInfo = remoteDomainGetBlockJobInfo, /* 0.9.4 */
.domainBlockJobSetSpeed = remoteDomainBlockJobSetSpeed, /* 0.9.4 */

View File

@ -1019,6 +1019,13 @@ struct remote_domain_send_key_args {
unsigned int flags;
};
struct remote_domain_send_process_signal_args {
remote_nonnull_domain dom;
hyper pid_value;
unsigned int signum;
unsigned int flags;
};
struct remote_domain_set_vcpus_args {
remote_nonnull_domain dom;
unsigned int nvcpus;
@ -3034,7 +3041,8 @@ enum remote_procedure {
REMOTE_PROC_NETWORK_UPDATE = 291, /* autogen autogen priority:high */
REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND_DISK = 292, /* autogen autogen */
REMOTE_PROC_NODE_GET_CPU_MAP = 293, /* skipgen skipgen */
REMOTE_PROC_DOMAIN_FSTRIM = 294 /* autogen autogen */
REMOTE_PROC_DOMAIN_FSTRIM = 294, /* autogen autogen */
REMOTE_PROC_DOMAIN_SEND_PROCESS_SIGNAL = 295 /* autogen autogen */
/*
* Notice how the entries are grouped in sets of 10 ?

View File

@ -672,6 +672,12 @@ struct remote_domain_send_key_args {
} keycodes;
u_int flags;
};
struct remote_domain_send_process_signal_args {
remote_nonnull_domain dom;
int64_t pid_value;
u_int signum;
u_int flags;
};
struct remote_domain_set_vcpus_args {
remote_nonnull_domain dom;
u_int nvcpus;
@ -2440,4 +2446,5 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND_DISK = 292,
REMOTE_PROC_NODE_GET_CPU_MAP = 293,
REMOTE_PROC_DOMAIN_FSTRIM = 294,
REMOTE_PROC_DOMAIN_SEND_PROCESS_SIGNAL = 295,
};