Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp439856ybx; Wed, 6 Nov 2019 20:17:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzDMtNLbonJ1rP3zkE0ibR0iE7CD24K9su/jYqeRaF/Z9J0PwGdKXhtKNTVNgOaF5jfBSTt X-Received: by 2002:a50:d80c:: with SMTP id o12mr1348101edj.251.1573100247780; Wed, 06 Nov 2019 20:17:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573100247; cv=none; d=google.com; s=arc-20160816; b=t6RDoTvkH/IeGk1nnnUd5pRezCrg1V4MUon0gkrYlIBMhP5/J/KObm7jQRLnfG3wiK jzVI1I8Jna0m2xdg2THpbxs4IT1mksmoocif+8I1b1IcZYKtExZjcIUKDgRL1/Nr3umC GrZfcMFSNnZrjbTii1PT1AdZUJ+rmUyT28j0G9XVQrw+pvex2egbhVApDkOdUX9z9z4G BkJJLNfySDfI5EohGVs6lwxNHbfcyFU4dovgKlWVzQ3y22VQl1FqMf00tkuyVNX77re2 UtylIXKeTgQD3udnIsJApGU7UoGwjKfJC+++ycy33sEnccr+FUbJPERN7Xmjv1vwT9nO pRmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=k3IbSyGD4qLkNAVSZEuvxBFa8ZkDMuEWAdZpi7gSPzg=; b=N9JFO1mT+GqYbEEPR5oXr8btTbhJdsAsxMAqHkgHHA2NV83dNhpot5txw7NynuJO9+ lHpYSA9lZ5PbbldryW8XnZFGJw7I9AGXrZ9CU7OqKY/yAOS2K7ibPoO7bnEt78RFQSyM x/9+3GnHrrDKSya/g+Y67ftKvjvxTieElUinOeKgpeSvXFJ1R759n0Wqj8nksEpbXI8x ulDutc7cxukN9QDP97tNnswx83OGqS4cXVhjMWzN6yMl4hAfs1XP3tJtvakB3OU6CUcU 4o2ibmXRcb7GCsjc7oTblqtQNIpWjmrkQbt4XmLGq7C2gz9VLqTh6ty7VmGlXp+4yXKM qyLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Do3Igs2t; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si600694edu.135.2019.11.06.20.17.04; Wed, 06 Nov 2019 20:17:27 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Do3Igs2t; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733157AbfKGEQ0 (ORCPT + 99 others); Wed, 6 Nov 2019 23:16:26 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:26704 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727280AbfKGEQ0 (ORCPT ); Wed, 6 Nov 2019 23:16:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573100185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k3IbSyGD4qLkNAVSZEuvxBFa8ZkDMuEWAdZpi7gSPzg=; b=Do3Igs2tvwS8OTK8hbB7u4ZsqRcVAkIVIUg14UFpmEe4B+9+JqeyLJxNAC1Nw1+YzDeDlC fyCofOhZlkeDIGBo0xlhAC9tu+ECYZ235RWfm3U651u2soB6+FL+y6wYAcUU9EL9+bBR/4 LC7dukr1sDz0p+VtiwMPTnGGZVF84UM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-341-MQBzENQcOFypmSyLPrCApQ-1; Wed, 06 Nov 2019 23:16:17 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C3470800C61; Thu, 7 Nov 2019 04:16:15 +0000 (UTC) Received: from [10.72.12.214] (ovpn-12-214.pek2.redhat.com [10.72.12.214]) by smtp.corp.redhat.com (Postfix) with ESMTP id 54F865D6B7; Thu, 7 Nov 2019 04:16:03 +0000 (UTC) Subject: Re: [PATCH v5] vhost: introduce mdev based hardware backend To: Tiwei Bie , "Michael S. Tsirkin" Cc: 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 References: <20191105115332.11026-1-tiwei.bie@intel.com> <20191106075733-mutt-send-email-mst@kernel.org> <20191106143907.GA10776@___> From: Jason Wang Message-ID: Date: Thu, 7 Nov 2019 12:16:01 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191106143907.GA10776@___> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: MQBzENQcOFypmSyLPrCApQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/11/6 =E4=B8=8B=E5=8D=8810: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. Thanks