dom0/qvm-core: release lock in VM.start() right before starting qrexec (#344)

This commit is contained in:
Marek Marczykowski 2011-10-10 11:07:30 +02:00
parent 57aec48050
commit e1ccda362c

View File

@ -1052,6 +1052,13 @@ class QubesVm(object):
print >> sys.stderr, "--> Starting the VM..."
xc.domain_unpause(xid)
# close() is not really needed, because the descriptor is close-on-exec
# anyway, the reason to postpone close() is that possibly xl is not done
# constructing the domain after its main process exits
# so we close() when we know the domain is up
# the successful unpause is some indicator of it
qmemman_client.close()
if not preparing_dvm:
if verbose:
print >> sys.stderr, "--> Starting the qrexec daemon..."
@ -1060,13 +1067,6 @@ class QubesVm(object):
self.force_shutdown()
raise OSError ("ERROR: Cannot execute qrexec_daemon!")
# close() is not really needed, because the descriptor is close-on-exec
# anyway, the reason to postpone close() is that possibly xl is not done
# constructing the domain after its main process exits
# so we close() when we know the domain is up
# the successful qrexec connect is a good indicator of it
qmemman_client.close()
if preparing_dvm:
if verbose:
print >> sys.stderr, "--> Preparing config template for DispVM"