Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3220597pxu; Sun, 29 Nov 2020 19:37:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVwY/NF2CUcGSaRVQH5slq4lenUZa3u5Jbx9eDUiaNc2QtsRu1JjfllHvrtdee7LqC+mxi X-Received: by 2002:a05:6402:1153:: with SMTP id g19mr19740025edw.312.1606707422836; Sun, 29 Nov 2020 19:37:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606707422; cv=none; d=google.com; s=arc-20160816; b=MGQ17xBzdO/h+IUDjHRujBjJDW/OY9meOejBwohLbtp/K/kLq6MqXq/hl8fb0IApsI Npr/LhvJhM8VaOwJY/JwcLZm09HHNq6y+UoR3nsoUHcwNwJaEYqLlA/rPXIsgQSZ7/vB kWYt+nGI57epwYYdSLyt5j0eV+IzQ4lu7nB05/q9gRxn5/M+Jee0RGA2Dh0ItVAJe8n0 aGYiA71n3vxyzDkQYqS6tzSe9vUmaPCHBr48ol6lHbVexplq9vOYO/rm79ZgFv10zyDz Q+rBRHwlUTUEFpnrYe3HD++veIRAQ7hfTP2xWXAtjhyP6Uy2T54MmuYS4YhpbHKk4z1a Hvnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=I0HRTFCFoP29oy6MJspA5BbLf81O/XKx0AAg815vRN8=; b=jlxbHZxShUvZ38TET1Dlb+iewgQtGXUtE4FB2kiyOSfKZQXPw+bixV43+RNoIJaZXF JKXKByEOagy+HoQBm049aqMLBeXHPU2b9bWuv40glaV0n8g4eZjpMEpxOlUBGVtdamZ3 AAqSAi3wk1MofEXsGOAOFcj9GfAXH3ijrSQVe+7YFmIV0UxYjMVFpI+z7ThPA4B5a5m+ c5dpE16SXuEMegTHxS/6CiRRiVFOooSHOM8uPAsSrHET+j4qgT64hrEHjXPhxxjkdyUQ MqGR41X1+nI0kw7UjkI1XgRzhYBUrdKjfhJxeNJjGJq4j9JePCD7ps42RdmduY7n4aaD nCCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PD3GIFW2; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si10272415edi.566.2020.11.29.19.36.40; Sun, 29 Nov 2020 19:37:02 -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=@redhat.com header.s=mimecast20190719 header.b=PD3GIFW2; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728438AbgK3DdY (ORCPT + 99 others); Sun, 29 Nov 2020 22:33:24 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:41533 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727387AbgK3DdX (ORCPT ); Sun, 29 Nov 2020 22:33:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606707117; 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=I0HRTFCFoP29oy6MJspA5BbLf81O/XKx0AAg815vRN8=; b=PD3GIFW2NQOq5dkQdsyWJinlG2bIlQixXO4aYhykWZYmpho+BkRz/O9iEyfZXmbGLv9fEl EaHHxooQQylCavhZE1MEM1RMQz1ZGvUP0deAWG8kBT3WvJpc70JXKzbzyLEuk8Yikqzetj OxEOZaJNmqNeIvaTHR2UYUvjpVLhpVg= 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-334-wqITtZ1iMMKoCD3kiCzHrA-1; Sun, 29 Nov 2020 22:31:55 -0500 X-MC-Unique: wqITtZ1iMMKoCD3kiCzHrA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2215880EDB5; Mon, 30 Nov 2020 03:31:54 +0000 (UTC) Received: from [10.72.13.173] (ovpn-13-173.pek2.redhat.com [10.72.13.173]) by smtp.corp.redhat.com (Postfix) with ESMTP id 36A6710016F4; Mon, 30 Nov 2020 03:31:44 +0000 (UTC) Subject: Re: [PATCH v2 17/17] vdpa: split vdpasim to core and net modules To: Stefano Garzarella , virtualization@lists.linux-foundation.org Cc: Stefan Hajnoczi , linux-kernel@vger.kernel.org, Laurent Vivier , Max Gurtovoy , "Michael S. Tsirkin" , Eli Cohen References: <20201126144950.92850-1-sgarzare@redhat.com> <20201126144950.92850-18-sgarzare@redhat.com> From: Jason Wang Message-ID: Date: Mon, 30 Nov 2020 11:31:43 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201126144950.92850-18-sgarzare@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/26 下午10:49, Stefano Garzarella wrote: > From: Max Gurtovoy > > Introduce new vdpa_sim_net and vdpa_sim (core) drivers. This is a > preparation for adding a vdpa simulator module for block devices. > > Signed-off-by: Max Gurtovoy > [sgarzare: various cleanups/fixes] > Signed-off-by: Stefano Garzarella > --- > v2: > - Fixed "warning: variable 'dev' is used uninitialized" reported by > 'kernel test robot' and Dan Carpenter > - rebased on top of other changes (dev_attr, get_config(), notify(), etc.) > - left batch_mapping module parameter in the core [Jason] > > v1: > - Removed unused headers > - Removed empty module_init() module_exit() > - Moved vdpasim_is_little_endian() in vdpa_sim.h > - Moved vdpasim16_to_cpu/cpu_to_vdpasim16() in vdpa_sim.h > - Added vdpasim*_to_cpu/cpu_to_vdpasim*() also for 32 and 64 > - Replaced 'select VDPA_SIM' with 'depends on VDPA_SIM' since selected > option can not depend on other [Jason] > --- > drivers/vdpa/vdpa_sim/vdpa_sim.h | 103 +++++++++++++ > drivers/vdpa/vdpa_sim/vdpa_sim.c | 222 +-------------------------- > drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 171 +++++++++++++++++++++ > drivers/vdpa/Kconfig | 13 +- > drivers/vdpa/vdpa_sim/Makefile | 1 + > 5 files changed, 290 insertions(+), 220 deletions(-) > create mode 100644 drivers/vdpa/vdpa_sim/vdpa_sim.h > create mode 100644 drivers/vdpa/vdpa_sim/vdpa_sim_net.c Looks good, consider there are some still some questions left. I will probably ack for the next version. Thanks