]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Remove explicit VNC XML cleanup
authorCole Robinson <crobinso@redhat.com>
Mon, 17 May 2010 15:47:21 +0000 (11:47 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 20 May 2010 15:45:19 +0000 (11:45 -0400)
This only exists for a certain cleanup path in StartVMDaemon, but is
unneeded since domain_conf.c handles this for us automatically.

src/qemu/qemu_driver.c

index d5816a4829026ecf38cc2b300ba344141b9bf6bf..7abf5a00a211e71ff80e5c24ba0f6262b2ee1f0c 100644 (file)
@@ -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;