From: Cam Macdonell Subject: Re: [PATCH v3 0/2] Inter-VM shared memory PCI device Date: Thu, 25 Mar 2010 17:05:38 -0600 Message-ID: <8286e4ee1003251605rd3b0694tb2e98bd34e9b0fea@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> <4BABD12B.3070909@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org To: Avi Kivity Return-path: Received: from mail-pv0-f174.google.com ([74.125.83.174]:41264 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082Ab0CYXFj convert rfc822-to-8bit (ORCPT ); Thu, 25 Mar 2010 19:05:39 -0400 Received: by pva18 with SMTP id 18so1113053pva.19 for ; Thu, 25 Mar 2010 16:05:39 -0700 (PDT) In-Reply-To: <4BABD12B.3070909@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Mar 25, 2010 at 3:10 PM, Avi Kivity wrote: > On 03/25/2010 08:17 PM, Cam Macdonell wrote: >> >>>> I had a hunch it was probably considered. =A0That explains why irq= fd >>>> doesn't have a datamatch field. =A0I guess supporting multiple MSI >>>> vectors with one doorbell per guest isn't possible if one 1 bit of >>>> information can be communicated. >>>> >>>> >>> >>> Actually you can have one doorbell supporting multiple vectors and >>> guests, >>> simply divide the data value into two bit fields, one for the vecto= r and >>> one >>> for the guest. =A0A single write gets both values into the host, wh= ich can >>> then use datamatch to trigger the correct eventfd (which is wired t= o an >>> irqfd in another guest). >>> >> >> At 4-bits per guest, a single write is then limited to 8 guests (wit= h >> 32-bit registers), we could got to 64-bit. >> > > I meant a unicast doorbell: 16 bits for guest ID, 16 bits for vector = number. Ah, yes. Who knew "two bit registers" is an ambiguous term. Do you strongly prefer the one doorbell design?