Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp270117pxf; Tue, 6 Apr 2021 21:58:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrmcaA7Pe4uX8iMoAssa3whvmzXfFw3D4NAjOHfK1sswQeH3XSMXxD5iTqDo39RAeT7D8l X-Received: by 2002:a5e:c00a:: with SMTP id u10mr1076592iol.165.1617771523098; Tue, 06 Apr 2021 21:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617771523; cv=none; d=google.com; s=arc-20160816; b=gWzyTHtT8GxkWfzBRKmuhlYOmIbJSQfPut8LHEsMZjrHppquFFapsFXtHf0I93A3Gp sn/Y5p+Ko8YqyMc9dC9r3Adf6SOqbfNmv8qyuv6jevx8ta+tRK7W+LAHdz5SpsdQrFj0 cc81XLH6S9tVCFs269CjWaOu/tBdiJ19Yr5/vueNIlZZIBTTdl9L4xRXDgBlZPey/GvK BO/IQ5ZfrNLX0QwT89b/T494Qhn/I0CRfKaLcMewRWQmoWHgqULKn+zRWLXRbz1WpkPv LJE2sCYwZ+klnGxVxKuB0KsbC1i7ZFEeMH7bucWhgGQEbmFfufgb0hdyqw9VLIavAqdZ qjGQ== 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=hL/DNXPgONRhYcLJof2CA1fzKZNQ0/R+MlOogkZCxL0=; b=yVvBuE+hhqPM0TZtRlZxATRug4sowto/jfjeOOjEpsvNdfisE6emVdC7oRsXdsGZnC 3evTFcIhjg8SBbMT0GO3tCEn6IXD8xSHuZWIsfb136oLDXaT3h3zakzM+pS0tGDX48VV S9o7EmIGiVKNtohNnZaOU/NwIN/IofmdviPVVhlMnUdsTGnY54CEZz/a9X7HDF8+/+En 4IenXW5M3xmtYUUqOckqPU6iwRjG8IWYVVM14/EO2cCs5PkC57Vt3R0nkFUYDqwGCP50 KiI+wM7c209xGWOXL9pSbhlV3zcCu/dD0wc1MH7gfkyz9Mi4Ij6NOa5UPRJhkN9HuxzK wIZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen.org header.s=20200302mail header.b=EvBKmne0; 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 v19si20016364iom.33.2021.04.06.21.58.30; Tue, 06 Apr 2021 21:58:43 -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=@xen.org header.s=20200302mail header.b=EvBKmne0; 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 S239794AbhDFOR4 (ORCPT + 99 others); Tue, 6 Apr 2021 10:17:56 -0400 Received: from mail.xenproject.org ([104.130.215.37]:51362 "EHLO mail.xenproject.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232541AbhDFORx (ORCPT ); Tue, 6 Apr 2021 10:17:53 -0400 X-Greylist: delayed 1870 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Apr 2021 10:17:53 EDT 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=hL/DNXPgONRhYcLJof2CA1fzKZNQ0/R+MlOogkZCxL0=; b=EvBKmne0DBgjh15xBCHJLlyoSk duyPUpDgm7KnGPKqgTjZlC+cQzPAkPH8g1QNA4uOA+7IKkakATGmeDJ1s+PfoqVLvqTuS/bO0F3Gv HXcOPAGQgh2WxyxboCR0mmYB6WdY86xkucxL5+Q5UKz9IZZVS56gnBfTQJ2sNJ8hoAcw=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lTm2M-0007fy-Ed; Tue, 06 Apr 2021 13:46:34 +0000 Received: from 54-240-197-234.amazon.com ([54.240.197.234] 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 1lTm2M-0007os-6u; Tue, 06 Apr 2021 13:46:34 +0000 Subject: Re: [PATCH] xen/evtchn: Change irq_info lock to raw_spinlock_t To: Luca Fancellu , sstabellini@kernel.org, jgross@suse.com, jgrall@amazon.com Cc: boris.ostrovsky@oracle.com, tglx@linutronix.de, wei.liu@kernel.org, jbeulich@suse.com, yyankovskyi@gmail.com, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, bertrand.marquis@arm.com References: <20210406105105.10141-1-luca.fancellu@arm.com> From: Julien Grall Message-ID: <74349f41-ba4e-7486-5467-fb8fa3c96e50@xen.org> Date: Tue, 6 Apr 2021 14:46:31 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210406105105.10141-1-luca.fancellu@arm.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 Luca, On 06/04/2021 11:51, Luca Fancellu wrote: > Unmask operation must be called with interrupt disabled, > on preempt_rt spin_lock_irqsave/spin_unlock_irqrestore > don't disable/enable interrupts, so use raw_* implementation > and change lock variable in struct irq_info from spinlock_t > to raw_spinlock_t > > Cc: stable@vger.kernel.org > Fixes: 25da4618af24 ("xen/events: don't unmask an event channel > when an eoi is pending") > > Signed-off-by: Luca Fancellu Reviewed-by: Julien Grall Cheers, -- Julien Grall