Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5095283iob; Mon, 9 May 2022 08:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsFyqIqVYoSa2j+/nifaCCQmNAHDKeWrZHA5e7hb8l2TzVCM1bpRSfjXryrsEdIfLG13Jj X-Received: by 2002:a05:6830:1e2b:b0:606:d74:dce8 with SMTP id t11-20020a0568301e2b00b006060d74dce8mr6062967otr.373.1652110252469; Mon, 09 May 2022 08:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652110252; cv=none; d=google.com; s=arc-20160816; b=XvGcizjvp5A3q6T/EUameydMVlcJOu6A1v1sQac3ohD0yaZon1mib6dAUu/ZeNb/4b GPOBrmMPJATh6kimWB30zJRq/Lr6j3PneGudlUe6/ZJttFGPQOWXAx1Ag/mxOWVENUIX vtyHNv7OI5rsJqcVdKK5y3cZN0iDYG0CcF2MIegHU8Bz9SLprtk09RePgea9cd+aVETl EB0IsQFTfkCc9gqjOF44U2pDRdal88g4TQC/hg5+KULT8N4PZlwMcKC4AeHbrJbYKzz7 xv2lEwNeVeQmx4DeQZEEE/kkuDFVVx84BE9Cd7TnwQCvoxre2BuZyY5mm5bd8gyTgfxr QX9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:organization:in-reply-to:subject:cc:to:from :dkim-signature; bh=8bfcIm7yDlfqmbUO81rwbADuEkLjKknQeGnF1p4aFcw=; b=gMUdz0m1IU5CKu1EFhwXoifn0emji78aBe0Kk2l8W4E//lZEYHbAmJbQBASdSjBzUU 0iV/JPBmyLSjNjzyNFktA1/X63nMDk0sSp63CmZTfRMdXm+41Df9py/2eD34iEvxiLDG i+jISbHKjOX/PI+Vj2QGGjbv0s4l+lqVGeX5ikyZdeNsep8bpSGSEztWRRMGNlbo80u9 8Jbhbgg/hTzz/yTS/3jDCumgocikVh8d2r+bIrtHstUzuOJWEM0kMLhSNYQw1l77oUyP WZ84Kdn1DlnPnDUfBtMFENx6oPk2KCigo3fvw9TQ1mc7XlaeyyND/neBW7KS2zmwTG9J aULQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KlFHZSgt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n31-20020a056870821f00b000eda342339bsi9542204oae.26.2022.05.09.08.30.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 08:30:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KlFHZSgt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 11A402218CC; Mon, 9 May 2022 08:25:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233821AbiEIP2t (ORCPT + 99 others); Mon, 9 May 2022 11:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238213AbiEIP2r (ORCPT ); Mon, 9 May 2022 11:28:47 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EEA1B2180A for ; Mon, 9 May 2022 08:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652109893; 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=8bfcIm7yDlfqmbUO81rwbADuEkLjKknQeGnF1p4aFcw=; b=KlFHZSgtXR/SRaybs713eNXOQFSQiPnzhM+/mQtFx11FGZbBtsrWYU/JsrtxDAx0I1QlHS TZ/UENUbqSxXsRqEf0DL7UqxnhNtKycEHw5CZaxFccRiZkcaEux5TGW7piZ75EEey7TETE E+mvivFDLVmYrsaRCJ0tYZu2A0OkEIc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-379-pxLQ7rAZNlO4dpEoB7X3Fg-1; Mon, 09 May 2022 11:24:48 -0400 X-MC-Unique: pxLQ7rAZNlO4dpEoB7X3Fg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9578D101AA44; Mon, 9 May 2022 15:24:47 +0000 (UTC) Received: from localhost (unknown [10.39.193.170]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 49CD42166B2F; Mon, 9 May 2022 15:24:39 +0000 (UTC) From: Cornelia Huck To: Jason Wang , jasowang@redhat.com, mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, peterz@infradead.org, paulmck@kernel.org, maz@kernel.org, pasic@linux.ibm.com, eperezma@redhat.com, lulu@redhat.com, sgarzare@redhat.com, xuanzhuo@linux.alibaba.com Subject: Re: [PATCH V4 3/9] virtio: introduce config op to synchronize vring callbacks In-Reply-To: <20220507071954.14455-4-jasowang@redhat.com> Organization: Red Hat GmbH References: <20220507071954.14455-1-jasowang@redhat.com> <20220507071954.14455-4-jasowang@redhat.com> User-Agent: Notmuch/0.34 (https://notmuchmail.org) Date: Mon, 09 May 2022 17:24:37 +0200 Message-ID: <878rra4tl6.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Sat, May 07 2022, Jason Wang wrote: > This patch introduces new virtio config op to vring > callbacks. Transport specific method is required to make sure the > write before this function is visible to the vring_interrupt() that is > called after the return of this function. For the transport that > doesn't provide synchronize_vqs(), use synchornize_rcu() which > synchronize with IRQ implicitly as a fallback. > > Cc: Thomas Gleixner > Cc: Peter Zijlstra > Cc: "Paul E. McKenney" > Cc: Marc Zyngier > Cc: Halil Pasic > Cc: Cornelia Huck > Signed-off-by: Jason Wang > --- > include/linux/virtio_config.h | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) Reviewed-by: Cornelia Huck