From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlKOd-0004bI-Sb for qemu-devel@nongnu.org; Sun, 01 Jul 2012 09:41:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SlKOc-0004GX-7J for qemu-devel@nongnu.org; Sun, 01 Jul 2012 09:41:03 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:59697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlKOc-0004FW-0h for qemu-devel@nongnu.org; Sun, 01 Jul 2012 09:41:02 -0400 Received: by dadn2 with SMTP id n2so6987694dad.4 for ; Sun, 01 Jul 2012 06:41:00 -0700 (PDT) Message-ID: <4FF05369.20405@ozlabs.ru> Date: Sun, 01 Jul 2012 23:40:57 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 References: <4FF02F2C.30006@ozlabs.ru> <4FF05173.6090801@redhat.com> In-Reply-To: <4FF05173.6090801@redhat.com> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU question: is eventfd not thread safe? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Alex Williamson , mst@redhat.com, qemu-devel@nongnu.org, David Gibson On 01/07/12 23:32, Paolo Bonzini wrote: > Il 01/07/2012 13:06, Alexey Kardashevskiy ha scritto: >> Doing MSI init stuff, QEMU-VFIO calls the same event_notifier_init() >> (returns recycled fd=XX what is correct but confuses) and >> qemu_set_fd_handler() which adds a handler but select() does not pick >> it up. > > This sounds like a missing qemu_notify_event(). There was a recent > thread on a similar problem with block/iscsi.c. Oh, right, that helps too when place in qemu_set_fd_handler2(). -- Alexey