Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3284285imu; Mon, 28 Jan 2019 02:02:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN6XD3iN75U3Z7O37pIjZBqBHijHG25rSarfT+vkpY20dLksrpvlTj7G6gbfjVB00v88MCL4 X-Received: by 2002:a63:d10:: with SMTP id c16mr19356538pgl.382.1548669720665; Mon, 28 Jan 2019 02:02:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548669720; cv=none; d=google.com; s=arc-20160816; b=GvZobtpcNsjmIdyCch6Si8fje7kNa7BaMyYzlWgLD5SOSPRJd4J9b1XmF57t5A9fSM ClUxfrgOeUNdShliRbChKQl4mOI0UOMQYHph5Vn3u4wgHmrche+UsrkOde9Oyq+Lm9ay r8JwM/lJ51TNPIxlzxe+i7iKf+QUSz1tHFO8I4OvKB2ka7sCUxjoCMM1y3DbBSf8hi9L nJHLtjDyMiN4904lcapGm25BE+188eK6RBNvoGEIdeAkGfp4PUVUuBstQaFVIsZdRg8c JyuipduNGDffo7lK93udZBf6U/Kn1bCHhmcs/8bQ9P7Dklqi/vRkwQs0z4I7URtOeQHy sKsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=PjpFAehc3h9Bu3xkDX28tUfy2hT/3rWYwxApUfEzi9o=; b=dAcyr3mLtdwKO5JxhCACCleBbwPnPhiRcwE1ljH5BLHcN6HZwEbVP5JqJbjdUN1YTP bIuQF0tvMNLXqEARn+XNFR9IWH89EFPyWAgxJxjnAk8juP65KBsd5OKt6G/xviLPfiZ5 aVA1PWleEGRPGBG+sy2Po/tdSlkRhXX5o8NlxNYh9rqIMhphtjuUo738QCWp/JLWTRUv TJYeY06vZaVrUmhIE2zMp6Yc0NTdFS4rXVJZ8v0I8gQjvk1gzTxJOi51tZUHlkklEr5G fK54F/+BQDL/HrnZMX6xrWZeVc5KVtPk3Nu1KqRjXoVHEDio02BMBnmpgjxXyrmUFfpJ NtYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v16si7552660plo.182.2019.01.28.02.01.45; Mon, 28 Jan 2019 02:02:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726714AbfA1KA7 (ORCPT + 99 others); Mon, 28 Jan 2019 05:00:59 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:42584 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbfA1KA7 (ORCPT ); Mon, 28 Jan 2019 05:00:59 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E241BEBD; Mon, 28 Jan 2019 02:00:58 -0800 (PST) Received: from big-swifty.misterjones.org (big-swifty.cambridge.arm.com [10.1.39.122]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 02F883F589; Mon, 28 Jan 2019 02:00:55 -0800 (PST) Date: Mon, 28 Jan 2019 10:00:54 +0000 Message-ID: <868sz5w17t.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Julien Thierry Cc: , , , , , , , , , Ard Biesheuvel , Subject: Re: [PATCH v9 11/26] efi: Let architectures decide the flags that should be saved/restored In-Reply-To: <1548084825-8803-12-git-send-email-julien.thierry@arm.com> References: <1548084825-8803-1-git-send-email-julien.thierry@arm.com> <1548084825-8803-12-git-send-email-julien.thierry@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Jan 2019 15:33:30 +0000, Julien Thierry wrote: > > Currently, irqflags are saved before calling runtime services and > checked for mismatch on return. > > Provide a pair of overridable macros to save and restore (if needed) the > state that need to be preserved on return from a runtime service. > This allows to check for flags that are not necesarly related to > irqflags. > > Signed-off-by: Julien Thierry > Acked-by: Catalin Marinas > Cc: Ard Biesheuvel > Cc: linux-efi@vger.kernel.org With the changes requested by Ard, Acked-by: Marc Zyngier M. -- Jazz is not dead, it just smell funny.