[libvirt] [PATCH 3/6] normalize_xml: Wire up the remote protocol

Eric Blake eblake at redhat.com
Mon Jan 9 23:00:26 UTC 2012


On 01/09/2012 07:29 AM, Osier Yang wrote:
> ---
>  src/remote/remote_driver.c   |    1 +
>  src/remote/remote_protocol.x |   12 +++++++++++-
>  src/remote_protocol-structs  |    9 +++++++++
>  3 files changed, 21 insertions(+), 1 deletions(-)
> 
> diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
> index 7580477..74225af 100644
> --- a/src/remote/remote_driver.c
> +++ b/src/remote/remote_driver.c
> @@ -4739,6 +4739,7 @@ static virDriver remote_driver = {
>      .domainGetBlockIoTune = remoteDomainGetBlockIoTune, /* 0.9.8 */
>      .domainSetNumaParameters = remoteDomainSetNumaParameters, /* 0.9.9 */
>      .domainGetNumaParameters = remoteDomainGetNumaParameters, /* 0.9.9 */
> +    .domainNormalizeDeviceXML = remoteDomainNormalizeDeviceXML, /* 0.9.10 */
>  };
>  
>  static virNetworkDriver network_driver = {
> diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
> index ca739ff..e6a51fb 100644
> --- a/src/remote/remote_protocol.x
> +++ b/src/remote/remote_protocol.x
> @@ -2348,6 +2348,15 @@ struct remote_node_suspend_for_duration_args {
>      unsigned int flags;
>  };
>  
> +struct remote_domain_normalize_device_xml_args {
> +    remote_nonnull_domain dom;

Obvious changes here if we go with a different API.

> +    remote_nonnull_string device_xml;
> +    unsigned int flags;
> +};
> +
> +struct remote_domain_normalize_device_xml_ret {
> +    remote_nonnull_string xml;
> +};
>  
>  /*----- Protocol. -----*/
>  
> @@ -2653,7 +2662,8 @@ enum remote_procedure {
>      REMOTE_PROC_DOMAIN_SET_NUMA_PARAMETERS = 254, /* autogen autogen */
>      REMOTE_PROC_DOMAIN_GET_NUMA_PARAMETERS = 255, /* skipgen skipgen */
>      REMOTE_PROC_DOMAIN_SET_INTERFACE_PARAMETERS = 256, /* autogen autogen */
> -    REMOTE_PROC_DOMAIN_GET_INTERFACE_PARAMETERS = 257 /* skipgen skipgen */
> +    REMOTE_PROC_DOMAIN_GET_INTERFACE_PARAMETERS = 257, /* skipgen skipgen */
> +    REMOTE_PROC_DOMAIN_NORMALIZE_DEVICE_XML = 258 /* autogen autogen priority:high */

This part looks fine - it shouldn't be making any monitor calls, so
using the high-priority queue won't starve anything.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120109/b51be3dc/attachment-0001.sig>


More information about the libvir-list mailing list