Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5760419pxu; Thu, 22 Oct 2020 10:18:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzha02r/PT5Kyjj5irEdPCIe/rRI5zDBvAh1nl/8t6P4Ytrtgjjib2USEOcY2HkOXJae5kS X-Received: by 2002:a17:906:110b:: with SMTP id h11mr3475677eja.156.1603387086642; Thu, 22 Oct 2020 10:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603387086; cv=none; d=google.com; s=arc-20160816; b=FFICMhr55zdisFwnldnc54s4h9NrlL+gyEG3ETDlrOTpP143UknRqlvcBwUv2PCNdF uLBNG3tiRQQUpHOjexVzA6kPNVgZLrsiwPmHU1wSQ8wMRqAKtwqO8gp7t62UT6ndrroI rHxK0EhbdHswQuyWr4iSGqNOC/9vQy85joKPoCGUB5fIHHk35Qr8wNF2kR6DCWC0Tb4R fPtP6a/Co/IQa5HfqSjU2DpzP3IeIuDtqRjrNpAgeDNYweQuDOBz+psfaVxVx26TaTSl +vJt8mxrgRZxZ4bXgJ50Yr+G3bTy5lGYIkvDcrF0h4ObbxnteEYTM0EEmN+g1hoQ12gO fuyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=xnl30XZmbkdq+DrOW7dw1rQEfgCFIhyaC9tjnrTpvhk=; b=ckyBFnGxPlSdtXi5e107WYA2iRhK8Y1I+bpsb7YQNMW3MgyzCReaqzz1CdtyxQeDIt XTfSiwP2dHMuwLYqaOlO9AQp404zApu738bl7u7GRnTHc0l9iz5xkmG32UhMjEjzobIZ IS/rtDDYJ2Y6sENz67jgHE5XUtZYzkv8TmwKcSQI89A87+93gl/oXUqXHbnsyxHU2whP mQ3neetPm+Lr0uIUD/d8JyN+PzKYMofp+AVNK+hsdNkYFMyx/RhzRAoZY268DOjMPCGI 7u+JvmWW7UJTtcYzOHMWsnCLh+oyNbnyyTQ/9uwvKMVVdF9rczsugR2xjtBP2wvcLPXE 5X9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=G3EvcoqI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si1125336edr.222.2020.10.22.10.17.44; Thu, 22 Oct 2020 10:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=G3EvcoqI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2899353AbgJVNJG (ORCPT + 99 others); Thu, 22 Oct 2020 09:09:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:44886 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2442464AbgJVNJG (ORCPT ); Thu, 22 Oct 2020 09:09:06 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1603372145; 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=xnl30XZmbkdq+DrOW7dw1rQEfgCFIhyaC9tjnrTpvhk=; b=G3EvcoqIsqGs4aDO2mpBJ1JGmOUd/OPq7oygh7b6FF+0GTcrKqbng6hgIBfCH3Os3t/dIS uV/OIsKhlCM/Y5jWNUEQDJNFCgoh3+eFZBMSrsIC/BSdBaokhWtsWh9fyjw5n6pfIj+qVs MIV16z6zFR4NJs+Ydt0K7f5fFIaSdI4= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A540AAC3F; Thu, 22 Oct 2020 13:09:05 +0000 (UTC) Subject: Re: [PATCH v2 3/5] xen/events: only register debug interrupt for 2-level events To: Jan Beulich Cc: xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org, Boris Ostrovsky , Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" References: <20201022094907.28560-1-jgross@suse.com> <20201022094907.28560-4-jgross@suse.com> <1de24e42-6cb7-4ecb-0eb2-c4a15dc8afc9@suse.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <98f76c98-00d5-3238-a54f-cce52419160f@suse.com> Date: Thu, 22 Oct 2020 15:09:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <1de24e42-6cb7-4ecb-0eb2-c4a15dc8afc9@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.10.20 12:35, Jan Beulich wrote: > On 22.10.2020 11:49, Juergen Gross wrote: >> @@ -2080,10 +2080,12 @@ void __init xen_init_IRQ(void) >> int ret = -EINVAL; >> evtchn_port_t evtchn; >> >> - if (fifo_events) >> + if (xen_fifo_events) >> ret = xen_evtchn_fifo_init(); >> - if (ret < 0) >> + if (ret < 0) { >> xen_evtchn_2l_init(); >> + xen_fifo_events = false; >> + } > > Another note: While it may not matter right here, maybe better > first set the variable and the call the function? I don't think this is really important, TBH. This code is executed before other cpus are up and we'd have major other problems in case the sequence would really matter here. Juergen