diff options
author | Ronny Hegewald <ronny.hegewald@online.de> | 2012-12-13 14:30:44 +0000 |
---|---|---|
committer | Ronny Hegewald <ronny.hegewald@online.de> | 2012-12-13 14:30:44 +0000 |
commit | 2a004b0a6945658434570f3ac365ffe629a2ac44 (patch) | |
tree | b5d4262bf9a9af225dfaae418ec3e16cabeaa0a8 | |
parent | ab5984c7ace94ebe8d468e4dfe0c882dc6b3dba2 (diff) | |
download | xen-2a004b0a6945658434570f3ac365ffe629a2ac44.tar.gz xen-2a004b0a6945658434570f3ac365ffe629a2ac44.tar.bz2 xen-2a004b0a6945658434570f3ac365ffe629a2ac44.zip |
libxl: fix vfb related assertion problem when starting pv-domU
When a config-file for a pv-domU has a vfb section with a vnc=0
option then a "xl create" for that domU crashes with the message
xl: libxl.c:252: libxl_defbool_val: Assertion `!libxl_defbool_is_default(db)'
failed.
and the domU hangs early in the start.
This patch fixes the cause of the assertion and let the domU start
normally.
This problem exists since xen 4.2.
Signed-off-by: Ronny Hegewald <Ronny.Hegewald@online.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen-unstable changeset: 26145:8b93ac0c93f3
Backport-requested-by: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r-- | tools/libxl/libxl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 4b4c5b0945..bd937bb1b0 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -3017,6 +3017,8 @@ int libxl__device_vfb_setdefault(libxl__gc *gc, libxl_device_vfb *vfb) } libxl_defbool_setdefault(&vfb->vnc.findunused, true); + } else { + libxl_defbool_setdefault(&vfb->vnc.findunused, false); } libxl_defbool_setdefault(&vfb->sdl.enable, false); |