kvm_vm.py: create a lock file to avoid VM creation in parallel

VM.create() does a few things (such as finding free ports) which
are not safe to execute in parallel. Use a lock file to make
sure this doesn't happen. The lock is released only after the
VM is started or fails to start.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3245 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed