Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp245259ybx; Wed, 30 Oct 2019 14:26:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzd1rw1q/1ftIVG48/ZrF5F5ZWcvW9vpjWYuMMjafBvpdzZDZ1xDPHVyoA/HR20uISxEX+S X-Received: by 2002:a17:906:6d9:: with SMTP id v25mr398484ejb.274.1572470801745; Wed, 30 Oct 2019 14:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572470801; cv=none; d=google.com; s=arc-20160816; b=NuqBccf2Xw2DYsh86CBEbdbW/D3VbhRClL4GA3lG/KV5PjQYgbImcCA7S8Ess8A33c hc9nf3Zf7iDOxpCmPI+epHEZeJd85VSPNDselb3u1t08nyYezPsANnTC4hj26deA0kVk 9HVouWIhaRN6o8zTL0uDprp6+ju4HKzlGT6R7C2eabRLGiHMN8U91PKk6YIwwYsQ4wFv 90rMOdbXUXPoBpIB7jfkvz9CVHX/8+Cg7IsVZ7ySiIo1IE7mleQTZu8Q+u0Dd/lLctcA QrfqRvZqx5CPYV8xof7D5nFu/HmEZ50MNg+/zj+RGQjJZGPKKwV6EXmf5bVoZMpgRjhL WD6Q== 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:dkim-signature; bh=87X+oyehu7JN6cXbNSmkqxhLbbV13utM66QLaFqOq30=; b=s981hpYfHL70ADfqaQHeZNn2H2VN34sCeQ1V20PO0OWlAATft7JNGjLL9cjCP9FNN1 Hm6SaPfbqqNtUekIYhB29+IzC/7nE9LM5MwY7ynvJbX6Y+cvud/BelhY1GgsXd9gymGw cvFsJYwjXbuSFg7IRqV9/ALue0YYw0HuW/N+m7ru7WtX/RrD/aLBDhYYse4WJrZsqd8B LT/ZAzGM5mt+vygGi4XP4OpiYJGQYtcG+5UWtSUxiVIt5eonh0nQRKQsEstzuckE2Dde O5t6xotMVm+pO4SjIFNrDnTpQlI4YM4R+XvSEtJ7YMnVLUsJCfw5APIH/6GfANSUMb4A wWBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=C0K0acY3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a27si2466048edm.187.2019.10.30.14.26.17; Wed, 30 Oct 2019 14:26:41 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=C0K0acY3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727158AbfJ3VXO (ORCPT + 99 others); Wed, 30 Oct 2019 17:23:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35622 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbfJ3VXO (ORCPT ); Wed, 30 Oct 2019 17:23:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=87X+oyehu7JN6cXbNSmkqxhLbbV13utM66QLaFqOq30=; b=C0K0acY3VsFEjNSc5aNiAJFe4 d54AjrBqdl31EiwE3juEmhzyVlbqM+vV8tLM0pK41NKkIBPSSjSJhZxLTJf1ZR1dUzQPd3P7Bfepo N5/Js2feq2atD6kIsq2nEI0zR7hMtJPFvxme4ObJ++6o7y3Lv9Q2ez3hM7Ym6z9j6MFfCzNt1u3UN DH4xUDvfwjWGNhxU+bGtqYo33RhrKWLa7yiZ4XkUlrrgYqN77HzLVIF3OHkXVDSNjno7AvoAzFX22 YURfaj2i3xyAz42tT3zZ7C5c1fxke8BVtS/Kq2nwouudZaM5RtFilstS8C0cp7b25PYnwqyWSHF/R PnCRVVR8Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iPvQu-00034L-4b; Wed, 30 Oct 2019 21:23:12 +0000 Date: Wed, 30 Oct 2019 14:23:12 -0700 From: Christoph Hellwig To: Jason Wang Cc: kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, kwankhede@nvidia.com, alex.williamson@redhat.com, mst@redhat.com, tiwei.bie@intel.com, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, cohuck@redhat.com, maxime.coquelin@redhat.com, cunming.liang@intel.com, zhihong.wang@intel.com, rob.miller@broadcom.com, xiao.w.wang@intel.com, haotian.wang@sifive.com, zhenyuw@linux.intel.com, zhi.a.wang@intel.com, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, daniel@ffwll.ch, farman@linux.ibm.com, pasic@linux.ibm.com, sebott@linux.ibm.com, oberpar@linux.ibm.com, heiko.carstens@de.ibm.com, gor@linux.ibm.com, borntraeger@de.ibm.com, akrowiak@linux.ibm.com, freude@linux.ibm.com, lingshan.zhu@intel.com, idos@mellanox.com, eperezma@redhat.com, lulu@redhat.com, parav@mellanox.com, christophe.de.dinechin@gmail.com, kevin.tian@intel.com, stefanha@redhat.com Subject: Re: [PATCH V6 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework Message-ID: <20191030212312.GA4251@infradead.org> References: <20191030064444.21166-1-jasowang@redhat.com> <20191030064444.21166-7-jasowang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191030064444.21166-7-jasowang@redhat.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 30, 2019 at 02:44:44PM +0800, Jason Wang wrote: > This sample driver creates mdev device that simulate virtio net device > over virtio mdev transport. The device is implemented through vringh > and workqueue. A device specific dma ops is to make sure HVA is used > directly as the IOVA. This should be sufficient for kernel virtio > driver to work. > > Only 'virtio' type is supported right now. I plan to add 'vhost' type > on top which requires some virtual IOMMU implemented in this sample > driver. Can we please submit a real driver for it? A more or less useless sample driver doesn't really qualify for our normal kernel requirements that infrastructure should have a real user.