From: Anthony Liguori Subject: Re: [PATCH RFC 1/2] Allow recvmsg for qemu char devices Date: Thu, 30 Jul 2009 13:28:57 -0500 Message-ID: <4A71E669.9070801@codemonkey.ws> References: <1248971307-8421-1-git-send-email-cam@cs.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org To: Cam Macdonell Return-path: Received: from qw-out-2122.google.com ([74.125.92.25]:9298 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967AbZG3S3A (ORCPT ); Thu, 30 Jul 2009 14:29:00 -0400 Received: by qw-out-2122.google.com with SMTP id 8so894215qwh.37 for ; Thu, 30 Jul 2009 11:29:00 -0700 (PDT) In-Reply-To: <1248971307-8421-1-git-send-email-cam@cs.ualberta.ca> Sender: kvm-owner@vger.kernel.org List-ID: Cam Macdonell wrote: > This patch allows switching from the standard recv to recvmsg for a qemu char > device. Switching allows file descriptors to be passed with SCM_RIGHTS to a > qemu process. Instead of receiving a buffer of data the recvmsg call back is > passed a 'struct msghdr'. > > The patch also adds a function to add an eventfd as qemu char device. Perhaps > this should be a separate patch. > > This is not an elegant solution to supporting recvmsg so suggestions are > especially welcome. > Use the sendfd/closefd commands that Mark introduced. Regards, Anthony Liguori