const char *uri,
unsigned long flags,
const char *dname,
- unsigned long resource)
+ unsigned long bandwidth)
{
virQEMUDriver *driver = dom->conn->privateData;
virDomainObj *vm = NULL;
NULL,
migParams, cookie, cookielen,
NULL, NULL, /* No output cookies in v2 */
- flags, dname, resource, false);
+ flags, dname, bandwidth, false);
cleanup:
virDomainObjEndAPI(&vm);
int *cookieoutlen,
unsigned int flags,
const char *dname,
- unsigned long resource,
+ unsigned long bandwidth,
bool v3proto)
{
g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);
"migrate_disks=%p, nbdPort=%d, "
"nbdURI=%s, "
"cookiein=%s, cookieinlen=%d, cookieout=%p, cookieoutlen=%p, "
- "flags=0x%x, dname=%s, resource=%lu, v3proto=%d",
+ "flags=0x%x, dname=%s, bandwidth=%lu, v3proto=%d",
driver, conn, vm, NULLSTR(xmlin), NULLSTR(dconnuri),
NULLSTR(uri), NULLSTR(graphicsuri), NULLSTR(listenAddress),
migrate_disks, nbdPort, NULLSTR(nbdURI),
NULLSTR(cookiein), cookieinlen, cookieout, cookieoutlen,
- flags, NULLSTR(dname), resource, v3proto);
+ flags, NULLSTR(dname), bandwidth, v3proto);
if (cfg->migrateTLSForce &&
!(flags & VIR_MIGRATE_TUNNELLED) &&
nbdURI, migParams,
cookiein, cookieinlen,
cookieout, cookieoutlen,
- flags, dname, resource, v3proto);
+ flags, dname, bandwidth, v3proto);
}
if (dconnuri) {
migParams,
cookiein, cookieinlen,
cookieout, cookieoutlen,
- flags, resource, nbdURI);
+ flags, bandwidth, nbdURI);
}
return qemuMigrationSrcPerformJob(driver, conn, vm, xmlin, persist_xml, NULL,
nbdURI, migParams,
cookiein, cookieinlen,
cookieout, cookieoutlen, flags,
- dname, resource, v3proto);
+ dname, bandwidth, v3proto);
}
static int
DomainMigrateFinish2 => { arg => { flags => 1 } },
DomainMigrateFinish3 => { arg => { flags => 1 } },
DomainMigratePeer2Peer => { arg => { flags => 1, resource => 1 } },
- DomainMigratePerform => { arg => { flags => 1, resource => 1 } },
+ DomainMigratePerform => { arg => { flags => 1, bandwidth => 1 } },
DomainMigratePerform3 => { arg => { flags => 1, resource => 1 } },
DomainMigratePrepare => { arg => { flags => 1, bandwidth => 1 } },
DomainMigratePrepare2 => { arg => { flags => 1, resource => 1 } },