xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Fantu <fantonifabio@tiscali.it>
Cc: Ian.Jackson@citrix.com,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Libxl regression on pv domU start
Date: Tue, 6 Mar 2012 06:18:50 -0800	[thread overview]
Message-ID: <1331043530.22559.87.camel@cthulhu.hellion.org.uk> (raw)
In-Reply-To: <1331042415153-5540887.post@n5.nabble.com>

On Tue, 2012-03-06 at 09:00 -0500, Fantu wrote:
> Dom0 is Wheezy 64 bit with xen-unstable from source.
> With changeset 24858:a88ba599add1 work, after update to 24967:33659563f589
> not.
> 
> xl create /etc/xen/lucid.cfg
> Parsing config file /etc/xen/lucid.cfg
> xl: libxl.c:214: libxl_defbool_val: Assertion
> `!libxl_defbool_is_default(db)' failed.
> Annullato

The following fixes this for me.

8<----------------------------

# HG changeset patch
# User Ian Campbell <ian.campbell@citrix.com>
# Date 1331043402 0
# Node ID 7cedb78a4a1d7b410a787da6401044485a82e1b3
# Parent  e8efe0a654517d9695c391b55b07612ebe79b409
libxl: always set a default value for VFB.opengl

Fixes an assertion reported by Fantu.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

diff -r e8efe0a65451 -r 7cedb78a4a1d tools/libxl/libxl.c
--- a/tools/libxl/libxl.c	Fri Mar 02 21:06:14 2012 +0000
+++ b/tools/libxl/libxl.c	Tue Mar 06 14:16:42 2012 +0000
@@ -2255,9 +2255,7 @@ int libxl__device_vfb_setdefault(libxl__
     }
 
     libxl_defbool_setdefault(&vfb->sdl.enable, false);
-    if (libxl_defbool_val(vfb->sdl.enable)) {
-        libxl_defbool_setdefault(&vfb->sdl.opengl, false);
-    }
+    libxl_defbool_setdefault(&vfb->sdl.opengl, false);
 
     return 0;
 }

  reply	other threads:[~2012-03-06 14:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-06 14:00 Libxl regression on pv domU start Fantu
2012-03-06 14:18 ` Ian Campbell [this message]
2012-03-06 14:31   ` Fantu
2012-03-13 17:06     ` Ian Jackson
2012-03-12 11:18   ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331043530.22559.87.camel@cthulhu.hellion.org.uk \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@citrix.com \
    --cc=fantonifabio@tiscali.it \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).