From 21e68a9ce7eeafe55b3f8348c08c586a318cbddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 12 Dec 2023 15:47:31 +0100 Subject: [PATCH] remote: implement virDomainGraphicsReload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- src/remote/remote_driver.c | 1 + src/remote/remote_protocol.x | 13 ++++++++++++- src/remote_protocol-structs | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index f156475bd2..7b73d97b7a 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -7841,6 +7841,7 @@ static virHypervisorDriver hypervisor_driver = { .domainStartDirtyRateCalc = remoteDomainStartDirtyRateCalc, /* 7.2.0 */ .domainSetLaunchSecurityState = remoteDomainSetLaunchSecurityState, /* 8.0.0 */ .domainFDAssociate = remoteDomainFDAssociate, /* 9.0.0 */ + .domainGraphicsReload = remoteDomainGraphicsReload, /* 10.2.0 */ }; static virNetworkDriver network_driver = { diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index 71ae0cf6c1..41c045ff78 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -3954,6 +3954,11 @@ struct remote_domain_start_dirty_rate_calc_args { unsigned int flags; }; +struct remote_domain_graphics_reload_args { + remote_nonnull_domain dom; + unsigned int type; + unsigned int flags; +}; struct remote_domain_event_memory_device_size_change_msg { int callbackID; @@ -7037,5 +7042,11 @@ enum remote_procedure { * @acl: node_device:save:!VIR_NODE_DEVICE_UPDATE_AFFECT_CONFIG|VIR_NODE_DEVICE_UPDATE_AFFECT_LIVE * @acl: node_device:save:VIR_NODE_DEVICE_UPDATE_AFFECT_CONFIG */ - REMOTE_PROC_NODE_DEVICE_UPDATE = 447 + REMOTE_PROC_NODE_DEVICE_UPDATE = 447, + + /** + * @generate: both + * @acl: domain:write + */ + REMOTE_PROC_DOMAIN_GRAPHICS_RELOAD = 448 }; diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs index ee2ec3e6fa..4d3dc2d249 100644 --- a/src/remote_protocol-structs +++ b/src/remote_protocol-structs @@ -3290,6 +3290,11 @@ struct remote_domain_start_dirty_rate_calc_args { int seconds; u_int flags; }; +struct remote_domain_graphics_reload_args { + remote_nonnull_domain dom; + u_int type; + u_int flags; +}; struct remote_domain_event_memory_device_size_change_msg { int callbackID; remote_nonnull_domain dom; @@ -3749,4 +3754,5 @@ enum remote_procedure { REMOTE_PROC_NETWORK_GET_METADATA = 445, REMOTE_PROC_NETWORK_EVENT_CALLBACK_METADATA_CHANGE = 446, REMOTE_PROC_NODE_DEVICE_UPDATE = 447, + REMOTE_PROC_DOMAIN_GRAPHICS_RELOAD = 448, };