Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1151996pxu; Fri, 27 Nov 2020 00:33:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwO2Xi8w+CHTE1EuA+ZARA1AUO/Ju1TZeQ7tA5UFhQsKq3pAQnCD7o/feVzaYrIbFe2BwVd X-Received: by 2002:a05:6402:22ab:: with SMTP id cx11mr6336756edb.98.1606466029898; Fri, 27 Nov 2020 00:33:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606466029; cv=none; d=google.com; s=arc-20160816; b=R7cEpbs0loWkkJKMRmRoMfe+5Bqn7XIIZRiM1NMgdYhT5nKCv0o6AM83atItbi6uC3 URkrewx2KsEXDZdGus0usf/z/vr22ReRObEZnl2pLPZolSuggYddTp0e9w2xwB/+soxx LQ2YlrCeqB99pSxNKRAz4zMPCOSOBICaSTi57QiutwuZ8K344KkXeuzcavDc3dCe54tU RSoQxFHItjzb3FDT4aFoTY8F6ImrARviJmYhrsEZCZKhxPC2ubfI59SvE3VsESeCpYiB 8XDNgZIt+oSb0wox7Z+EusgaSzIPfH8OZedAgCP9J3EBsGqRKvg9rekeua7nLhc13qCg +nNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vtGXiLJGj14rKPmHhudnMAtjCzWUYwLzn0s8yBeVSHw=; b=cvvoHNUduKkCZEeZ/i53CuWFhdzOwXUc+WA90ZL/0Pns/MfNvJEznxg4r7lFJpkA0m YbJ79WcFLP9MITvrPjIqRR3AzVuyOFsCqFM1KYjIBbyXmiBOIfWp/9c4kvepmBdaLmuV Rib9xRQzO6fIh5sVw1KbS3rb1/0h+uUYO3axNay9gy5POg8JP1imlnoIzn1kzZWGxUBR /9OieDuKXne3cYUbqONW8IquTvScMh8L4HyQ6keygjMVrfvuJP0fcz8wUqhb0htpARui LajpoiXXMAVjqTIVdh8U6hNSonF2BTtBY2Ett8wYsMa4hRzBhl+WUFOt0rA+asUQllTN Y0/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=XhwI+JIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si2420546ejo.609.2020.11.27.00.33.27; Fri, 27 Nov 2020 00:33:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=XhwI+JIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390916AbgKZPMg (ORCPT + 99 others); Thu, 26 Nov 2020 10:12:36 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:15384 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390351AbgKZPMg (ORCPT ); Thu, 26 Nov 2020 10:12:36 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 26 Nov 2020 07:12:35 -0800 Received: from [172.27.12.84] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 26 Nov 2020 15:12:33 +0000 Subject: Re: [PATCH v2 00/17] vdpa: generalize vdpa simulator To: Stefano Garzarella , CC: Stefan Hajnoczi , , Laurent Vivier , "Michael S. Tsirkin" , Eli Cohen , Jason Wang , Oren Duer , Shahaf Shuler References: <20201126144950.92850-1-sgarzare@redhat.com> From: Max Gurtovoy Message-ID: <751e8938-8055-511c-c339-2b55dc902944@nvidia.com> Date: Thu, 26 Nov 2020 17:12:30 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201126144950.92850-1-sgarzare@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1606403555; bh=vtGXiLJGj14rKPmHhudnMAtjCzWUYwLzn0s8yBeVSHw=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding: Content-Language:X-Originating-IP:X-ClientProxiedBy; b=XhwI+JIouPOqtJ2VNtrmoSq+4SZ2mCWLlNea1Nh3lPvUjlJX3ieQIORafSVTtqj9s egoEZCfp4HBl8F3Zqp20AIn7L89aMaB2ZN8ikaSctz7G0Dh/54B6tTLKILDnnohs3a uDLkQJPprJNfGv92M+eGrML0/3dKvFxhtGx3615lo3B0MIwif01ouS0TxS36C3ojly 8KIX1I80Zi0kxFWCDdoRGCuUgJ25oFnXW6mNX6clk+NgpCRdJiSMhhCdlelsZs/VAO fLA7PKjKx0zvnrXOdY+Ny7hZXcLeZ+m9le0cAkYkH2yIg7qOYBvDfey8Uh6wYBhLSD nQXXh8B/DNPrg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/26/2020 4:49 PM, Stefano Garzarella wrote: > This series moves the network device simulator in a new module > (vdpa_sim_net) and leaves the generic functions in the vdpa_sim core > module, allowing the possibility to add new vDPA device simulators. > > For now I removed the vdpa-blk simulator patches, since I'm still working > on them and debugging the iotlb issues. > > Thanks to Max that started this work! I took his patches and extended a bit. > > As Jason suggested, I simplified the "vdpa: split vdpasim to core and > net modules" patch, moving some changes out in small patches. > @Max: I put your Co-developed-by and Signed-off-by tags on these patches, > let me know if it is okay for you, or if there is a better way to give > credit to your work! Stefano, thanks for taking my initial series and bringing it to upstream level and thanks Jason for your reviews. I'm ok with the tags and hopefully I'll be able to help a bit in the submission in couple of weeks. great progress ! > v1: https://lists.linuxfoundation.org/pipermail/virtualization/2020-November/050677.html > > v2: > - moved most of the patches before the vdpa-core/net split [Jason] > - removed unnecessary headers > - removed 'default n' in Kconfig entries [Jason] > - added VDPASIM_IOTLB_LIMIT macro [Jason] > - set vringh notify callback [Jason] > - used VIRTIO terminology for in_iov/out_iov [Stefan] > - simplified "vdpa: split vdpasim to core and net modules" patch, > moving some changes out in small patches > - left batch_mapping module parameter in the core [Jason] > > Max Gurtovoy (2): > vdpa_sim: remove hard-coded virtq count > vdpa: split vdpasim to core and net modules > > Stefano Garzarella (15): > vdpa: remove unnecessary 'default n' in Kconfig entries > vdpa_sim: remove unnecessary headers inclusion > vdpa_sim: remove the limit of IOTLB entries > vdpa_sim: rename vdpasim_config_ops variables > vdpa_sim: add struct vdpasim_dev_attr for device attributes > vdpa_sim: add device id field in vdpasim_dev_attr > vdpa_sim: add supported_features field in vdpasim_dev_attr > vdpa_sim: add work_fn in vdpasim_dev_attr > vdpa_sim: store parsed MAC address in a buffer > vdpa_sim: make 'config' generic and usable for any device type > vdpa_sim: add get_config callback in vdpasim_dev_attr > vdpa_sim: set vringh notify callback > vdpa_sim: use kvmalloc to allocate vdpasim->buffer > vdpa_sim: make vdpasim->buffer size configurable > vdpa_sim: split vdpasim_virtqueue's iov field in out_iov and in_iov