]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/xenfb.c
disentangle tcg and deadline calculation
[mirror_qemu.git] / hw / xenfb.c
index 795a32626010f43ac860d49f7b3e53dfa022edbb..422cd534008acd1b3bc8549928a05490e4acdcf1 100644 (file)
@@ -983,12 +983,14 @@ void xen_init_display(int domid)
 
 wait_more:
     i++;
-    main_loop_wait(10); /* miliseconds */
+    main_loop_wait(true);
     xfb = xen_be_find_xendev("vfb", domid, 0);
     xin = xen_be_find_xendev("vkbd", domid, 0);
     if (!xfb || !xin) {
-        if (i < 256)
+        if (i < 256) {
+            usleep(10000);
             goto wait_more;
+        }
         xen_be_printf(NULL, 1, "displaystate setup failed\n");
         return;
     }