]> xenbits.xen.org Git - xenclient/toolstack.git/commitdiff
Pause the vm once is created only if startup = paused.
authorJean Guyader <jean.guyader@eu.citrix.com>
Sun, 30 Aug 2009 00:13:19 +0000 (01:13 +0100)
committerJean Guyader <jean.guyader@eu.citrix.com>
Sun, 30 Aug 2009 00:13:19 +0000 (01:13 +0100)
xenvm/vmact.ml

index 38f73fd2576d4cb74a3ce163ae8a0d788e248c1b..6a41563cc2ee44c5144c9ad568e2487edf5d2247 100644 (file)
@@ -478,7 +478,7 @@ let start_vm xc xs state =
        create_vm xc xs state;
        build_vm xc xs state from_scratch false;
 
-       if cfg.startup = StartupStart then (
+       if cfg.startup <> StartupPause then (
                try
                        Domain.unpause ~xc state.vm_domid;
                        change_vmstate state VmRunning;