From: Cam Macdonell Subject: Re: [Qemu-devel] Re: [PATCH v3 0/2] Inter-VM shared memory PCI device Date: Fri, 26 Mar 2010 09:52:54 -0600 Message-ID: <8286e4ee1003260852of59071cv3dde42e5cbadf500@mail.gmail.com> References: <1269497310-21858-1-git-send-email-cam@cs.ualberta.ca> <4BAB2736.7020202@redhat.com> <8286e4ee1003250950l45cc2883yd4788d20f99ef86c@mail.gmail.com> <4BAB9718.3030808@redhat.com> <8286e4ee1003251035o75fed405j45b60d496afa66b5@mail.gmail.com> <4BABA1F4.3000801@redhat.com> <8286e4ee1003251117o74486dck813a47cee54b2d6d@mail.gmail.com> <20100326013215.GF19308@shareable.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Avi Kivity , qemu-devel@nongnu.org, kvm@vger.kernel.org To: Jamie Lokier Return-path: Received: from mail-pv0-f174.google.com ([74.125.83.174]:45702 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752342Ab0CZPwz convert rfc822-to-8bit (ORCPT ); Fri, 26 Mar 2010 11:52:55 -0400 Received: by pva18 with SMTP id 18so1454613pva.19 for ; Fri, 26 Mar 2010 08:52:54 -0700 (PDT) In-Reply-To: <20100326013215.GF19308@shareable.org> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Mar 25, 2010 at 7:32 PM, Jamie Lokier wro= te: > Cam Macdonell wrote: >> An irqfd can only trigger a single vector in a guest. =A0Right now I >> only have one eventfd per guest. =A0 =A0So ioeventfd/irqfd restricts= the >> current implementation to a single vector that a guest can trigger. >> Without irqfd, eventfds can be used like registers a write the numbe= r >> of the vector they want to trigger, but as you point out it is racy. > > It's not racy if you use a pipe instead of eventfd. :-) > > Actually, why not? =A0A byte pipe between guests would be more versat= ile. A pipe between guests would be quite versatile, however it's an orthogonal design to shared memory. The shared memory is how data should be shared/communicated if someone is using this device and the interrupts are there to help with synchronization. > > Could it even integrate with virtio-serial, somehow? > Could virtio-serial be used as is to support a pipe between guests? If a user wanted shared memory and a pipe, then they could setup two devices and use them together. Cam