1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-03 05:17:54 +03:00

fix tunnelled migration's regression

If the migrateFrom is "stdio" not "stdin", qemuBuildCommandLine()
will convert it to exec:cat or fd:n.
This commit is contained in:
Wen Congyang 2011-04-20 18:20:12 +08:00 committed by Wen Congyang
parent 973b681bdf
commit 2cb1d6f220

View File

@ -316,9 +316,9 @@ qemuMigrationPrepareTunnel(struct qemud_driver *driver,
goto endjob; goto endjob;
} }
/* Start the QEMU daemon, with the same command-line arguments plus /* Start the QEMU daemon, with the same command-line arguments plus
* -incoming stdin (which qemu_command might convert to exec:cat or fd:n) * -incoming stdio (which qemu_command might convert to exec:cat or fd:n)
*/ */
internalret = qemuProcessStart(dconn, driver, vm, "stdin", true, dataFD[1], internalret = qemuProcessStart(dconn, driver, vm, "stdio", true, dataFD[1],
NULL, VIR_VM_OP_MIGRATE_IN_START); NULL, VIR_VM_OP_MIGRATE_IN_START);
if (internalret < 0) { if (internalret < 0) {
qemuAuditDomainStart(vm, "migrated", false); qemuAuditDomainStart(vm, "migrated", false);