Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
src/remote/remote_driver.c | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index e654610..00158a6 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -7707,6 +7707,32 @@ done:
}
+static int
+remoteDomainMigrateSetDowntime(virDomainPtr domain,
+ unsigned long long downtime)
+{
+ struct private_data *priv = domain->conn->privateData;
+ remote_domain_migrate_set_downtime_args args;
+ int rv = -1;
+
+ remoteDriverLock(priv);
+
+ make_nonnull_domain(&args.dom, domain);
+ args.downtime = downtime;
+
+ if (call(domain->conn, priv, 0, REMOTE_PROC_DOMAIN_MIGRATE_SET_DOWNTIME,
+ (xdrproc_t) xdr_remote_domain_migrate_set_downtime_args, (char *)
&args,
+ (xdrproc_t) xdr_void, (char *) NULL) == -1)
+ goto done;
+
+ rv = 0;
+
+done:
+ remoteDriverUnlock(priv);
+ return rv;
+}
+
+
/*----------------------------------------------------------------------*/
@@ -9126,7 +9152,7 @@ static virDriver remote_driver = {
remoteCPUBaseline, /* cpuBaseline */
remoteDomainGetJobInfo, /* domainGetJobInfo */
remoteDomainAbortJob, /* domainFinishJob */
- NULL, /* domainMigrateSetDowntime */
+ remoteDomainMigrateSetDowntime, /* domainMigrateSetDowntime */
};
static virNetworkDriver network_driver = {
--
1.7.0.2