]> xenbits.xensource.com Git - people/vhanquez/xen-unstable.git/commitdiff
libxl: initialise ao when starting pvqemu for stubdomain
authorIan Campbell <ian.campbell@citrix.com>
Fri, 18 May 2012 12:40:00 +0000 (13:40 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 18 May 2012 12:40:00 +0000 (13:40 +0100)
libxl__spawn_local_dm requires the ao to be initialised.

Without this starting an HVM guest with a stub qemu hits the
    assert(ao->magic == LIBXL__AO_MAGIC);
in the STATE_AO_GC call from libxl__spawn_local_dm.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dm.c

index 4ad7d0216e2d186f1e149868a2817aab1b594ce9..b1ca9db19ac021255e045275b88175437b5a4156 100644 (file)
@@ -858,6 +858,7 @@ retry_transaction:
             goto out_free;
     }
 
+    sdss->pvqemu.spawn.ao = ao;
     sdss->pvqemu.guest_domid = dm_domid;
     sdss->pvqemu.guest_config = &sdss->dm_config;
     sdss->pvqemu.build_state = &sdss->dm_state;