Received: from eggs.gnu.org ([2001:4830:134:3::10]:53145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1DRz-00066K-NX for qemu-devel@nongnu.org; Tue, 24 Nov 2015 08:16:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1DRt-0001Dh-Pz for qemu-devel@nongnu.org; Tue, 24 Nov 2015 08:16:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1DRt-0001Dc-LN for qemu-devel@nongnu.org; Tue, 24 Nov 2015 08:15:57 -0500 From: Markus Armbruster References: <871tbktuzy.fsf@blackfin.pond.sub.org> <565321D9.7080604@redhat.com> <8737vv60sn.fsf_-_@blackfin.pond.sub.org> <56545B80.20905@redhat.com> Date: Tue, 24 Nov 2015 14:15:55 +0100 In-Reply-To: <56545B80.20905@redhat.com> (Paolo Bonzini's message of "Tue, 24 Nov 2015 13:43:44 +0100") Message-ID: <87ziy3zgfo.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] Is ivshmem's use of qemu_chr_open_eventfd() kosher? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: marcandre.lureau@redhat.com, Claudio Fontana , qemu-devel@nongnu.org, Luiz Capitulino Paolo Bonzini writes: > On 24/11/2015 13:26, Markus Armbruster wrote: >> Device models (a.k.a. frontends) are normally not supposed to create >> backends by themselves, because it blurs the separation between frontend >> and backend, and commonly denies the user the opportunity to fully >> configure the backend. > > Right, but here the fd comes from the ivshmem server. It's just using > the chardev API internally. It could be changed with little effort to > use a GSource or qemu_set_fd_handler. Thanks!