fix vfb related assertion problem when starting pv-domU
PATCH 1/1 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.
libxl/libxl.c renamed from libxl/libxl.c.org +2 -0
@@ -2949,6 +2949,8 @@ int libxl__device_vfb_setdefault(libxl__ }libxl_defbool_setdefault (&vfb->vnc.findunused, true); + }else { +libxl_defbool_setdefault (&vfb->vnc.findunused, false); }libxl_defbool_setdefault (&vfb->sdl.enable, false);
Quoted 8 lines · Ronny Hegewald
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.
Quoted 5 lines
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.
This seems like a good fix, in order to for us to apply it please can you "sign off" as described in
http://wiki.xen.org/wiki/Submitting_Xen_Patches#Signing_off_a_patch
I do wonder if perhaps libxl__device_vfb_add ought to be gating a bunch of those accesses on vnc.enabled though.
Ian.
Quoted 20 lines
libxl/libxl.c renamed from libxl/libxl.c.org +2
-0@@ -2949,6 +2949,8 @@ int libxl__device_vfb_setdefault(libxl__ }libxl_defbool_setdefault (&vfb->vnc.findunused, true); + }else { +libxl_defbool_setdefault (&vfb->vnc.findunused, false); }libxl_defbool_setdefault (&vfb->sdl.enable, false);_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
PATCH v2 1/1 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.
libxl/libxl.c renamed from libxl/libxl.c.org +2 -0
@@ -2949,6 +2949,8 @@ int libxl__device_vfb_setdefault(libxl__ }libxl_defbool_setdefault (&vfb->vnc.findunused, true); + }else { +libxl_defbool_setdefault (&vfb->vnc.findunused, false); }libxl_defbool_setdefault (&vfb->sdl.enable, false);
Quoted 3 lines
Signed-off-by Ronny [email protected]
Somehow the sign off gone wrong. it was supposed to be
Ian Campbell
Acked-byQuoted 7 lines · Ronny Hegewald
Quoted 3 lines
Signed-off-by Ronny [email protected]Somehow the sign off gone wrong. it was supposed to be
Signed-off-by Ronny Hegewald <[email protected]>
For future reference can you generate patches so they apply with "patch -p1", the tooling copes much better with those sorts of patches.
e.g.:
--- tools/libxl/libxl.c.org
+++ tools/libxl/libxl.c
should look like:
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
or:
--- xen.orig/tools/libxl/libxl.c
+++ xen/tools/libxl/libxl.c
or:
--- xen/tools/libxl/libxl.c.orig
+++ xen/tools/libxl/libxl.c
etc.
Tools like git format-patch + send-email or hg export / hg email (the last described in http://wiki.xen.org/wiki/Submitting_Xen_Patches) do this automatically I think.
Thanks,
Ian.
Quoted 9 lines · Ian Campbell
Quoted 5 lines · Ronny Hegewald
Quoted 1 line
Signed-off-by Ronny [email protected]Somehow the sign off gone wrong. it was supposed to be
Signed-off-by Ronny Hegewald <[email protected]>
Wouldn't this patch also be appropriate for the 4.2 stable branch?
Quoted 4 lines · Ronny Hegewald
Quoted 3 lines · Ian Campbell
Quoted 2 lines · Ronny Hegewald
Quoted 1 line
Signed-off-by Ronny [email protected]
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Somehow the sign off gone wrong. it was supposed to be
Signed-off-by Ronny Hegewald <[email protected]>Wouldn't this patch also be appropriate for the 4.2 stable branch?
Yes, I think so.
Ian, this is 26145:8b93ac0c93f3 in unstable.
Ian.