aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_dm.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-05-18 13:40:00 +0100
committerIan Campbell <ian.campbell@citrix.com>2012-05-18 13:40:00 +0100
commit2030978b6ad0bb2f9bbbcfffb8e65da6ae8431e9 (patch)
treeed6523a0d12179f847254697e06594916848ad3a /tools/libxl/libxl_dm.c
parentdd7c460bad640578381132ca491ca5d427b1ebab (diff)
downloadxen-2030978b6ad0bb2f9bbbcfffb8e65da6ae8431e9.tar.gz
xen-2030978b6ad0bb2f9bbbcfffb8e65da6ae8431e9.tar.bz2
xen-2030978b6ad0bb2f9bbbcfffb8e65da6ae8431e9.zip
libxl: initialise ao when starting pvqemu for stubdomain
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>
Diffstat (limited to 'tools/libxl/libxl_dm.c')
-rw-r--r--tools/libxl/libxl_dm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 4ad7d0216e..b1ca9db19a 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -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;