Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2835183pxb; Sun, 15 Nov 2020 20:22:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIsgLI0mI7eFbUefcnOEUQ635avGRQrOjL1L5teeoJqLp9q1slU+KfJnCmpXMQcV6pgCvI X-Received: by 2002:a05:6402:947:: with SMTP id h7mr14033407edz.85.1605500533949; Sun, 15 Nov 2020 20:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605500533; cv=none; d=google.com; s=arc-20160816; b=0OzLCvSW57fGOIb4PByKNwgmKN75ulaAZBITT3tIICTMNZYj4qSfPdysfbBrLvceST Zb0TPOgUvMNdN8gSxjVE4v7xTlYn8M5wZ3TxxyEEnBIOIns2rKidjquaPayjWmCKfYIg tZHQHLupAb2LUw31igs6KSBS6+B6iqd1A5hkgV0g/qCV46RJkxAAxrJFhB+GJcNSXqiF X8OVSm4ZM4A9My3AXY2x3EwXdoM9JB08N3ZdlSk8LDP2LQp/06h8UHWl8gHB+zqi0tbE Aelp0Khosnn2PQ+zr4DZG38oRW8hlEUlKLVstwF7SFfhm7nAdzRlN1fdD5Hqfc+EJe7N CNFQ== 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=i7Vss3nxtQh7qgaw4fJV/OR1O3wbN/QeZ53EHIIQef8=; b=ewdTNVsPKyMO/4+K80is5OG5jn7LNM6hL1G9BCIaK9goXqZo5DKo3el5Z6nNasXb92 Li5pFqv8jbq5CKflSJdCRJUnGWNLTvt8w1n5nAqWzFsFWRmEx/TchTlytrBVex5QS994 2i3ysW27kgdnWQr9grY22fdwfk95x0IeXcv/wTQJAIxM9T5vIWAxbMoVaOmGhwMMWXPd llFct6Gb2SW0UVA0qnL4fLVc5RRupse5eEPqVglHkliC3j2TWy7cBjT9yEjpTQhAajnc T5apZS/BwmyStu45xZPG8Aod/T8s4r7YdC/gOAZf4mhorouUnE2d+4/I0hRXPE/hwehF DrFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WfLX7DMx; 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 w10si10998291ejz.5.2020.11.15.20.21.50; Sun, 15 Nov 2020 20:22:13 -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=WfLX7DMx; 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 S1727072AbgKPEMh (ORCPT + 99 others); Sun, 15 Nov 2020 23:12:37 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:49397 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726531AbgKPEMg (ORCPT ); Sun, 15 Nov 2020 23:12:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605499955; 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=i7Vss3nxtQh7qgaw4fJV/OR1O3wbN/QeZ53EHIIQef8=; b=WfLX7DMxdn4VEGhyci4r98om1wybh46qE4bfXD/J1ZN8fi95zeQUSAiQznEc+Bgi3fPs/E Wlr/ZGfsAo/rHfNOqXYvEKBOihUN9X6aoqEhmLNXtwMdHhQ8LUShY2ZPRhPhxxCTds6QeR +SjtRFL7n+2UaJWFHT37p75uGAMoHe8= 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-485-7AP2DiVXP1KPnH_efDnqxQ-1; Sun, 15 Nov 2020 23:12:33 -0500 X-MC-Unique: 7AP2DiVXP1KPnH_efDnqxQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7FF4F8015FB; Mon, 16 Nov 2020 04:12:32 +0000 (UTC) Received: from [10.72.13.126] (ovpn-13-126.pek2.redhat.com [10.72.13.126]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7B26618439; Mon, 16 Nov 2020 04:12:23 +0000 (UTC) Subject: Re: [PATCH RFC 05/12] vdpa_sim: remove the limit of IOTLB entries To: Stefano Garzarella , virtualization@lists.linux-foundation.org Cc: Stefan Hajnoczi , Laurent Vivier , linux-kernel@vger.kernel.org, Eli Cohen , "Michael S. Tsirkin" , Max Gurtovoy References: <20201113134712.69744-1-sgarzare@redhat.com> <20201113134712.69744-6-sgarzare@redhat.com> From: Jason Wang Message-ID: <67e0358e-0ae8-75e9-156f-4156f58387d9@redhat.com> Date: Mon, 16 Nov 2020 12:12:21 +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: <20201113134712.69744-6-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.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/13 下午9:47, Stefano Garzarella wrote: > The simulated devices can support multiple queues, so this limit > should be defined according to the number of queues supported by > the device. > > Since we are in a simulator, let's simply remove that limit. > > Suggested-by: Jason Wang > Signed-off-by: Stefano Garzarella Acked-by: Jason Wang It would be good to introduce a macro instead of using the magic 0 here. Thanks > --- > drivers/vdpa/vdpa_sim/vdpa_sim.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c > index 2b4fea354413..9c9717441bbe 100644 > --- a/drivers/vdpa/vdpa_sim/vdpa_sim.c > +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c > @@ -230,7 +230,7 @@ struct vdpasim *vdpasim_create(struct vdpasim_init_attr *attr) > goto err_iommu; > set_dma_ops(dev, &vdpasim_dma_ops); > > - vdpasim->iommu = vhost_iotlb_alloc(2048, 0); > + vdpasim->iommu = vhost_iotlb_alloc(0, 0); > if (!vdpasim->iommu) > goto err_iommu; >