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