From: Catalin Marinas Subject: Re: [PATCH v3 01/20] arm64: explicitly mask all exceptions Date: Wed, 18 Oct 2017 15:23:16 +0100 Message-ID: <20171018142315.vt44zeuke5po3tf7@armageddon.cambridge.arm.com> References: <20171005191812.5678-1-james.morse@arm.com> <20171005191812.5678-2-james.morse@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 25B3F40D25 for ; Wed, 18 Oct 2017 10:22:25 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e93IZ0uF7M6D for ; Wed, 18 Oct 2017 10:22:20 -0400 (EDT) Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by mm01.cs.columbia.edu (Postfix) with ESMTP id DFA1140795 for ; Wed, 18 Oct 2017 10:22:19 -0400 (EDT) Content-Disposition: inline In-Reply-To: <20171005191812.5678-2-james.morse@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: James Morse Cc: Jonathan.Zhang@cavium.com, Marc Zyngier , Will Deacon , kvmarm@lists.cs.columbia.edu, wangxiongfeng2@huawei.com, linux-arm-kernel@lists.infradead.org List-Id: kvmarm@lists.cs.columbia.edu On Thu, Oct 05, 2017 at 08:17:53PM +0100, James Morse wrote: > diff --git a/arch/arm64/include/asm/daifflags.h b/arch/arm64/include/asm/daifflags.h > new file mode 100644 > index 000000000000..fb40da8e1457 > --- /dev/null > +++ b/arch/arm64/include/asm/daifflags.h > @@ -0,0 +1,59 @@ > +/* > + * Copyright (C) 2017 ARM Ltd. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program. If not, see . > + */ > +#ifndef __ASM_DAIFFLAGS_H > +#define __ASM_DAIFFLAGS_H > + > +#include > +#include Nitpick: linux/irqflags.h already includes asm/irqflags.h. We currently have local_dbg_save in asm/irqflags.h. Shall we keep all of them in the same file (either asm/irqflags.h or the new asm/daifflags.h; slight preference for irqflags.h unless you are worried about drivers abusing these). -- Catalin