This allows us to use virDomainDefineJSONFlags() when connected to a remote hypervisor. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- src/remote/remote_driver.c | 3 ++- src/remote/remote_protocol.x | 19 ++++++++++++++++++- src/remote_protocol-structs | 8 ++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 5c4dd41227..5c22d139d7 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -8516,7 +8516,8 @@ static virHypervisorDriver hypervisor_driver = { .connectCompareHypervisorCPU = remoteConnectCompareHypervisorCPU, /* 4.4.0 */ .connectBaselineHypervisorCPU = remoteConnectBaselineHypervisorCPU, /* 4.4.0 */ .nodeGetSEVInfo = remoteNodeGetSEVInfo, /* 4.5.0 */ - .domainGetLaunchSecurityInfo = remoteDomainGetLaunchSecurityInfo /* 4.5.0 */ + .domainGetLaunchSecurityInfo = remoteDomainGetLaunchSecurityInfo, /* 4.5.0 */ + .domainDefineJSONFlags = remoteDomainDefineJSONFlags, /* 5.2.0 */ }; static virNetworkDriver network_driver = { diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index 74be4b37d0..93bd916a7d 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -1106,6 +1106,15 @@ struct remote_domain_define_xml_flags_ret { remote_nonnull_domain dom; }; +struct remote_domain_define_json_flags_args { + remote_nonnull_string json; + unsigned int flags; +}; + +struct remote_domain_define_json_flags_ret { + remote_nonnull_domain dom; +}; + struct remote_domain_undefine_args { remote_nonnull_domain dom; }; @@ -6342,5 +6351,13 @@ enum remote_procedure { * @generate: both * @acl: connect:read */ - REMOTE_PROC_CONNECT_GET_STORAGE_POOL_CAPABILITIES = 403 + REMOTE_PROC_CONNECT_GET_STORAGE_POOL_CAPABILITIES = 403, + + /** + * @priority: high + * @generate: both + * @acl: domain:write + * @acl: domain:save + */ + REMOTE_PROC_DOMAIN_DEFINE_JSON_FLAGS = 404 }; diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs index 768189c573..083e3f1e0d 100644 --- a/src/remote_protocol-structs +++ b/src/remote_protocol-structs @@ -715,6 +715,13 @@ struct remote_domain_define_xml_flags_args { struct remote_domain_define_xml_flags_ret { remote_nonnull_domain dom; }; +struct remote_domain_define_json_flags_args { + remote_nonnull_string json; + u_int flags; +}; +struct remote_domain_define_json_flags_ret { + remote_nonnull_domain dom; +}; struct remote_domain_undefine_args { remote_nonnull_domain dom; }; @@ -3385,4 +3392,5 @@ enum remote_procedure { REMOTE_PROC_CONNECT_LIST_ALL_NWFILTER_BINDINGS = 401, REMOTE_PROC_DOMAIN_SET_IOTHREAD_PARAMS = 402, REMOTE_PROC_CONNECT_GET_STORAGE_POOL_CAPABILITIES = 403, + REMOTE_PROC_DOMAIN_DEFINE_JSON_FLAGS = 404, }; -- 2.20.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list