From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMrAM-0005s6-7Z for qemu-devel@nongnu.org; Thu, 07 Dec 2017 03:04:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMrAL-0002s6-3M for qemu-devel@nongnu.org; Thu, 07 Dec 2017 03:04:22 -0500 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:39527) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMrAK-0002rr-SN for qemu-devel@nongnu.org; Thu, 07 Dec 2017 03:04:21 -0500 Received: by mail-wm0-x22e.google.com with SMTP id i11so11202235wmf.4 for ; Thu, 07 Dec 2017 00:04:20 -0800 (PST) MIME-Version: 1.0 In-Reply-To: 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: Stefan Hajnoczi Date: Thu, 7 Dec 2017 08:04:18 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" 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: "Avi Cohen (A)" Cc: Wei Wang , Stefan Hajnoczi , "virtio-dev@lists.oasis-open.org" , "mst@redhat.com" , "Yang, Zhiyong" , "jan.kiszka@siemens.com" , "jasowang@redhat.com" , "qemu-devel@nongnu.org" , "marcandre.lureau@redhat.com" , "pbonzini@redhat.com" On Thu, Dec 7, 2017 at 7:54 AM, Avi Cohen (A) wrote: > 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