Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp764275ybx; Thu, 7 Nov 2019 02:21:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwYUfrmYeodKlJwQHD8o1SOvYx+CzDvnQAJUH+u+eeb3DWsnCnG2Gf2lWdiB//Q9kyk1Kqd X-Received: by 2002:a50:a2c5:: with SMTP id 63mr2710978edm.48.1573122061205; Thu, 07 Nov 2019 02:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573122061; cv=none; d=google.com; s=arc-20160816; b=fJ8yAtk8wIxpjJsDF9uqKxL/ZDbHEOJGtOdhdKeLpCG+fANv6WS0ry+//O+8HBQ8Dv fRRuk4NFDZz9GXbDlVtZ9+VbnHiegh3rKVoc7N0FvmqjCTyVWvmR8e4iPh7rMAfRpdK3 e4SR+4HI0Y55ON2nrfT7dBJjORGi82WXf+bez5INaYRQZVMsy7xYdCPnYbjeyDiJPbRV PZiUXW9EKhnYL57nZrjAVXDrv3Ut3QVXDf7K77awnXml5n8ZuBE52zcjsCoQ/RoKIRuP X8aY5rRDao1Qy4w0nRnlIJ1TSzvL9rPAM8rlWpdhfowIb+C+Yo+ktR0Y9UUifrdRGy8W yAJg== 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=JfV7Ui0H34lc92hzIDp9GSS0/7fG2fsW51TyX4HtAsI=; b=TygoQW/gSadCPTIIYu/dA7QZyAfFi/mPmRXziq4LDe2AfyjEdty5QcLnY5TcfHV8V1 UUTSvkxmUPJWtxM6szkK8S7CS7FrChPR/zZWmf+t2KWfNAuMG77XHWrxS56EReKG6dDT SSAd0IQG5TqHXSFYMANWt1MCQ7rqIhX8DZ5DrOFMismm5kOLj9c39WDlY5Q+wKfoHJK4 SqlkUMoYleQ2QSpr1RkqM6wb5ihoVeTqc8EWsF4wqxlQ9+4UawnpHUl0jAH+CGTDlOYN lksD8h+oppdEhPg0Ou0sSHzoA/ri2Fzilp7BlmJaKjBom5u/PrUCKzFumqjTIciqLzwd JvQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CfEHg1PJ; 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 f13si1075228eda.288.2019.11.07.02.20.36; Thu, 07 Nov 2019 02:21:01 -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=CfEHg1PJ; 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 S2387856AbfKGKRY (ORCPT + 99 others); Thu, 7 Nov 2019 05:17:24 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:34825 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726866AbfKGKRX (ORCPT ); Thu, 7 Nov 2019 05:17:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573121841; 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=JfV7Ui0H34lc92hzIDp9GSS0/7fG2fsW51TyX4HtAsI=; b=CfEHg1PJYo5wBamWhOPfDIxIqwFz6blp3vY/u4lgx//DVMrfYJkwa60EBdjmhDq+fTuaTr b5czqTM2Y3i98riOyNV67izXrxAjfwaZjdpeCr54vHYfzJhTrub1i4mK8hsk7iM6O+zjR/ A5sjC+b9Sk2FBTGqx1PJ8w2JIQ6FIFA= 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-328-DKf9nbPbNFy35g1M123gRg-1; Thu, 07 Nov 2019 05:17:18 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D398F800C61; Thu, 7 Nov 2019 10:17:16 +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 446925C290; Thu, 7 Nov 2019 10:16:49 +0000 (UTC) Subject: Re: [PATCH v6] vhost: introduce mdev based hardware backend To: Tiwei Bie , mst@redhat.com, alex.williamson@redhat.com, maxime.coquelin@redhat.com Cc: 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: <20191107073530.15291-1-tiwei.bie@intel.com> From: Jason Wang Message-ID: <1b60cc37-1c85-df85-1f4d-3f9a10ecef54@redhat.com> Date: Thu, 7 Nov 2019 18:16:46 +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: <20191107073530.15291-1-tiwei.bie@intel.com> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: DKf9nbPbNFy35g1M123gRg-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/7 =E4=B8=8B=E5=8D=883:35, 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 > --- > This patch depends on below series: > https://lkml.org/lkml/2019/11/6/538 Acked-by: Jason Wang Thanks!