From: Jiri Denemark Date: Fri, 12 Mar 2010 13:55:08 +0000 (+0100) Subject: Internal driver API for virDomainMigrateSetMaxDowntime X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7f7849c996a3bf81b251637181add53fcc244d30;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git Internal driver API for virDomainMigrateSetMaxDowntime --- diff --git a/src/driver.h b/src/driver.h index 1a511eb93..362533fbb 100644 --- a/src/driver.h +++ b/src/driver.h @@ -381,6 +381,11 @@ typedef int typedef int (*virDrvDomainAbortJob)(virDomainPtr domain); +typedef int + (*virDrvDomainMigrateSetMaxDowntime)(virDomainPtr domain, + unsigned long long downtime, + unsigned int flags); + /** * _virDriver: * @@ -474,6 +479,7 @@ struct _virDriver { virDrvCPUBaseline cpuBaseline; virDrvDomainGetJobInfo domainGetJobInfo; virDrvDomainAbortJob domainAbortJob; + virDrvDomainMigrateSetMaxDowntime domainMigrateSetMaxDowntime; }; typedef int diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index ed2cbf738..19e9c02da 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -3411,6 +3411,7 @@ static virDriver esxDriver = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 35c865973..aeec593bb 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -2453,6 +2453,7 @@ static virDriver lxcDriver = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; static virStateDriver lxcStateDriver = { diff --git a/src/opennebula/one_driver.c b/src/opennebula/one_driver.c index 9fc0ada3e..e1d1efc99 100644 --- a/src/opennebula/one_driver.c +++ b/src/opennebula/one_driver.c @@ -788,6 +788,7 @@ static virDriver oneDriver = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; static virStateDriver oneStateDriver = { diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index b7bc43b6f..50aadfc68 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -1540,6 +1540,7 @@ static virDriver openvzDriver = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; int openvzRegister(void) { diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index ae210c38e..e4d67dc17 100644 --- a/src/phyp/phyp_driver.c +++ b/src/phyp/phyp_driver.c @@ -1647,6 +1647,7 @@ virDriver phypDriver = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; int diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 3e8e76ec5..670e06602 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -9601,6 +9601,7 @@ static virDriver qemuDriver = { qemuCPUBaseline, /* cpuBaseline */ qemuDomainGetJobInfo, /* domainGetJobInfo */ qemuDomainAbortJob, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 0ee038e2a..2d5441b5d 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -9152,6 +9152,7 @@ static virDriver remote_driver = { remoteCPUBaseline, /* cpuBaseline */ remoteDomainGetJobInfo, /* domainGetJobInfo */ remoteDomainAbortJob, /* domainFinishJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; static virNetworkDriver network_driver = { diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 796081279..f54ebaef2 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -5245,6 +5245,7 @@ static virDriver testDriver = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; static virNetworkDriver testNetworkDriver = { diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c index eec239f4f..bf067876b 100644 --- a/src/uml/uml_driver.c +++ b/src/uml/uml_driver.c @@ -1932,6 +1932,7 @@ static virDriver umlDriver = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index b80891067..1765d63ec 100644 --- a/src/vbox/vbox_tmpl.c +++ b/src/vbox/vbox_tmpl.c @@ -7066,6 +7066,7 @@ virDriver NAME(Driver) = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; virNetworkDriver NAME(NetworkDriver) = { diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c index 5b9649c23..204ed9112 100644 --- a/src/xen/xen_driver.c +++ b/src/xen/xen_driver.c @@ -1906,6 +1906,7 @@ static virDriver xenUnifiedDriver = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; /** diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c index a33d7911d..ac004243b 100644 --- a/src/xenapi/xenapi_driver.c +++ b/src/xenapi/xenapi_driver.c @@ -1747,6 +1747,7 @@ static virDriver xenapiDriver = { NULL, /* cpuBaseline */ NULL, /* domainGetJobInfo */ NULL, /* domainAbortJob */ + NULL, /* domainMigrateSetMaxDowntime */ }; /**