Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752550AbbG3NCl (ORCPT ); Thu, 30 Jul 2015 09:02:41 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:33004 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752242AbbG3NCk (ORCPT ); Thu, 30 Jul 2015 09:02:40 -0400 Date: Thu, 30 Jul 2015 14:02:35 +0100 From: Matt Fleming To: Dave Young Cc: Sebastian Andrzej Siewior , josh@joshtriplett.org, Matt Fleming , x86@kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/mm, efi: Check for valid image type Message-ID: <20150730130235.GF2725@codeblueprint.co.uk> References: <1437579164-20176-1-git-send-email-bigeasy@linutronix.de> <20150728205157.GD2773@codeblueprint.co.uk> <20150729001034.GD8671@cloud> <55B88F3B.2000902@linutronix.de> <20150729093752.GF31695@dhcp-128-89.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150729093752.GF31695@dhcp-128-89.nay.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 845 Lines: 22 On Wed, 29 Jul, at 05:37:52PM, Dave Young wrote: > > Not sure if BGRT is useful in kexec kernel, it seems not worth to copy > it between kernels. > > IMO just return in case if (efi_setup) is true make sense. Yes, I think it makes sense to skip touching the BGRT on kexec boot. As a side note, we should really look at using one of the efi_enabled() bits to signal when we're booting a kexec'd kernel because it is not at all obvious that 'efi_setup != 0' means we're in kexec kernel. But that wants to be a separate patch from this issue. -- Matt Fleming, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/