From: =?UTF-8?Q?Fran=C3=A7ois_Diakhate?= Subject: Re: [PATCH v2] Driver for Inter-VM shared memory device for KVM supporting interrupts. Date: Wed, 20 May 2009 10:07:02 +0200 Message-ID: <6ad07c640905200107ife6b651qef7f069d0d7dce69@mail.gmail.com> References: <1241713567-17256-1-git-send-email-cam@cs.ualberta.ca> <4A127776.9030400@redhat.com> <4A12E37C.700@cs.ualberta.ca> <200905201228.38718.rusty@rustcorp.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Cam Macdonell , Avi Kivity , =?UTF-8?Q?Christian_Borntr=C3=A4ger?= , kvm@vger.kernel.org, Christian Ehrhardt To: Rusty Russell Return-path: Received: from fg-out-1718.google.com ([72.14.220.157]:35046 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754062AbZETIHW convert rfc822-to-8bit (ORCPT ); Wed, 20 May 2009 04:07:22 -0400 Received: by fg-out-1718.google.com with SMTP id 16so98419fgg.17 for ; Wed, 20 May 2009 01:07:22 -0700 (PDT) In-Reply-To: <200905201228.38718.rusty@rustcorp.com.au> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, May 20, 2009 at 4:58 AM, Rusty Russell = wrote: > The only interesting idea I can think of is exposing it to userspace,= and > having that run some protocol across it for fast app <-> app comms. = But if > that's your plan, you still have a lot of code the write! > > So I guess I'm missing the big picture here? Hello Rusty, =46or an example, you may have a look at a paper I wrote last year on achieving fast MPI-like message passing between guests over shared memory [1]. =46or my proof-of-concept implementation, I introduced a virtual device allowing to perform DMA between guests, something for which virtio is well suited, but also to share some memory to transfer small messages efficiently from userspace. To expose this shared memory to guests, I implemented something quite similar to what Cam is proposing which was to expose it as the memory of a pci device. I think it could be a useful addition to virtio if it allowed to abstract this. =46ran=C3=A7ois [1] http://hal.archives-ouvertes.fr/docs/00/36/86/22/PDF/vhpc08.pdf