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,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 83BB7C433DB for ; Wed, 3 Feb 2021 09:19:40 +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 1886A64F53 for ; Wed, 3 Feb 2021 09:19:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1886A64F53 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.80859.148206 (Exim 4.92) (envelope-from ) id 1l7EJc-0005Iy-Cg; Wed, 03 Feb 2021 09:19:12 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 80859.148206; Wed, 03 Feb 2021 09:19:12 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l7EJc-0005Ir-96; Wed, 03 Feb 2021 09:19:12 +0000 Received: by outflank-mailman (input) for mailman id 80859; Wed, 03 Feb 2021 09:19:11 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l7EJb-0005Im-1y for xen-devel@lists.xenproject.org; Wed, 03 Feb 2021 09:19:11 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l7EJY-0004Xt-Qv; Wed, 03 Feb 2021 09:19:08 +0000 Received: from 54-240-197-233.amazon.com ([54.240.197.233] 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 1l7EJY-00078V-Hg; Wed, 03 Feb 2021 09:19:08 +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=Y5xbycL6If9nruYgguxOqo7byWRB1Be/Kv3cglmw/hA=; b=JTH58skLf9xQv7vVE7pWroXQv9 ALsM/YjdxVYwctdA59WeQBc6E1R3630OtdHE9JPFrSl/2TUYN0+y4rUTvgnh56BJ74yRcz5CP5fDA Uiqn666LaFvBOJQzE6YQC3HHh2JjV1PKtyv+/zfc3yi2qz0rcwZUe5nFkGnHdBm6vvQQ=; Subject: Re: Null scheduler and vwfi native problem To: Dario Faggioli , =?UTF-8?Q?Anders_T=c3=b6rnqvist?= , xen-devel@lists.xenproject.org, Stefano Stabellini Cc: Jan Beulich , Andrew Cooper , Juergen Gross 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> From: Julien Grall Message-ID: <1ab7ad80-c027-ffdd-8188-e1ab1fd53335@xen.org> Date: Wed, 3 Feb 2021 09:19:06 +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: <501664dbdb736eaa4d9c05255dedfd7ad3e694fa.camel@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit 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. Cheers, -- Julien Grall