Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5759802pxu; Thu, 22 Oct 2020 10:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnJkw0nokXddXHvexGC7dYafBSnyzjocyawrnXWjSTA/MPtLbJHhSSiyD1hFOO+dbhEh6y X-Received: by 2002:a50:fb18:: with SMTP id d24mr3279503edq.43.1603387028425; Thu, 22 Oct 2020 10:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603387028; cv=none; d=google.com; s=arc-20160816; b=SmuYs0b/jF95z4cE61nBrkecrE0Yvb09F8WmoJHLQY/oOgeH0890/iKdssdjebAln8 KUA0t2eMDqUUGKcaMEI022q8H/IVqK7zz8y0LGyNi8io0gjMdwpQRsBF5+tLeWCAKnlb 7wHXW96ihXAVdqsJUDUixJGoqp68ZEqMpga8Y1YuUfZ1jZd9Kz83JKQadOF71JHfqoHz gT7WcB/U83/mFKPp8QQ4ib3Vo2qMkOhS2LSsU3CGuMPgH4xH29UfzPH2pQtAlKmAGK4P Hx0pU4IefC2fPnd0Gd8TWWZu1PGVAiVl0091WXaXc2UGsFBFOym1pU6kikxtBgxi9A0E LoqQ== 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=q3XLuJAiAJI40OqF2MlzN6uIGy9R9OJtoodmMnAlqVA=; b=wz4cVZqFVxTEWcll9tObGH3OX07SN7k4DEabOW2jyqV84dioop+rMLsY+KwQOqZkmq ZiNSLYIrg5eHozITS6wR4QJ8Gj3ks9vAEJPQxm2fT14ALN8dVT/D8wyb/Tu+cBHAZT13 42RmicH2hWQ/HlxCs5OL6LskXHDFlKAjEwiGV7lFwAZ4Tvml8UQ3h2iNZujyCfzbYqxe GNnPWtbGgr3t9hzGfg6oGPQx2UGdiyyxq0dIlaAk72ElVmKMH5u1hPmdNUuwc/MfZs+X IN1KLe02kjxGH/8xvWXSOxHSbx9Sp/Md75cKmp5kkYrEoKuPTegPhX98DvjSJhX6FQ1C imsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="R/lMCrLL"; 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 a95si1345616edf.1.2020.10.22.10.16.46; Thu, 22 Oct 2020 10:17:08 -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="R/lMCrLL"; 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 S2899465AbgJVNRx (ORCPT + 99 others); Thu, 22 Oct 2020 09:17:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:43654 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2899459AbgJVNRx (ORCPT ); Thu, 22 Oct 2020 09:17:53 -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=1603372672; 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=q3XLuJAiAJI40OqF2MlzN6uIGy9R9OJtoodmMnAlqVA=; b=R/lMCrLLsJ9oxMG8VYEjoj5XbtqmyCxxnkVfZT529iQ9EyrPI8NQo9Ft0fvftXIwPN/QRw WuR6R+i/DjPdKXhmnkCtsIeWGL+zxgLuHolPEnxjO0iiZcsdVvaHoZZg8tE+obiBqgPbb8 ioZMsgIylAxUhxAT7O3IyhVn5ER3N4w= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0FCABAE35; Thu, 22 Oct 2020 13:17:52 +0000 (UTC) Subject: Re: [PATCH v2 3/5] xen/events: only register debug interrupt for 2-level events To: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= 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> <98f76c98-00d5-3238-a54f-cce52419160f@suse.com> From: Jan Beulich Message-ID: Date: Thu, 22 Oct 2020 15:17:52 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <98f76c98-00d5-3238-a54f-cce52419160f@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.10.2020 15:09, Jürgen Groß wrote: > 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. Fair enough; I was thinking in particular that it ought to be legitimate for xen_evtchn_2l_init() to BUG_ON(xen_fifo_events). Jan