Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C03F7C433DB for ; Wed, 3 Feb 2021 11:21:16 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55A8964DCC for ; Wed, 3 Feb 2021 11:21:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 55A8964DCC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.80880.148275 (Exim 4.92) (envelope-from ) id 1l7GDU-000159-IZ; Wed, 03 Feb 2021 11:21:00 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 80880.148275; Wed, 03 Feb 2021 11:21:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l7GDU-000152-F9; Wed, 03 Feb 2021 11:21:00 +0000 Received: by outflank-mailman (input) for mailman id 80880; Wed, 03 Feb 2021 11:20:59 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l7GDT-00014x-Fa for xen-devel@lists.xenproject.org; Wed, 03 Feb 2021 11:20:59 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l7GDR-0006Y4-Gp; Wed, 03 Feb 2021 11:20:57 +0000 Received: from 54-240-197-225.amazon.com ([54.240.197.225] helo=a483e7b01a66.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l7GDR-0006MR-9K; Wed, 03 Feb 2021 11:20:57 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=SBcLEcpvO3k+svE+RRLJ+wnouCQimxvuZz8XhlodnlE=; b=lVjGxmUZHITggI+yPkySqp6Sve EjlxqxwQahaRYWG/U/odQtxVC9k8gFPqLotX1kAXK2eybQNaMpm3/sSQCwQpTAKz9lGU+b/6lxDI/ B+/M4Qp+gEeXpIaEEgXe5MTHddcxEbMREMJeA2zvHqpCVhBzpspU6Y3qVcwVBskrlwxc=; Subject: Re: Null scheduler and vwfi native problem To: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= , Dario Faggioli , =?UTF-8?Q?Anders_T=c3=b6rnqvist?= , xen-devel@lists.xenproject.org, Stefano Stabellini Cc: Jan Beulich , Andrew Cooper References: <207305e4e2998614767fdcc5ad83ced6de982820.camel@suse.com> <744ddde6-a228-82fc-76b9-401926d7963b@xen.org> <18ef4619-19ae-90d2-459c-9b5282b49176@codiax.se> <4760cbac-b006-78bc-b064-3265384f6707@xen.org> <311bb201bcacfd356f0c0b67856754eceae39e37.camel@suse.com> <7f2ec84a-9814-ffb1-0940-e936a80afbbb@xen.org> <501664dbdb736eaa4d9c05255dedfd7ad3e694fa.camel@suse.com> <1ab7ad80-c027-ffdd-8188-e1ab1fd53335@xen.org> <5ad8befd-75a1-4995-e0bb-e1a438f7556d@suse.com> From: Julien Grall Message-ID: Date: Wed, 3 Feb 2021 11:20:55 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <5ad8befd-75a1-4995-e0bb-e1a438f7556d@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Hi Juergen, On 03/02/2021 11:00, Jürgen Groß wrote: > On 03.02.21 10:19, Julien Grall wrote: >> Hi, >> >> On 03/02/2021 07:31, Dario Faggioli wrote: >>> On Tue, 2021-02-02 at 15:23 +0000, Julien Grall wrote: >>>> In reality, it is probably still too early as a pCPU can be >>>> considered >>>> quiesced until a call to rcu_lock*() (such rcu_lock_domain()). >>>> >>> Well, yes, in theory, we could track down which is the first RCU read >>> side crit. section on this path, and put the call right before that (if >>> I understood what you mean). >> >> Oh, that's not what I meant. This will indeed be far more complex than >> I originally had in mind. >> >> AFAIU, the RCU uses critical section to protect data. So the >> "entering" could be used as "the pCPU is not quiesced" and "exiting" >> could be used as "the pCPU is quiesced". >> >> The concern with my approach is we would need to make sure that Xen >> correctly uses the rcu helpers. I know Juergen worked on that >> recently, but I don't know whether this is fully complete. > > I think it is complete, but I can't be sure, of course. > > One bit missing (for catching some wrong uses of the helpers) is this > patch: > > https://lists.xen.org/archives/html/xen-devel/2020-03/msg01759.html > > I don't remember why it hasn't been taken, but I think there was a > specific reason for that. Looking at v8 and the patch is suitably reviewed by Jan. So I am a bit puzzled to why this wasn't committed... I had to go to v6 and notice the following message: "albeit to be honest I'm not fully convinced we need to go this far." Was the implication that his reviewed-by was conditional to someone else answering to the e-mail? Cheers, -- Julien Grall