Re: [libvirt] [PATCH v2 3/5] Implement virDomainMigrateSetMaxDowntime in remote driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 18, 2010 at 08:12:46PM +0100, Jiri Denemark wrote:
> ---
>  src/remote/remote_driver.c |   32 +++++++++++++++++++++++++++++++-
>  1 files changed, 31 insertions(+), 1 deletions(-)
> 
> diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
> index 2fb81a1..58f5a9d 100644
> --- a/src/remote/remote_driver.c
> +++ b/src/remote/remote_driver.c
> @@ -7707,6 +7707,36 @@ done:
>  }
>  
>  
> +static int
> +remoteDomainMigrateSetMaxDowntime(virDomainPtr domain,
> +                                  unsigned long long downtime,
> +                                  unsigned int flags)
> +{
> +    struct private_data *priv = domain->conn->privateData;
> +    remote_domain_migrate_set_max_downtime_args args;
> +    int rv = -1;
> +
> +    remoteDriverLock(priv);
> +
> +    make_nonnull_domain(&args.dom, domain);
> +    args.downtime = downtime;
> +    args.flags = flags;
> +
> +    if (call(domain->conn, priv, 0, REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_DOWNTIME,
> +             (xdrproc_t) xdr_remote_domain_migrate_set_max_downtime_args,
> +             (char *) &args,
> +             (xdrproc_t) xdr_void,
> +             (char *) NULL) == -1)
> +        goto done;
> +
> +    rv = 0;
> +
> +done:
> +    remoteDriverUnlock(priv);
> +    return rv;
> +}
> +
> +
>  /*----------------------------------------------------------------------*/
>  
>  
> @@ -9126,7 +9156,7 @@ static virDriver remote_driver = {
>      remoteCPUBaseline, /* cpuBaseline */
>      remoteDomainGetJobInfo, /* domainGetJobInfo */
>      remoteDomainAbortJob, /* domainFinishJob */
> -    NULL, /* domainMigrateSetMaxDowntime */
> +    remoteDomainMigrateSetMaxDowntime, /* domainMigrateSetMaxDowntime */
>  };
>  
>  static virNetworkDriver network_driver = {

  ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]