From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7dNC-0002SD-6l for qemu-devel@nongnu.org; Fri, 22 May 2009 18:37:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7dN4-0002PO-NI for qemu-devel@nongnu.org; Fri, 22 May 2009 18:37:52 -0400 Received: from [199.232.76.173] (port=37269 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7dN4-0002PL-GJ for qemu-devel@nongnu.org; Fri, 22 May 2009 18:37:46 -0400 Received: from fleet.cs.ualberta.ca ([129.128.22.22]:38537) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7dN4-0001SY-6e for qemu-devel@nongnu.org; Fri, 22 May 2009 18:37:46 -0400 Received: from fleet.cs.ualberta.ca (localhost.localdomain [127.0.0.1]) by fleet-spampd (Postfix) with ESMTP id C9C82280A3 for ; Fri, 22 May 2009 16:33:00 -0600 (MDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by fleet-amavis (Postfix) with ESMTP id B825F28091 for ; Fri, 22 May 2009 16:32:49 -0600 (MDT) Received: from fleet.cs.ualberta.ca ([127.0.0.1]) by localhost (cs.ualberta.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QC6zC4En6Ba7 for ; Fri, 22 May 2009 16:32:42 -0600 (MDT) Received: from [129.128.23.21] (st-brides.cs.ualberta.ca [129.128.23.21]) by fleet.cs.ualberta.ca (Postfix) with ESMTP id 91AF22807C for ; Fri, 22 May 2009 16:32:32 -0600 (MDT) Message-ID: <4A172800.8080406@cs.ualberta.ca> Date: Fri, 22 May 2009 16:32:32 -0600 From: Cam Macdonell MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Passing fds through a qemu char device List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I'm trying to pass eventfds between qemu processes and I'm trying to use a qemu char device to do this. AFAICT with a qemu_chr_device the polling handler only has support to call read()/write(), not send/recvmsg() which are necessary to send and receive fds with SCM_RIGHTS through the socket. Is this true or is there support in Qemu for recvmsg() that I'm not seeing? If not, some options I can see are to add qemu support for qemu_chr_recvmsg() to call on the char device. Or I can simply manage the socket outside of qemu_chr_device, but the polling is helpful for notifications and I'd prefer to leverage qemu's existing support for that. Thanks, Cam