summaryrefslogtreecommitdiffstats
path: root/hw/xenfb.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2010-03-10 11:38:54 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-17 11:14:54 -0500
commitd6f4ade214a9f74dca9495b83a24ff9c113e4f9a (patch)
tree1ba429cdaebf5908a061e89380ebdcad97eb68be /hw/xenfb.c
parent16b151c3935b0855827de5ff19e0b636b65b4281 (diff)
downloadhqemu-d6f4ade214a9f74dca9495b83a24ff9c113e4f9a.zip
hqemu-d6f4ade214a9f74dca9495b83a24ff9c113e4f9a.tar.gz
disentangle tcg and deadline calculation
Just tell main_loop_wait whether to be blocking or nonblocking, so that there is no need to call qemu_cpus_have_work from the timer subsystem. Instead, tcg_cpu_exec can say "we want the main loop not to block because we have stuff to do". Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/xenfb.c')
-rw-r--r--hw/xenfb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/xenfb.c b/hw/xenfb.c
index 795a326..422cd53 100644
--- a/hw/xenfb.c
+++ b/hw/xenfb.c
@@ -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;
}
OpenPOWER on IntegriCloud