Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp266443qtg; Fri, 31 Mar 2023 00:51:34 -0700 (PDT) X-Google-Smtp-Source: AKy350ZCDaiOWk553uhRTr1NjhCqejaJlBJzYebht5mBnMdJBzqag5jFpW4ENtx8xKKHAuSwvVIz X-Received: by 2002:a05:6402:524e:b0:500:3fd0:25a8 with SMTP id t14-20020a056402524e00b005003fd025a8mr4762386edd.0.1680249094061; Fri, 31 Mar 2023 00:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680249094; cv=none; d=google.com; s=arc-20160816; b=k6+zX513DY5JaPVLC5p/pkx14WTgsuHr+UEFipB7+Evbfbvt0NUXugruQPkaQLeQW8 cplHi/PLG7xP9xWEAtKNnBdLjheGxYj4GF7o9ZXRsZi6gAQqpV156+im5gVA9W4vMBlI v98BcOrYGDBrE+xiBFTXYznuXSGOprPFu1RxEvA9tEvtPELfCtLoHdSPfavjBsLzZmSm o7wHJ4v72arOJS5esyuXEQtAA/fICBym6GqhWPPC1Oo2G1/1JfsiVFxNjrsdd1KVL3pE senlvBWhX3KmAyzFiNt9aaRaueg1uI63qN6jsaGYJg23XmslN/2Vcsnn+HhFig0rNCeF fYhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ijuijWfOviH3p+YNIe7G3DYHHIm8VDsoLsYWWShhetc=; b=I5M6k84D6ImL1BXyWuCcO9og6TjDsZYxM4ZX2nv8Q7CIsV9GsUgfqXE+wy8vz7LvdQ 5S4hvJtHQGyNkfjL0OJ59R7zakSHN9SuwgUymr3iOVBuGLWuiVUWVx0j/f5JgFvQfVDA V5N2kauQIzaeJ5MoKN65xLwtMdqKcF6YeKztqC3coaVVfO1uOAz1whM0t52n/5Bxb896 TVYrrBPHC2TEc7DKNt4HZmdb0K7VbIjBvS+WZAhNwMREFuCrYDy07rkhJqwrF+kFvFYr 2lUwCDD+cl6IJUthyKXP0EleKSmbcEn1ja6it2lJb6axKGOQOZ7ZeioyGHH5AdiM6SwF 5psQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q1y5wMc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020aa7cad0000000b004c2822f85cfsi1443464edt.506.2023.03.31.00.51.08; Fri, 31 Mar 2023 00:51:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q1y5wMc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231326AbjCaHrK (ORCPT + 99 others); Fri, 31 Mar 2023 03:47:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbjCaHq1 (ORCPT ); Fri, 31 Mar 2023 03:46:27 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03FE81A966 for ; Fri, 31 Mar 2023 00:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680248741; 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: in-reply-to:in-reply-to:references:references; bh=ijuijWfOviH3p+YNIe7G3DYHHIm8VDsoLsYWWShhetc=; b=Q1y5wMc2zk2H523GR3Q4ltmFSrX4DtQhtzHM4XQ8qeK+p4zfoM85mWujiguGG/lg6VU50J BMCDRO//W9+CQFWJFinnTcJAH49Ui1LhSo3dT/iq/mb5BvpYseFtdifyBRmIXzepQgHrD3 KJUvzX93xTNn7ABlm2qneC4VTI+N6Zs= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-84-rwoCOLxtPiOAl2ggzh7MIg-1; Fri, 31 Mar 2023 03:45:39 -0400 X-MC-Unique: rwoCOLxtPiOAl2ggzh7MIg-1 Received: by mail-ed1-f72.google.com with SMTP id t26-20020a50d71a000000b005003c5087caso30361019edi.1 for ; Fri, 31 Mar 2023 00:45:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680248738; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ijuijWfOviH3p+YNIe7G3DYHHIm8VDsoLsYWWShhetc=; b=bWYaCmzVN3ytLvjgLjHa0UFV9ZeDYDusfTIA2x9oXHOBnp9EOslxkK37TguGtyVt3H DuKjgO8ABIm5IepcDZqAIk5l6bsPhdafXmHV9HNIJheMC3hV+qgiCgb7iDr/3aBDZR7a jjZoKEiaLJkwU8k7xZoi+TAGsv9cHnkORGJBCpm7oyMXpGhaYK4xPdivPQFVpa+PQ8H8 psfr4yLDDnqHqpoL7R3BfvUGJ119P62iLgwM96Eu6OcBj5H9vZk2DKMHkJaKhtROMZh2 7iE/kxxWBi1na3LOtUfsbRjs92qiii0abwmt/nLNGzPlADsBlmxLm0kahvtsm02Q1z/v 3iCw== X-Gm-Message-State: AAQBX9dkBdd4HfYyo41X3gDxMeQnjRmnZpI7JsFQU72S+o8lqzsfzIpC uWy2bMk/A1AK/lCWkcKDZgw54adeWOAESwuXZUxbSASiqvNGqdvMEdJ+LkBCliLq3o8sB0/IjuR fQdGP4EYpnLg1AJXul0DsH/1X X-Received: by 2002:a17:906:5785:b0:93d:1c2b:bd23 with SMTP id k5-20020a170906578500b0093d1c2bbd23mr28486739ejq.39.1680248738075; Fri, 31 Mar 2023 00:45:38 -0700 (PDT) X-Received: by 2002:a17:906:5785:b0:93d:1c2b:bd23 with SMTP id k5-20020a170906578500b0093d1c2bbd23mr28486717ejq.39.1680248737742; Fri, 31 Mar 2023 00:45:37 -0700 (PDT) Received: from sgarzare-redhat (host-82-57-51-130.retail.telecomitalia.it. [82.57.51.130]) by smtp.gmail.com with ESMTPSA id dx21-20020a170906a85500b008d044ede804sm677526ejb.163.2023.03.31.00.45.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 00:45:37 -0700 (PDT) Date: Fri, 31 Mar 2023 09:45:33 +0200 From: Stefano Garzarella To: Simon Horman Cc: virtualization@lists.linux-foundation.org, Andrey Zhadchenko , Jason Wang , eperezma@redhat.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, kvm@vger.kernel.org, stefanha@redhat.com, "Michael S. Tsirkin" Subject: Re: [PATCH v4 5/9] vringh: support VA with iotlb Message-ID: <3jqstd75xs6f2pn7pwjxnkphhan5bk25er3ord4rw63545htu7@vgngick7zfco> References: <20230324153607.46836-1-sgarzare@redhat.com> <20230324153919.47633-1-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 30, 2023 at 03:02:21PM +0200, Simon Horman wrote: >On Fri, Mar 24, 2023 at 04:39:19PM +0100, Stefano Garzarella wrote: >> vDPA supports the possibility to use user VA in the iotlb messages. >> So, let's add support for user VA in vringh to use it in the vDPA >> simulators. >> >> Signed-off-by: Stefano Garzarella > >... > >> +/** >> + * vringh_init_iotlb_va - initialize a vringh for a ring with IOTLB containing >> + * user VA. >> + * @vrh: the vringh to initialize. >> + * @features: the feature bits for this ring. >> + * @num: the number of elements. >> + * @weak_barriers: true if we only need memory barriers, not I/O. >> + * @desc: the userpace descriptor pointer. >> + * @avail: the userpace avail pointer. >> + * @used: the userpace used pointer. > >nit: s/userpace/userspace/ Oops, good catch! Copy & past typos also present in the documentation of vringh_init_kern and vringh_init_iotlb. I will fix this patch and send a separate patch to fix the other two. Thanks, Stefano