From: Jiri Olsa <jolsa@redhat.com>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: tglx@linutronix.de, mingo@redhat.com, x86@kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86_64: disable identity mappings statically
Date: Fri, 11 Feb 2011 18:07:22 +0100 [thread overview]
Message-ID: <20110211170722.GA2010@jolsa.brq.redhat.com> (raw)
In-Reply-To: <m14o8a34em.fsf@fess.ebiederm.org>
On Fri, Feb 11, 2011 at 08:46:41AM -0800, Eric W. Biederman wrote:
> Jiri Olsa <jolsa@redhat.com> writes:
>
> > hi,
> >
> > while browsing the page table setup code, I noticed the x86_64 head
> > code might not need the identity mappings at all.
> > It seems it's ok to switch it off completely from the begining,
> > unless I'm missing something.
>
> Have you tested it?
yes, I booted it with no problem
>
> I expect you will find that we need the identity mapping because
> before we load this page table we are running with virt==phys
> and we need the identity mapping retained in the new page table
> so we can get to the instruction after movq %rax, %cr0.
well, right after the page table setup, there's following code
switching to the kernel map adresses 0xffffffff80000000+
movq %rax, %cr3
/* Ensure I am executing from virtual addresses */
movq $1f, %rax
jmp *%rax
1:
and I found no other identity mapping usage after this point
jirka
next prev parent reply other threads:[~2011-02-11 17:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-11 14:00 Jiri Olsa
2011-02-11 16:46 ` Eric W. Biederman
2011-02-11 17:07 ` Jiri Olsa [this message]
2011-02-11 17:35 ` Cyrill Gorcunov
2011-02-11 17:59 ` Brian Gerst
2011-02-11 19:13 ` Jiri Olsa
2011-02-11 20:19 ` Brian Gerst
2011-02-11 20:40 ` Jiri Olsa
2011-02-11 21:59 ` Brian Gerst
2011-02-12 8:57 ` Jiri Olsa
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=20110211170722.GA2010@jolsa.brq.redhat.com \
--to=jolsa@redhat.com \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®