PPC/KVM: make iothread work
commitc821c2bd4f5fcd3e91e3cd1e2bef76a408677425
authorAlexander Graf <agraf@suse.de>
Sun, 18 Apr 2010 21:10:17 +0000 (18 23:10 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 18 May 2010 18:21:00 +0000 (18 20:21 +0200)
treef69fad9390d452e57e44ea833a8815e902545805
parenta5829fd9e6e49016188efd17a6bb34e80f50cd4c
PPC/KVM: make iothread work

When running with --enable-io-thread the timer we have doesn't help,
because it doesn't wake up the CPU thread. So instead we need to
actually kick it.

While at it I refined the logic a bit to not dumbly trigger a timer
every 500ms, but rather do it more often after an interrupt got injected.
If there's no level based interrupt to be expected, we don't need the
timer anyways.

This makes qemu-system-ppc with --enable-io-thread work when using KVM.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-ppc/kvm.c