Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp489007ybx; Wed, 6 Nov 2019 21:26:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxCcoksqADL6dLai/uHpnmXFRvfYRn5UTSbawzbIKwXIsekX+m5uFgasAi2JRQFPFwUcIQr X-Received: by 2002:a17:906:1c59:: with SMTP id l25mr1300294ejg.98.1573104382183; Wed, 06 Nov 2019 21:26:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573104382; cv=none; d=google.com; s=arc-20160816; b=SWbyTjfX0KFzqyVkeizcxc5YEGgDh5ICbqcnEsZxG7MsgfRulVlVBgwk4tatUdi5wv aPAsAMn3tVaUCvBScHvDh+hIYzGlHb3x+/9QZHbR/VvHAq9zOqg4fbzx9IAtugPb2xx4 NP9tQ9Wwh6e/MZEh7j98JE/ktRpXKuhRVgZG+Y+mgYdk0zgKxJw5cpZlsdlRw3el9T+Q lEIJoMCl8YWOo8J50UN18gsMD0P4+6ZShht4XrB1aqH4QKELkmCUVAvErCZrgs1FOsGz qZryW7FyQOBYftCPUcEfJRhosWp/bhQGtwILd8CjaEsgx9ZvrVjIn0SgdMDJQxE1kpSv h8kQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=YIARqnQY7rc2X/QcQuJ0cDARA8g0C4Dl8fMEJZY4Rzc=; b=X9AYwa4C/uQJ+K5s4MdQBz79ahaWkdOVu6CbCcIhZY+wkZdT1SyDeHwRYEUSyBSYNr cW8U/o19iijPa+buazpHiGdL0vG93JqMaDMXVPpKL27l0iGolZuJzNux0kLAag+KIK1n /kYqcOLnaa3ckMQZIoaywHD5jxXBRoa9QTUefGsh3nrVyWNbLq0thVq/nyYRHAZzGbfG W5hB0JJTF9d5gblH7CYIvKgffMX+0uuWDPBMipKuThTgrW6LzVppJUb2P0uKrxj5EebA 74Oqcox56B7Oo5BBIet4fueCJiEQhhElKs78h2IuvFlHsWeG3gLODvL/xM5d3ie+WhPJ dr6A== 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 g7si649140edg.66.2019.11.06.21.25.57; Wed, 06 Nov 2019 21:26:22 -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 S1726561AbfKGFZL (ORCPT + 99 others); Thu, 7 Nov 2019 00:25:11 -0500 Received: from mga11.intel.com ([192.55.52.93]:30271 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfKGFZK (ORCPT ); Thu, 7 Nov 2019 00:25:10 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2019 21:25:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,276,1569308400"; d="scan'208";a="233139016" Received: from dpdk-virtio-tbie-2.sh.intel.com (HELO ___) ([10.67.104.74]) by fmsmga002.fm.intel.com with ESMTP; 06 Nov 2019 21:25:08 -0800 Date: Thu, 7 Nov 2019 13:25:54 +0800 From: Tiwei Bie To: Jason Wang Cc: "Michael S. Tsirkin" , 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: <20191107052554.GA27721@___> References: <20191105115332.11026-1-tiwei.bie@intel.com> <20191106075733-mutt-send-email-mst@kernel.org> <20191106143907.GA10776@___> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Thu, Nov 07, 2019 at 12:16:01PM +0800, Jason Wang wrote: > On 2019/11/6 下午10:39, Tiwei Bie wrote: > > 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 > > > Please send V6 and I will ack there. Got it, I will send it soon. Thanks! Tiwei