aboutsummaryrefslogtreecommitdiff
path: root/target/i386
diff options
context:
space:
mode:
authorJustin Terry (VM) via Qemu-devel <qemu-devel@nongnu.org>2018-02-26 09:13:32 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-06 14:01:29 +0100
commitb27350e1b992eca3fa4b3fea4065b1b3897ec57f (patch)
treead64d4e11ae2000fc483450280b5362465b94db5 /target/i386
parent0ab2e74d792ece3e957b414cbe27e32f14f23a14 (diff)
downloadqemu-b27350e1b992eca3fa4b3fea4065b1b3897ec57f.zip
qemu-b27350e1b992eca3fa4b3fea4065b1b3897ec57f.tar.gz
qemu-b27350e1b992eca3fa4b3fea4065b1b3897ec57f.tar.bz2
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>
Diffstat (limited to 'target/i386')
-rw-r--r--target/i386/whpx-all.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/target/i386/whpx-all.c b/target/i386/whpx-all.c
index 14ea732..74a8f4d 100644
--- a/target/i386/whpx-all.c
+++ b/target/i386/whpx-all.c
@@ -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();
}
}