提交 4cff75a4 编写于 作者: L Lai Jiangshan 提交者: Eric Blake

send-key: Implementing the remote protocol

Signed-off-by: NLai Jiangshan <laijs@cn.fujitsu.com>
上级 e138d310
...@@ -6338,6 +6338,7 @@ static virDriver remote_driver = { ...@@ -6338,6 +6338,7 @@ static virDriver remote_driver = {
.domainMigratePerform3 = remoteDomainMigratePerform3, /* 0.9.2 */ .domainMigratePerform3 = remoteDomainMigratePerform3, /* 0.9.2 */
.domainMigrateFinish3 = remoteDomainMigrateFinish3, /* 0.9.2 */ .domainMigrateFinish3 = remoteDomainMigrateFinish3, /* 0.9.2 */
.domainMigrateConfirm3 = remoteDomainMigrateConfirm3, /* 0.9.2 */ .domainMigrateConfirm3 = remoteDomainMigrateConfirm3, /* 0.9.2 */
.domainSendKey = remoteDomainSendKey, /* 0.9.3 */
}; };
static virNetworkDriver network_driver = { static virNetworkDriver network_driver = {
......
...@@ -191,6 +191,11 @@ const REMOTE_SECRET_UUID_LIST_MAX = 16384; ...@@ -191,6 +191,11 @@ const REMOTE_SECRET_UUID_LIST_MAX = 16384;
*/ */
const REMOTE_CPU_BASELINE_MAX = 256; const REMOTE_CPU_BASELINE_MAX = 256;
/*
* Max number of sending keycodes.
*/
const REMOTE_DOMAIN_SEND_KEY_MAX = 16;
/* UUID. VIR_UUID_BUFLEN definition comes from libvirt.h */ /* UUID. VIR_UUID_BUFLEN definition comes from libvirt.h */
typedef opaque remote_uuid[VIR_UUID_BUFLEN]; typedef opaque remote_uuid[VIR_UUID_BUFLEN];
...@@ -811,6 +816,14 @@ struct remote_domain_inject_nmi_args { ...@@ -811,6 +816,14 @@ struct remote_domain_inject_nmi_args {
unsigned int flags; unsigned int flags;
}; };
struct remote_domain_send_key_args {
remote_nonnull_domain dom;
unsigned int codeset;
unsigned int holdtime;
unsigned int keycodes<REMOTE_DOMAIN_SEND_KEY_MAX>;
unsigned int flags;
};
struct remote_domain_set_vcpus_args { struct remote_domain_set_vcpus_args {
remote_nonnull_domain dom; remote_nonnull_domain dom;
unsigned int nvcpus; unsigned int nvcpus;
...@@ -2305,7 +2318,8 @@ enum remote_procedure { ...@@ -2305,7 +2318,8 @@ enum remote_procedure {
REMOTE_PROC_INTERFACE_CHANGE_ROLLBACK = 222, /* autogen autogen */ REMOTE_PROC_INTERFACE_CHANGE_ROLLBACK = 222, /* autogen autogen */
REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS_FLAGS = 223, /* skipgen autogen */ REMOTE_PROC_DOMAIN_GET_SCHEDULER_PARAMETERS_FLAGS = 223, /* skipgen autogen */
REMOTE_PROC_DOMAIN_EVENT_CONTROL_ERROR = 224, /* skipgen skipgen */ REMOTE_PROC_DOMAIN_EVENT_CONTROL_ERROR = 224, /* skipgen skipgen */
REMOTE_PROC_DOMAIN_PIN_VCPU_FLAGS = 225 /* skipgen autogen */ REMOTE_PROC_DOMAIN_PIN_VCPU_FLAGS = 225, /* skipgen autogen */
REMOTE_PROC_DOMAIN_SEND_KEY = 226 /* autogen autogen */
/* /*
* Notice how the entries are grouped in sets of 10 ? * Notice how the entries are grouped in sets of 10 ?
......
...@@ -505,6 +505,16 @@ struct remote_domain_inject_nmi_args { ...@@ -505,6 +505,16 @@ struct remote_domain_inject_nmi_args {
remote_nonnull_domain dom; remote_nonnull_domain dom;
u_int flags; u_int flags;
}; };
struct remote_domain_send_key_args {
remote_nonnull_domain dom;
u_int codeset;
u_int holdtime;
struct {
u_int keycodes_len;
u_int * keycodes_val;
} keycodes;
u_int flags;
};
struct remote_domain_set_vcpus_args { struct remote_domain_set_vcpus_args {
remote_nonnull_domain dom; remote_nonnull_domain dom;
u_int nvcpus; u_int nvcpus;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册