kvm specific wait_io_event
commitfed6c3444c714e88eb84dae58fcde0182865db8f
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 17 Feb 2010 22:14:41 +0000 (17 20:14 -0200)
committerAvi Kivity <avi@redhat.com>
Mon, 22 Feb 2010 08:58:33 +0000 (22 10:58 +0200)
treec818d7bf63d1ae667c8e8e8b94df11bc3fb19291
parentadc8c965c401ec3becc14eabf7a5a6ba7a002f46
kvm specific wait_io_event

In KVM mode the global mutex is released when vcpus are executing,
which means acquiring the fairness mutex is not required.

Also for KVM there is one thread per vcpu, so tcg_has_work is meaningless.

Add a new qemu_wait_io_event_common function to hold common code
between TCG/KVM.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
vl.c