mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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 <glommer@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
ce88f890bd
commit
d549db5a73
3 changed files with 9 additions and 4 deletions
|
@ -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, ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue