From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aACWA-0006tM-I4 for qemu-devel@nongnu.org; Sat, 19 Dec 2015 03:05:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aACW7-0002Di-CE for qemu-devel@nongnu.org; Sat, 19 Dec 2015 03:05:30 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:32789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aACW7-0002BI-3z for qemu-devel@nongnu.org; Sat, 19 Dec 2015 03:05:27 -0500 From: Michael Tokarev Message-ID: <56750FBC.6020106@msgid.tls.msk.ru> Date: Sat, 19 Dec 2015 11:05:16 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] 9pfs is broken in 2.5 (SIGSEGV) (bisected) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Paolo Bonzini , "Aneesh Kumar K.V" , Greg Kurz When trying to mount a 9p filesystem in guest in 2.5 qemu, qemu immediately segfaults. qemu-system-x86_64 ... -fsdev local,security_model=none,id=fsd0,path=/tmp -device virtio-9p-pci,fsdev=fsd0,mount_tag=fsd0 mount -t 9p -o trans=virtio,version=9p2000.u fsd0 /mnt (SIGSEGV) The problem goes down to the following commit: commit ebac1202c95a4f1b76b6ef3f0f63926fa76e753e Author: Paolo Bonzini Date: Fri Nov 27 12:43:06 2015 +0100 virtio-9p: use QEMU thread pool The QEMU thread pool already has a mechanism to invoke callbacks in the main thread. It does not need an EventNotifier and it is more efficient too. Use it instead of GAsyncQueue + GThreadPool + glue. As a side effect, it silences Coverity's complaint about an unchecked return value for event_notifier_init. Signed-off-by: Paolo Bonzini Reviewed-by: Greg Kurz (removed no more needed #include from virtio-9p-coth.h) Signed-off-by: Greg Kurz This is a heads-up for now, digging further. /mjt