Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5481683pxu; Thu, 22 Oct 2020 03:38:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWcRPG8F7jElo4xJqso3j2NoxqX1hD/0c9GXsC2MDwi5STmcywv2eTmZANYdY9Ym4Dq4Cq X-Received: by 2002:aa7:d484:: with SMTP id b4mr1629791edr.288.1603363092135; Thu, 22 Oct 2020 03:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603363092; cv=none; d=google.com; s=arc-20160816; b=A0c5Y0zvpaqEeUIWjsX1uYFDEW9/3OG/+ONzxcGCcoUgzIW8olI+MTgGdr4XhPqddZ ccRAqbKHyavjyp01kpy6kLQKyLpK4NOthNmd0x6zgt/j1/xUIFrD5rA0GpRmdWs3pHJP 6wRbCDIxuv9b0Wqyj51VvlDrqQvcHrfPfTGr2m5lYt/znI7jG6GWdqKLcMgv8JRh8XVP /U8lS2U6wHH8oTyGD3MOpKlj03vFiGmzW76Zq69tcdbtHEl/eHZpNP3c3P785CAZt4IR EvoqutfqtPZsY2f2YgYJHAwhwBtcsqTZLgy55d4nRgc9MWhS1xbidJclYdBxTgbK7IMm JlsQ== 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=7bj/gkiOtWxRriaas+Eg9fuSwfNM6Cn6VTUSXRtCPkU=; b=UPG5d4/3SKGZdn1XnUep+7V4koSgEH1M3QyAoxvyroo4Qd/yGduf5Z2/KBBEVMbWtY RtQmMBScmG3foPndialeq0KVoY9UIzuDS20Xiuj6Hhz6m278K5mYrFw8Kxo+ESoZ/5gN OzRIDSMvqh/QevS+kWgyYJ8EUcOXc/iQnnQZQNPa6vHQwXQl0Hd3b9XbIGbXX9B+6gI8 Eb/Pj60q1evw2VyCDx1v044Ov9EU+SI5JvquGsDZ2/q6VcBbxf0RVOBlegAKwWBm9/7C rSfmW+xwu12CHpKpLHNGVKJK5G1nBGhn4xlyJcP7CNRMQdXrlHPPhtTPRo5Xg98OVg0M 1StQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=dZ2Bu4bi; 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 k2si667580edx.2.2020.10.22.03.37.49; Thu, 22 Oct 2020 03:38:12 -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=dZ2Bu4bi; 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 S2896572AbgJVKft (ORCPT + 99 others); Thu, 22 Oct 2020 06:35:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:37260 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2896454AbgJVKft (ORCPT ); Thu, 22 Oct 2020 06:35:49 -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=1603362947; 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=7bj/gkiOtWxRriaas+Eg9fuSwfNM6Cn6VTUSXRtCPkU=; b=dZ2Bu4biyrSPNNa7TM1ZJ0TcOD4E9BZzt8z0SvvC2XdLwKtL1Q9Nj/ysADaaUau6dX8zlB zfXGYESxigbwEczzRNm+fnJVYsNBXnQzuaGwUT9jDDTW4dxdaLbY7bJhtczMRUpPV+GZqU r/mqRlp38QBpwr/sgWd4PIggZxgleb4= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6BDE9ACF6; Thu, 22 Oct 2020 10:35:47 +0000 (UTC) Subject: Re: [PATCH v2 3/5] xen/events: only register debug interrupt for 2-level events To: Juergen Gross 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> From: Jan Beulich Message-ID: <1de24e42-6cb7-4ecb-0eb2-c4a15dc8afc9@suse.com> Date: Thu, 22 Oct 2020 12:35:47 +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: <20201022094907.28560-4-jgross@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Jan