All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Fleming <matt@console-pimps.org>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-efi@vger.kernel.org, Matt Fleming <matt.fleming@intel.com>,
	Dave Young <dyoung@redhat.com>
Subject: Re: [PATCH] x86/boot: EFI_MIXED should not prohibit loading above 4G
Date: Mon, 9 Jun 2014 15:25:59 +0100	[thread overview]
Message-ID: <20140609142559.GE27302@console-pimps.org> (raw)
In-Reply-To: <20140609141512.GA22049@redhat.com>

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.

-- 
Matt Fleming, Intel Open Source Technology Center

WARNING: multiple messages have this Message-ID (diff)
From: Matt Fleming <matt-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
To: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: "H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>,
	LKML <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Matt Fleming
	<matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] x86/boot: EFI_MIXED should not prohibit loading above 4G
Date: Mon, 9 Jun 2014 15:25:59 +0100	[thread overview]
Message-ID: <20140609142559.GE27302@console-pimps.org> (raw)
In-Reply-To: <20140609141512.GA22049-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

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.

-- 
Matt Fleming, Intel Open Source Technology Center

  reply	other threads:[~2014-06-09 14:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1402140380-15377-1-git-send-email-matt@console-pimps.org>
2014-06-07 16:33 ` [tip:x86/urgent] x86/boot: EFI_MIXED should not prohibit loading above 4G tip-bot for Matt Fleming
2014-06-09 12:54 ` [PATCH] " Vivek Goyal
2014-06-09 12:54   ` Vivek Goyal
2014-06-09 13:18   ` Matt Fleming
2014-06-09 14:15     ` Vivek Goyal
2014-06-09 14:15       ` Vivek Goyal
2014-06-09 14:25       ` Matt Fleming [this message]
2014-06-09 14:25         ` Matt Fleming
2014-06-09 14:32         ` Vivek Goyal
2014-06-09 14:32           ` Vivek Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140609142559.GE27302@console-pimps.org \
    --to=matt@console-pimps.org \
    --cc=dyoung@redhat.com \
    --cc=hpa@zytor.com \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matt.fleming@intel.com \
    --cc=vgoyal@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.