From d549db5a732ef2ec145b84c5008a7585cf17cf67 Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Wed, 7 Oct 2009 16:38:03 -0300 Subject: unlock iothread mutex before running kvm ioctl Without this, kvm will hold the mutex while it issues its run ioctl, and never be able to step out of it, causing a deadlock. Patchworks-ID: 35359 Signed-off-by: Glauber Costa Signed-off-by: Anthony Liguori --- qemu-common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qemu-common.h') diff --git a/qemu-common.h b/qemu-common.h index 12e7dd0ada..820dd37a5d 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -146,6 +146,9 @@ char *qemu_strndup(const char *str, size_t size); void *get_mmap_addr(unsigned long size); +void qemu_mutex_lock_iothread(void); +void qemu_mutex_unlock_iothread(void); + /* Error handling. */ void QEMU_NORETURN hw_error(const char *fmt, ...) -- cgit v1.2.3