[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: initialise ao when starting pvqemu for stubdomain


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Sat, 19 May 2012 14:22:08 +0000
  • Delivery-date: Sat, 19 May 2012 14:22:19 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1337344800 -3600
# Node ID 745b9920dfa39ac7e569f86591835d0984fa4b88
# Parent  1c5994ce1533dc93f111c19c406069e48584350d
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@xxxxxxxxxx>
Acked-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r 1c5994ce1533 -r 745b9920dfa3 tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c    Fri May 18 13:39:59 2012 +0100
+++ b/tools/libxl/libxl_dm.c    Fri May 18 13:40:00 2012 +0100
@@ -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;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.