mirror of
https://github.com/qemu/qemu.git
synced 2024-12-11 12:43:55 +08:00
Fix WHPX additional lock acquisition
The code already is holding the qemu_mutex for the IO thread. We do not need to additionally take the lock again in this case. Signed-off-by: Justin Terry (VM) <juterry@microsoft.com> Message-Id: <1519665216-1078-5-git-send-email-juterry@microsoft.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Justin Terry (VM) via Qemu-devel <qemu-devel@nongnu.org>
This commit is contained in:
parent
0ab2e74d79
commit
b27350e1b9
@ -705,9 +705,7 @@ static void whpx_vcpu_pre_run(CPUState *cpu)
|
||||
new_int.InterruptionVector = 2;
|
||||
}
|
||||
if (cpu->interrupt_request & CPU_INTERRUPT_SMI) {
|
||||
qemu_mutex_lock_iothread();
|
||||
cpu->interrupt_request &= ~CPU_INTERRUPT_SMI;
|
||||
qemu_mutex_unlock_iothread();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user