[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel][PATCH] xl create: endless loop
On Monday 18 October 2010 14:50:35 Christoph Egger wrote: > Hi! > > I cannot start a guest with 'xl create' due to an endless loop in libxl.c, > function libxl__get_free_memory_slack(): > > There is this code snippet: > > retry: > free_mem_slack_s = libxl__xs_read(gc, XBT_NULL, free_mem_slack_path); > if (!free_mem_slack_s) { > rc = libxl__fill_dom0_memory_info(gc, &target_memkb); > if (rc < 0) > return rc; > goto retry; > } else { > > > libxl__xs_read() returns 0 and libxl__fill_dom0_memory_info() also returns > 0. So there's a loop of retries. Attached patch fixes the endless loop. Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 Attachment:
xen_xl.diff _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |