Poll main loop after I/O events were received
commitc9f711a5d31e22dac932c1c01e9c0f97caff0988
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 22 Aug 2011 15:46:02 +0000 (22 17:46 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Aug 2011 19:37:02 +0000 (22 14:37 -0500)
tree1d7b980c02326f221d70778ca1e7798e66439d24
parent200668ba0839e664f0e4d0bcdc55ab5a163a418a
Poll main loop after I/O events were received

Polling until select returns empty fdsets helps to reduce the switches
between iothread and vcpus. The benefit of this patch is best visible
when running an SMP guest on an SMP host in emulation mode.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
sysemu.h
vl.c