mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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()]
This commit is contained in:
parent
e9f9d6b165
commit
60e82579c7
7 changed files with 28 additions and 14 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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue