Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5434917pxu; Thu, 22 Oct 2020 02:07:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDjkY+UJnrk6BGNVpFmrDQV422/iUSXJwG0365QH1G+hl3oFWJi+ZIe5+MKQ6NEgmVYhza X-Received: by 2002:a17:906:1f42:: with SMTP id d2mr1238984ejk.407.1603357664699; Thu, 22 Oct 2020 02:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603357664; cv=none; d=google.com; s=arc-20160816; b=WqrniuyJmLfeG6jYno+LD7KUrAdmuImw0jmcp1C5pWjqtHU6vYHzVfV2T5TubIHwOD LXH+NItvxYzE9SzQAx1fL6TOR5qKAIs7nVjNKPb+b3r7ueM4aoDklaUn1p8cH0AzqLDj l/zggxry7hJmZO8X5MLCORhqLadjxdGpqrac4145ripMbsx4VrRg6J3rfQyLNEJnMEoQ yFMDvGT/OUl3Fn1KS93lBmEM6xCbmhSl/JHjyfZY0ahUPGg2Hqekf2CS4npzxOpXooY5 YbKbN8DyfM6Uap0gTAae9hHU3a6OR+l+pfnSd0jcfU0J9je5N9D2hhUhXaiIexYnjsbP av8A== 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=+ak4XkyQcVmIRaA1l0Rz4F8yZmad7xR9rPkb2Zs/I4w=; b=fx6eduzHj6YqOXRlG4wvc+H2NAAjLZJ1JSS0mYXVkzSGY0Iy75xfmg0VwGRGDpB62W KpUgppZwocJ8qzH14bJHbYVLT4gWIkbOgXTA4RWHW05f6SwBgow7VDugXOP0FHKVh1wP cfZeWvqIjgRxQNWU8D+QNvA92TFhJZZpiRUkovQzgeibYdreGTiH0bm3FSKgd7Gdfzf1 cKj9xYfHVC2oeFYFXgjAt4rM2miqgg4s24nsbSCCIPiYn6aZefRZOWIEeG8SGOLAvi8t Yk1fHtzJvbGoGUtaZHJOxHj7Zzzbt3AliNR67Wux8DrfnIS6IOGXlLjA3YT9S2sPu2+e B2qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=bXrR6ECZ; 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 f26si536643edq.430.2020.10.22.02.07.22; Thu, 22 Oct 2020 02:07:44 -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=bXrR6ECZ; 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 S2507742AbgJVI2r (ORCPT + 99 others); Thu, 22 Oct 2020 04:28:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:55748 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502321AbgJVI2r (ORCPT ); Thu, 22 Oct 2020 04:28:47 -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=1603355326; 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=+ak4XkyQcVmIRaA1l0Rz4F8yZmad7xR9rPkb2Zs/I4w=; b=bXrR6ECZL37VdSqI0vbVU00hc8qxobp23r7xk9scCpOzO847J+xYSponAUnuU1AAaIy92H dWF/+ipteKPoLAHbzcWOadipU+15mcv73HClKvqBGugMCUoNjgWhxr2WMrxem55T6urPTr a95IHGfvdlCLfbV6wKdta6PHMmDYrAw= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 531E4AFA8; Thu, 22 Oct 2020 08:28:46 +0000 (UTC) Subject: Re: [PATCH 4/5] xen/events: unmask a fifo event channel only if it was masked To: Jan Beulich Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Boris Ostrovsky , Stefano Stabellini References: <20201022074214.21693-1-jgross@suse.com> <20201022074214.21693-5-jgross@suse.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <72cb09c0-4fc7-f02e-c1fb-314e5add381f@suse.com> Date: Thu, 22 Oct 2020 10:28:45 +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: 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 09:55, Jan Beulich wrote: > On 22.10.2020 09:42, Juergen Gross wrote: >> --- a/drivers/xen/events/events_fifo.c >> +++ b/drivers/xen/events/events_fifo.c >> @@ -236,6 +236,9 @@ static bool clear_masked_cond(volatile event_word_t *word) >> >> w = *word; >> >> + if (!(w & (1 << EVTCHN_FIFO_MASKED))) >> + return true; > > Maybe better move this ... > >> do { >> if (w & (1 << EVTCHN_FIFO_PENDING)) >> return false; >> > > ... into the loop, above this check? Yes, that should be better. Juergen