From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932502AbaFIOc7 (ORCPT ); Mon, 9 Jun 2014 10:32:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36920 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbaFIOc5 (ORCPT ); Mon, 9 Jun 2014 10:32:57 -0400 Date: Mon, 9 Jun 2014 10:32:53 -0400 From: Vivek Goyal To: Matt Fleming Cc: "H. Peter Anvin" , LKML , linux-efi@vger.kernel.org, Matt Fleming , Dave Young Subject: Re: [PATCH] x86/boot: EFI_MIXED should not prohibit loading above 4G Message-ID: <20140609143253.GB22049@redhat.com> References: <1402140380-15377-1-git-send-email-matt@console-pimps.org> <20140609125427.GA16256@redhat.com> <20140609141512.GA22049@redhat.com> <20140609142559.GE27302@console-pimps.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140609142559.GE27302@console-pimps.org> 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 On Mon, Jun 09, 2014 at 03:25:59PM +0100, Matt Fleming wrote: > On Mon, 09 Jun, at 10:15:12AM, Vivek Goyal wrote: > > > > Ok, thanks. Or I can check whether EFI run time map is there or not. I am > > assuming that efi runtime services are not enabled, then run time map > > will not be there either. > > Yes, if runtime services are unavailable then the runtime map will not > be exported. > > Now, you can check for the presence of the runtime map from userland but > please don't use that as your check inside the kernel - this is exactly > what efi_enabled() is for. Ok, I will use efi_enabled() instead. Thanks Vivek