Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp303839pxb; Sat, 20 Feb 2021 04:16:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcpiMZ8xdAlDkKwflQxR6qhgmhpM9VzIPjrMppJBvjqUcyR5C5BPZqZDBI9PaL/XDKh4xG X-Received: by 2002:aa7:c60e:: with SMTP id h14mr3815732edq.342.1613823372203; Sat, 20 Feb 2021 04:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613823372; cv=none; d=google.com; s=arc-20160816; b=NQgzg6dOTh8YEFK3Gozs5Vw61S8DpjKHWJseFcHyOLA8jG2GiEHgXkvJ1R5mV8qn21 ZdI+auusZOfRNCZTYWpsuALtU/E2WbnouMhpPgNP92YO99oxcfuSFh5SU99CmsIzT6J1 ARyI3X4rq/YlkhcK2uelk/Nu9pbqWeZ6A0cUeahP7LHZ95EqPmNYLPncYUKQUI5udP0O zHfrmzQO4NPgpoFeWEMsKxwcrNDKYJri+Cv708ouCKN3QBikgAN1yplVPi9VpDkbeCKU P1ke2yboFj9DlcFPGpDPeiJ6GOiwGn6Gtf5YC34YWYK1tJ5bdB5aeEWeQQxA48ZCXVSc c1mA== 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=bQI3Ccup6yTIKmHa56nvcajDRXzkAB6HThNzesI2iXU=; b=0BwG4TojcIyH5b5v3u+XUKT7tg7qaO/OryCGhrQktF3cA8yv4DvKX80Vfew2BID5+O evhHd1hJQFcCliNhLWIOQGa4aEMN30ZSocsOT96c2PJlQOBnJYZahsrYUJscGmCLI/oz eDbOkxYr/xagsRs3kFSI1fkr48+NZBBsgxIwrJtWWkrShlofovDpW7xatT7uS8ZctNpC 16cWB3pL/7QyzAr+NVBTOEhkms+EmxVhkUmIwdUW/Xcou2xnesym+pG+kOgxVNWmOIxw naOjeUXeCS42MIlDhSwAQWAMkFr10XTMRzvYcd0rbCGTrMfSPluBOf1ii/LfQfn1Hzwi /KTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=lB2ygTAn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e19si3015940ejx.680.2021.02.20.04.15.49; Sat, 20 Feb 2021 04:16:12 -0800 (PST) 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=@xen.org header.s=20200302mail header.b=lB2ygTAn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229678AbhBTMNF (ORCPT + 99 others); Sat, 20 Feb 2021 07:13:05 -0500 Received: from mail.xenproject.org ([104.130.215.37]:54760 "EHLO mail.xenproject.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbhBTMNF (ORCPT ); Sat, 20 Feb 2021 07:13:05 -0500 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=bQI3Ccup6yTIKmHa56nvcajDRXzkAB6HThNzesI2iXU=; b=lB2ygTAnJokH5Xh2dCOi/z2iZo gJEn36BjiNPpV/WPhRsJ1hbLzvpOxpIgdFONvx94OiQG5YIh8DqilRSb/6q3f2OzzHcyOycYs8AXm W6OQIhbdXauznCSyDbuErPjDa6qK7iSxYdS3yTFhyu9OSKi3zQFE85Qc9FEG5lvUmFWw=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lDR7Q-0002Ad-Ue; Sat, 20 Feb 2021 12:12:16 +0000 Received: from [54.239.6.185] (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 1lDR7Q-0008An-I2; Sat, 20 Feb 2021 12:12:16 +0000 Subject: Re: [PATCH v3 3/8] xen/events: avoid handling the same event on two cpus at the same time To: Juergen Gross , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: Boris Ostrovsky , Stefano Stabellini , stable@vger.kernel.org References: <20210219154030.10892-1-jgross@suse.com> <20210219154030.10892-4-jgross@suse.com> From: Julien Grall Message-ID: <495a12e4-d54b-0841-07b2-5b0a0cea5d10@xen.org> Date: Sat, 20 Feb 2021 12:12:14 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210219154030.10892-4-jgross@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Juergen, On 19/02/2021 15:40, Juergen Gross wrote: > When changing the cpu affinity of an event it can happen today that > (with some unlucky timing) the same event will be handled on the old > and the new cpu at the same time. > > Avoid that by adding an "event active" flag to the per-event data and > call the handler only if this flag isn't set. > > Cc: stable@vger.kernel.org > Reported-by: Julien Grall > Signed-off-by: Juergen Gross Reviewed-by: Julien Grall Cheers, -- Julien Grall