qemu-kvm: Clean up kvm_update_interrupt_request
commit8a83632bef178b0d83ea883db58584a25132751b
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 27 May 2011 12:19:11 +0000 (27 14:19 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 31 May 2011 13:28:13 +0000 (31 10:28 -0300)
tree411abb49fc2549b467e473533b67b28ce19de9f6
parentdc3a09aacb41db8b9cd620c03de252d03a77f167
qemu-kvm: Clean up kvm_update_interrupt_request

Most tests in kvm_update_interrupt_request are unneeded today:
 - env argument is always non-NULL (caller references it as well)
 - current_env must have been created when we get here
 - env->thread can't be zero (initialized early during cpu creation)

So simply avoid self signaling and multiple kicks, drop the rest.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
cpus.c