From: Sasha Levin Subject: Re: [PATCH] ioeventfd: Introduce KVM_IOEVENTFD_FLAG_PIPE Date: Mon, 04 Jul 2011 17:52:14 +0300 Message-ID: <1309791134.4117.27.camel@sasha> References: <1309712689-4290-1-git-send-email-levinsasha928@gmail.com> <4E10A3E6.1070606@redhat.com> <1309715091.4117.16.camel@sasha> <4E1195A1.10103@redhat.com> <1309790307.4117.25.camel@sasha> <4E11D20F.9020509@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Ingo Molnar , Marcelo Tosatti , "Michael S. Tsirkin" , Pekka Enberg To: Avi Kivity Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:39375 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755628Ab1GDOwV (ORCPT ); Mon, 4 Jul 2011 10:52:21 -0400 Received: by wwe5 with SMTP id 5so5148597wwe.1 for ; Mon, 04 Jul 2011 07:52:20 -0700 (PDT) In-Reply-To: <4E11D20F.9020509@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 2011-07-04 at 17:45 +0300, Avi Kivity wrote: > On 07/04/2011 05:38 PM, Sasha Levin wrote: > > > > > > In general incremental development is great, but I don't want to > > > fragment the ABI. I'd like to be able to forward an entire PCI BAR over > > > a pipe. That means sending the address/data/length tuple, and both read > > > and write support. > > > > Would this mean that for sockets we want to remove the 8 byte limit? > > Yes. Register a range and support all sizes. > > Perhaps it merits a separate ioctl. > > > What about eventfds? We can remove the limit there and assume that if > > the user asked for more than 8 bytes he knows what he's doing? > > I can't really see that as useful. eventfds destroy information; > without datamatch, you have no idea what value was written. Even with > datamatch, you have no idea how many times it was written. With a > range, you also have no idea which address was written. It's pretty > meaningless. > It is pretty useless, but I didn't want the ioctl to behave differently when passing a socket or an eventfd. If we do go for a new ioctl as you suggested then yes, problem solved. -- Sasha.