Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp372042rwj; Fri, 23 Dec 2022 02:39:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6eQxkXKowOm0GdjFyxmYaKeq7/B/QH7XnNVqlcbxjRDhOykigwvI2+2Bl5q0NruxKVAV/ X-Received: by 2002:a17:902:ab14:b0:189:c62e:ac34 with SMTP id ik20-20020a170902ab1400b00189c62eac34mr9994349plb.47.1671791946604; Fri, 23 Dec 2022 02:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671791946; cv=none; d=google.com; s=arc-20160816; b=jIuDgiI4Asivi/ccFR/G/sBON4zGQs55GplasRjoAoAkHvcfdDHsmsdPz+tDkrEfhm neoa6Owg7kn5FzszLM4GkPNsIOI3KZi/+oY2HTc0cbMRtliq1kV2LRsm92LH5gfpu9lP 7vVJqSSc2w9ZebixslmsRxGkxmoHaFutW6eMnI9LL7YlYDgIkaCyOXQs8ypOZLb/wpFu hPlMMflBmmTlI44kPHBQkcZvtH+wJwzPI7sKxwIWWQdjn9UryKxuIa9o1Z2Nv0CCLUSM a6q+NvzZikKWq5pmddSZekZrcRKwKMOzu9mWE9ZDnHm0PCWOFLuszH1EeJ2itmw8x5j+ 839g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DsRBNe3WT8BRQoVRu10Z7bp050T1kGX33i/INXm09e0=; b=yANHFmOppjy+6JXdieQi+kYcqbue3rFMfPCd4c3b2fAJW7IyqMhgcjNLdQQueflJsp MChUqL4fE01a7ZiGv8zEeWgw/BwsG1rRXKSXG9QiBzGjta8DgNXcDrc3NnLee+30CAvT HSkYHnEsurbiMZ9uz20L3bNyCi0DgbaEOVkMdO08OtyfNifons9ArRv9VH4/QJdokoED tq+4ejD7IKcY4hVP/XETjbb6T1zNGlDxCSmVM1Zj2AzXbcQZ3gvP9/eNUPzTjfkMsB7F /l8R5iISTH5AdAAETiPaATqmYNpiuKFF5MLDnu/lsG/A4QyP66PQIobt74AgRBGI6dlm h3Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eyRd2eo2; 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 x21-20020a17090300d500b001868a25da0dsi2780499plc.40.2022.12.23.02.38.58; Fri, 23 Dec 2022 02:39:06 -0800 (PST) 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=eyRd2eo2; 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 S230120AbiLWKM0 (ORCPT + 67 others); Fri, 23 Dec 2022 05:12:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiLWKMY (ORCPT ); Fri, 23 Dec 2022 05:12:24 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67E13F014 for ; Fri, 23 Dec 2022 02:11:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671790300; 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=DsRBNe3WT8BRQoVRu10Z7bp050T1kGX33i/INXm09e0=; b=eyRd2eo2tcrFNWoQlrlqpBr78EDkFvz5VrirvmidllsoGf1+wQXji7AS/whReoz4tdnplE S0pfNCtc2XAYIGJILFUWW86DYPjgonTz8NFOP4Z+N3eWheNmqbi4pk6GPs5SV3iwu0rDBa KFaUMpOz2g8bXJAT0QVrZih0DnB2xG8= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-467-id_sWNBuM1OfEAWGX3IsSw-1; Fri, 23 Dec 2022 05:11:38 -0500 X-MC-Unique: id_sWNBuM1OfEAWGX3IsSw-1 Received: by mail-ej1-f70.google.com with SMTP id oz11-20020a1709077d8b00b007c0dd8018b6so3171484ejc.17 for ; Fri, 23 Dec 2022 02:11:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DsRBNe3WT8BRQoVRu10Z7bp050T1kGX33i/INXm09e0=; b=tv/AkD3KE9ztMlF9IXRS/LFPPwDa/A84EJp12xEoYJnLNJotQESMnryTTgf0EiWykm LsE+LMG8419TcflgSLqXi95ulEKoJ0vKQV0FaiFxJzdoiW0oVsmAJL0zdQSQGlR46iP6 q8RC5r1aXGNd2K8pT7HO57slT+EaC6tbB4iSOab+MlX71+z5bYz1LhdNE02Onn1FDveQ nnIfv9dLZsIFbscraLSCjYBqEiyXtIBxg96aV1u/j7BdDCAMnV26B9TNCq4xlMRxU+Q9 kuKkTECOD3wc3qpYq/9EUhJtUT9Gj4/KEJBNQBX3LxNYb6cWHC37oZr/XBni5hTFgs5o 61CQ== X-Gm-Message-State: AFqh2ko1Nx3EPH7aUCT9SjsNNszGHGtu1XcrcRU0gp7U+TAwZvFmKvz2 CsXXdC2iCrgpOwcEobRsE57VlqwL0zUaWEMzpDclitq8ig/ijpzwFSNnxRvWTjSMHJeHoBpIXOk mBDI3rdzSeguoi/YUra3oXILg3Q/1C1DTNdlTWAZD X-Received: by 2002:a17:906:a391:b0:7b2:7c9a:1849 with SMTP id k17-20020a170906a39100b007b27c9a1849mr658255ejz.733.1671790297201; Fri, 23 Dec 2022 02:11:37 -0800 (PST) X-Received: by 2002:a17:906:a391:b0:7b2:7c9a:1849 with SMTP id k17-20020a170906a39100b007b27c9a1849mr658249ejz.733.1671790297000; Fri, 23 Dec 2022 02:11:37 -0800 (PST) MIME-Version: 1.0 References: <20221221062146.15356-1-jasowang@redhat.com> In-Reply-To: <20221221062146.15356-1-jasowang@redhat.com> From: Eugenio Perez Martin Date: Fri, 23 Dec 2022 11:11:00 +0100 Message-ID: Subject: Re: [PATCH] vdpa_sim: use weak barriers To: Jason Wang Cc: mst@redhat.com, sgarzare@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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=ham 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 Wed, Dec 21, 2022 at 7:21 AM Jason Wang wrote: > > vDPA simulators are software emulated device, so let's switch to use > weak barriers to avoid extra overhead in the driver. > > Signed-off-by: Jason Wang Acked-by: Eugenio P=C3=A9rez 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/vdp= a_sim.c > index b071f0d842fb..eeaeaf43b476 100644 > --- a/drivers/vdpa/vdpa_sim/vdpa_sim.c > +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c > @@ -68,7 +68,7 @@ static void vdpasim_queue_ready(struct vdpasim *vdpasim= , unsigned int idx) > struct vdpasim_virtqueue *vq =3D &vdpasim->vqs[idx]; > > vringh_init_iotlb(&vq->vring, vdpasim->dev_attr.supported_feature= s, > - VDPASIM_QUEUE_MAX, false, > + VDPASIM_QUEUE_MAX, true, > (struct vring_desc *)(uintptr_t)vq->desc_addr, > (struct vring_avail *) > (uintptr_t)vq->driver_addr, > -- > 2.25.1 >