diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-02 22:23:49 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-10-31 01:02:39 +0100 |
commit | 60e82579c75068cb49af95595aa99d727e657a0a (patch) | |
tree | 4ccc33ee8444f12782c5491ffdfc56660d8c5c87 /kvm-all.c | |
parent | e9f9d6b16510776ae3d07e91b1cfb4d412701270 (diff) | |
download | qemu-60e82579c75068cb49af95595aa99d727e657a0a.zip qemu-60e82579c75068cb49af95595aa99d727e657a0a.tar.gz qemu-60e82579c75068cb49af95595aa99d727e657a0a.tar.bz2 |
cpus: Pass CPUState to qemu_cpu_is_self()
Change return type to bool, move to include/qemu/cpu.h and
add documentation.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
[AF: Updated new caller qemu_in_vcpu_thread()]
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -828,9 +828,11 @@ static MemoryListener kvm_io_listener = { static void kvm_handle_interrupt(CPUArchState *env, int mask) { + CPUState *cpu = ENV_GET_CPU(env); + env->interrupt_request |= mask; - if (!qemu_cpu_is_self(env)) { + if (!qemu_cpu_is_self(cpu)) { qemu_cpu_kick(env); } } |