mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
16b151c393
commit
d6f4ade214
3 changed files with 20 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue