From 2153fd50f2f05d8cc947d9d5e8d5471d9456479f Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Sun, 7 Feb 2016 03:51:41 +0100 Subject: [PATCH] qemu: don't segfault when using 9p --- .../virtio-9p-use-accessor-to-get-thread_pool.patch | 12 ++++++++++++ srcpkgs/qemu/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/qemu/patches/virtio-9p-use-accessor-to-get-thread_pool.patch diff --git a/srcpkgs/qemu/patches/virtio-9p-use-accessor-to-get-thread_pool.patch b/srcpkgs/qemu/patches/virtio-9p-use-accessor-to-get-thread_pool.patch new file mode 100644 index 00000000000..2226070a8c3 --- /dev/null +++ b/srcpkgs/qemu/patches/virtio-9p-use-accessor-to-get-thread_pool.patch @@ -0,0 +1,12 @@ +diff --git a/hw/9pfs/virtio-9p-coth.c b/hw/9pfs/virtio-9p-coth.c +index fb6e8f80e0f4..ab9425c60fd2 100644 +--- hw/9pfs/virtio-9p-coth.c ++++ hw/9pfs/virtio-9p-coth.c +@@ -36,6 +36,6 @@ static int coroutine_enter_func(void *arg) + void co_run_in_worker_bh(void *opaque) + { + Coroutine *co = opaque; +- thread_pool_submit_aio(qemu_get_aio_context()->thread_pool, ++ thread_pool_submit_aio(aio_get_thread_pool(qemu_get_aio_context()), + coroutine_enter_func, co, coroutine_enter_cb, co); + } diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template index b06bbc2c14a..975c493c5f7 100644 --- a/srcpkgs/qemu/template +++ b/srcpkgs/qemu/template @@ -1,7 +1,7 @@ # Template file for 'qemu' pkgname=qemu version=2.5.0 -revision=2 +revision=3 short_desc="Open Source Processor Emulator" maintainer="Juan RP " homepage="http://qemu.org"