From: Cole Robinson Date: Mon, 17 May 2010 15:47:21 +0000 (-0400) Subject: qemu: Remove explicit VNC XML cleanup X-Git-Tag: v0.8.2~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4da188ea3d89c2ecd937d5f22e3af47c3249b4b3;p=thirdparty%2Flibvirt.git qemu: Remove explicit VNC XML cleanup This only exists for a certain cleanup path in StartVMDaemon, but is unneeded since domain_conf.c handles this for us automatically. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index d5816a4829..7abf5a00a2 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -3577,10 +3577,6 @@ cleanup: driver->securityDriver->domainReleaseSecurityLabel) driver->securityDriver->domainReleaseSecurityLabel(vm); qemuRemoveCgroup(driver, vm, 1); - if ((vm->def->ngraphics == 1) && - vm->def->graphics[0]->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC && - vm->def->graphics[0]->data.vnc.autoport) - vm->def->graphics[0]->data.vnc.port = -1; if (logfile != -1) close(logfile); vm->def->id = -1;