From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMraw-0005cu-Fe for qemu-devel@nongnu.org; Thu, 07 Dec 2017 03:31:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMrar-0007Xy-0n for qemu-devel@nongnu.org; Thu, 07 Dec 2017 03:31:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49394) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eMraq-0007VV-PE for qemu-devel@nongnu.org; Thu, 07 Dec 2017 03:31:44 -0500 References: <1512444796-30615-1-git-send-email-wei.w.wang@intel.com> <20171206134957.GD12584@stefanha-x1.localdomain> <286AC319A985734F985F78AFA26841F73937B57F@shsmsx102.ccr.corp.intel.com> <5A28BC2D.6000308@intel.com> From: Jason Wang Message-ID: Date: Thu, 7 Dec 2017 16:31:27 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [virtio-dev] [PATCH v3 0/7] Vhost-pci for inter-VM communication List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , "Avi Cohen (A)" Cc: Wei Wang , Stefan Hajnoczi , "virtio-dev@lists.oasis-open.org" , "mst@redhat.com" , "Yang, Zhiyong" , "jan.kiszka@siemens.com" , "qemu-devel@nongnu.org" , "marcandre.lureau@redhat.com" , "pbonzini@redhat.com" On 2017=E5=B9=B412=E6=9C=8807=E6=97=A5 16:04, Stefan Hajnoczi wrote: > On Thu, Dec 7, 2017 at 7:54 AM, Avi Cohen (A) wr= ote: >> There is already a virtio mechanism in which 2 VMs assigned a virtio = device , are communicating via a veth pair in the host . >> KVM just passes a pointer of the page of the writer VM to the reader = VM - resulting in excellent performance (no vSwitch in the middle) >> **Question**: What is the advantage of vhost-pci compared to this ? > Which mechanism do you mean? > > vhost-pci will allow VM-to-VM communication without vmexits when > polling mode is used. Does the mechanism you are thinking about > require vmexits? > > Stefan I guess what Avi means is probably veth tap support (RFC) here: https://www.spinics.net/lists/netdev/msg454040.html But in fact, we don't need veth at all, by using rx handler trick, we=20 can easily implement pair mode on TUN/TAP. Thanks