Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp807664ybx; Thu, 31 Oct 2019 00:58:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyY6GE5tss1UmAJcxnUewBxMCRecXapQoQ/DOGEWHnRSoZAun8gFLxMBJE3HY133znpl32D X-Received: by 2002:a17:906:2786:: with SMTP id j6mr731286ejc.206.1572508736576; Thu, 31 Oct 2019 00:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572508736; cv=none; d=google.com; s=arc-20160816; b=pTLPp5yNAusxAkdgec+DA60dloXbPt9CE2J+WguD+W7Is9fm13qHv6sRTbKPRzUa/Z AV260WdRitXO6QjoueVAG4R/YXaXKOlnoF6dAjcRRJ4MSCqwe3id9Q6tT55r+Wf6Zajr GdvIAa561psP+NTiO1LqfqAW9Gvk1rFMudlK7n9dzOq21V9I020rxo2x7wYIfi9O96O8 k9JqErDHaTmBe9+coGG11QFpn7zPRq8RuLSNAE/TclCsaQ+cKO47Df9n7SrgcWshZLp6 A3zotDz6scorce3qWJ0qyj0egTIrNN9wOULbU4Xf5t/A1H+JobVMNFeCB4TH1ygQ5wn5 3zOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ZzPbj2uZuwwPBITn+63rMRnkVyg8xJVTQD3a3pjMG3I=; b=EwfkEBN+dWvYazqtCShYIx8LLdVIgy84rulxAsMpftxtrbS6Bma0539M2qS3KVV1qn b9MHySLExpMA25TUIAhHsr50cweWTs6uY75eVP2+F0XchJQ4a8wr5gGfEawRz6KOA++E JvwrXUA3H1LT5P+xt0ZGXgzZIH+MsFgRAHCQPdd77I0dkks+8w/Ilc/tI0cWpd/SWY4o 0OhztdkQwA9BqobUmK9ZuWE+zzSwGSAowQm2/kaS0C7H80p/bwX6tVlm04MkHC+P1WvC CtCYsAh1EId9ktB3KVWdsfB73BBmE+a/Y3RVPwwHn0TdaL6ndraQoitPdFg4E8T6fHKy 3h/w== 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 z16si3422243edd.314.2019.10.31.00.58.32; Thu, 31 Oct 2019 00:58:56 -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; 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 S1726913AbfJaH5s (ORCPT + 99 others); Thu, 31 Oct 2019 03:57:48 -0400 Received: from mga06.intel.com ([134.134.136.31]:64655 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbfJaH5r (ORCPT ); Thu, 31 Oct 2019 03:57:47 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Oct 2019 00:57:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,250,1569308400"; d="scan'208";a="206036015" Received: from lingshan-mobl5.ccr.corp.intel.com (HELO [10.238.129.48]) ([10.238.129.48]) by FMSMGA003.fm.intel.com with ESMTP; 31 Oct 2019 00:57:39 -0700 Subject: Re: [PATCH V6 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework To: Christoph Hellwig , 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, idos@mellanox.com, eperezma@redhat.com, lulu@redhat.com, parav@mellanox.com, christophe.de.dinechin@gmail.com, kevin.tian@intel.com, stefanha@redhat.com References: <20191030064444.21166-1-jasowang@redhat.com> <20191030064444.21166-7-jasowang@redhat.com> <20191030212312.GA4251@infradead.org> From: "Zhu, Lingshan" Message-ID: <1592d723-a580-8614-3fb4-88560a06cdc1@intel.com> Date: Thu, 31 Oct 2019 15:57:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20191030212312.GA4251@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/31/2019 5:23 AM, Christoph Hellwig wrote: > 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. Hello Christoph, I am working on a real hardware driver for it, it's called IFC, I have posted RFC V1 and will post RFC V2 soon. Thanks, BR Zhu Lingshan