]> xenbits.xensource.com Git - qemu-xen-4.6-testing.git/commitdiff
stubdom: fix creation hang by not initialising xenfb_pv if nographic anthony.last_qemu_master
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 29 Jun 2010 13:42:48 +0000 (14:42 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 29 Jun 2010 13:42:48 +0000 (14:42 +0100)
Contributed-by: Eric Chanudet <eric.chanudet@citrix.com>
Modified-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
vl.c

diff --git a/vl.c b/vl.c
index 404d67a67775d81a8b3d2cbc66c7e840b9174ec0..ad8c0d02b62f0a3b0c4ea0ca5624c9c336f29c2c 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -5967,16 +5967,16 @@ int main(int argc, char **argv, char **envp)
     /* just use the first displaystate for the moment */
     ds = display_state;
     /* terminal init */
-#ifdef CONFIG_STUBDOM
-    if (xenfb_pv_display_init(ds) == 0) {
-    } else
-#endif
     if (nographic) {
         if (curses) {
             fprintf(stderr, "fatal: -nographic can't be used with -curses\n");
             exit(1);
         }
     } else { 
+#ifdef CONFIG_STUBDOM
+        if (xenfb_pv_display_init(ds) == 0) {
+        } else
+#endif
 #if defined(CONFIG_CURSES)
             if (curses) {
                 /* At the moment curses cannot be used with other displays */