Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp666156ybx; Wed, 6 Nov 2019 06:39:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyvm2AQOJRyNyn2m17EDIbtYi0e+ljoqYvdBeThqJw9ouchuaci4eCBgaqwX2gSc3y79yqz X-Received: by 2002:a50:9b10:: with SMTP id o16mr2957043edi.117.1573051182273; Wed, 06 Nov 2019 06:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573051182; cv=none; d=google.com; s=arc-20160816; b=JmxV7QzFKM8uIDiLPUOS+4JkUo6EDxzoOpGpXgIXjHuHXF28PskrzMPDOT1mtYAljc 2MwJsW35tjQJxATpgyleobMD6AwYEL5/Gxult+wIbEzuYYVZ+nxtR1UrPvNavReUcheu dNNCHP/DrEUs4FY9AP2PMt5EpIaLqXbIA6Y4Y3MFd0u5XiBkV3cyvdunOs3OfXubLcqE aRDSUL8N32XHhIBjEs5BzAAteBbRZxUCQiEIaf188SF5O9OjZU3ZTLMw3tyM+CxZZwOO k67L/JFj9kLzBYJMtHKSjfQbNv5NZ3q7vpLczvFj/G/ANOyjsDM3UKqHiBQ0CBDQNHn/ uKeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RCCcsDSGlAvLGvi82G/9O5Jk9uBuPRYKDJs7KqmRJPQ=; b=PoNUJOWVZq6Zuibkp+wlQnQPsggqYWDWvJrD3qNXA7WcTxgzfrUJVq1E7nS+2/oIFY xOta36GGSSnilCf1ie/PQWKIc4O9kIylyWupBpcKbXna0+RkWXX0V40o+n0dwMKomTcA JXM9TwPSj/oJb5cieRnjQdyUMcsbVUiF0YIUAseo2ubQmqyEHgETseQ+FO4kLiayBGrX lRq/Ul1fTd3BVntegj5EHEchyCGzJaESzSKUqfCH1QXiL3MPGUbLGKQmoReMSFhux7D8 hpIRJ/UVKuq2Zq+izeN384DPn1H5vsAHypfYK0EiBNQVReYgRE5rzbrfQSrPcyQvMyce jyUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v42si12505838edc.378.2019.11.06.06.39.18; Wed, 06 Nov 2019 06:39:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732015AbfKFOi0 (ORCPT + 99 others); Wed, 6 Nov 2019 09:38:26 -0500 Received: from mga17.intel.com ([192.55.52.151]:50000 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731929AbfKFOiY (ORCPT ); Wed, 6 Nov 2019 09:38:24 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2019 06:38:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,275,1569308400"; d="scan'208";a="214264460" Received: from dpdk-virtio-tbie-2.sh.intel.com (HELO ___) ([10.67.104.74]) by orsmga002.jf.intel.com with ESMTP; 06 Nov 2019 06:38:21 -0800 Date: Wed, 6 Nov 2019 22:39:07 +0800 From: Tiwei Bie To: "Michael S. Tsirkin" Cc: jasowang@redhat.com, alex.williamson@redhat.com, maxime.coquelin@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, dan.daly@intel.com, cunming.liang@intel.com, zhihong.wang@intel.com, lingshan.zhu@intel.com Subject: Re: [PATCH v5] vhost: introduce mdev based hardware backend Message-ID: <20191106143907.GA10776@___> References: <20191105115332.11026-1-tiwei.bie@intel.com> <20191106075733-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191106075733-mutt-send-email-mst@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 06, 2019 at 07:59:02AM -0500, Michael S. Tsirkin wrote: > On Tue, Nov 05, 2019 at 07:53:32PM +0800, Tiwei Bie wrote: > > This patch introduces a mdev based hardware vhost backend. > > This backend is built on top of the same abstraction used > > in virtio-mdev and provides a generic vhost interface for > > userspace to accelerate the virtio devices in guest. > > > > This backend is implemented as a mdev device driver on top > > of the same mdev device ops used in virtio-mdev but using > > a different mdev class id, and it will register the device > > as a VFIO device for userspace to use. Userspace can setup > > the IOMMU with the existing VFIO container/group APIs and > > then get the device fd with the device name. After getting > > the device fd, userspace can use vhost ioctls on top of it > > to setup the backend. > > > > Signed-off-by: Tiwei Bie > > So at this point, looks like the only thing missing is IFC, and then all > these patches can go in. > But as IFC is still being worked on anyway, it makes sense to > address the minor comments manwhile so we don't need > patches on top. > Right? Yeah, of course. Thanks, Tiwei