From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [RFC v2] vhost: new rte_vhost API proposal Date: Sun, 20 May 2018 15:07:25 +0800 Message-ID: <20180520070725.4ccoumdtpq3utcqr@yuanhanliu-NB0.tencent.com> References: <1525958573-184361-1-git-send-email-dariuszx.stojaczyk@intel.com> <1526648465-62579-1-git-send-email-dariuszx.stojaczyk@intel.com> <27ce772e-9f01-dff9-1f82-b99924efa950@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Dariusz Stojaczyk , dev@dpdk.org, Tiwei Bie , Tetsuya Mukawa , Thomas Monjalon , Stefan Hajnoczi , James Harris To: Maxime Coquelin Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 4084449E0 for ; Sun, 20 May 2018 12:15:57 +0200 (CEST) Content-Disposition: inline In-Reply-To: <27ce772e-9f01-dff9-1f82-b99924efa950@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, May 18, 2018 at 03:50:45PM +0200, Maxime Coquelin wrote: > Hi Dariusz, > > On 05/18/2018 03:01 PM, Dariusz Stojaczyk wrote: > > rte_vhost is not vhost-user spec compliant. Some Vhost drivers have > > been already confirmed not to work with rte_vhost. virtio-user-scsi-pci > > in QEMU 2.12 doesn't fully initialize its management queues at SeaBIOS > > stage. This is perfectly fine from the Vhost-user spec perspective, but > > doesn't meet rte_vhost expectations. rte_vhost waits for all queues > > to be fully initialized before it allows the entire device to be > > processed. qFixing rte_vhost directly would require quite a big amount > > of changes, which would completely break backwards compatibility. > > > > This rte_vhost2 library is intended to smooth out the transition. > > It exposes a low-level API for implementing new Vhost-user slaves. > > The existing rte_vhost is about to be refactored to use rte_vhost2 > > library underneath, and demanding backends could now use rte_vhost2 > > directly. > > I like the idea, and the proposed way to smooth the transition. Please be aware of that I just had a quick glimpse of this patch and it's likely I don't have too much time to follow this. However, I also like this idea. And thank you for working on it. --yliu