From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 106BAC5DF60 for ; Thu, 7 Nov 2019 13:09:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DBDCF214D8 for ; Thu, 7 Nov 2019 13:09:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388900AbfKGNI4 (ORCPT ); Thu, 7 Nov 2019 08:08:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45622 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388856AbfKGNIz (ORCPT ); Thu, 7 Nov 2019 08:08:55 -0500 Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 272F37C0B8 for ; Thu, 7 Nov 2019 13:08:55 +0000 (UTC) Received: by mail-qk1-f200.google.com with SMTP id s144so2158263qke.20 for ; Thu, 07 Nov 2019 05:08:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=sGkh4BOm1ga49aAyABsuJ1+hTpGliKNhcGi2Gh8UYvM=; b=MrzNXpyvRpF1y+2VM+RJQc5BW9/CsS0DmGdMxJasVEmgLVdxSv4g44XYNCjkZks87k pRv6Uk2oQcxzMmh+5PTJo2j181ys2ckGPW2kmhSSYIeMg3oH5IxVt1B7pHHF4UZscWGb 4JQsgEHnOCybtiEsYOQepn9LxEsWFKgfBMPZhTvtTd5CyfZuz103BCVzUnl7iuPx9S2/ f4IoqobMbJ6rFXtFLzsA5et04v59ygpXRSLeDaGMJnolC0AWMyyCtuQT8I77gN/ENuUT n+hyAj9a6XQHUR8OyqAdApBA75+fZv4QVb6ZILXm7tCL/FKw+yUEvHetR/6GyKsm1WC9 U93A== X-Gm-Message-State: APjAAAUEsw3e5KKqUEc9AE4ZrQZUzfs6Cuk7ogjyc1Yi92GgorYlYySd 2BkdktFJqE+cFAA3+V8lRrfBsE13mqM0cktSNNQ4rG/WWWH2Ik3U4PPCO/FvGI//APuOCuFsiDw fyzoJyCqxAWyv5W7T X-Received: by 2002:ac8:30ea:: with SMTP id w39mr3701953qta.250.1573132134371; Thu, 07 Nov 2019 05:08:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyuaZUrn0+Bhr6V2XR4C8EnN+CEUlSfNq4Ndy0t+kY3CRNcx3lsYUHZ/oZi4s940i7uHezLLA== X-Received: by 2002:ac8:30ea:: with SMTP id w39mr3701918qta.250.1573132134172; Thu, 07 Nov 2019 05:08:54 -0800 (PST) Received: from redhat.com (bzq-79-178-12-128.red.bezeqint.net. [79.178.12.128]) by smtp.gmail.com with ESMTPSA id x203sm1051418qkb.11.2019.11.07.05.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 05:08:53 -0800 (PST) Date: Thu, 7 Nov 2019 08:08:41 -0500 From: "Michael S. Tsirkin" 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, 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 V10 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework Message-ID: <20191107080834-mutt-send-email-mst@kernel.org> References: <20191106133531.693-1-jasowang@redhat.com> <20191106133531.693-7-jasowang@redhat.com> <20191107040700-mutt-send-email-mst@kernel.org> <20191107061942-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Nov 07, 2019 at 08:43:29PM +0800, Jason Wang wrote: > > On 2019/11/7 下午7:21, Michael S. Tsirkin wrote: > > On Thu, Nov 07, 2019 at 06:18:45PM +0800, Jason Wang wrote: > > > On 2019/11/7 下午5:08, Michael S. Tsirkin wrote: > > > > On Wed, Nov 06, 2019 at 09:35:31PM +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. > > > > > > > > > > Acked-by: Cornelia Huck > > > > > Signed-off-by: Jason Wang > > > > I'd prefer it that we call this something else, e.g. > > > > mvnet-loopback. Just so people don't expect a fully > > > > functional device somehow. Can be renamed when applying? > > > Actually, I plan to extend it as another standard network interface for > > > kernel. It could be either a standalone pseudo device or a stack device. > > > Does this sounds good to you? > > > > > > Thanks > > That's a big change in an interface so it's a good reason > > to rename the driver at that point right? > > Oherwise users of an old kernel would expect a stacked driver > > and get a loopback instead. > > > > Or did I miss something? > > > My understanding is that it was a sample driver in /doc. It should not be > used in production environment. Otherwise we need to move it to > driver/virtio. > > But if you insist, I can post a V11. > > Thanks this can be a patch on top.