mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Jiri Olsa <jolsa@redhat.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 08:46:41 -0800	[thread overview]
Message-ID: <m14o8a34em.fsf@fess.ebiederm.org> (raw)
In-Reply-To: <1297432830-3912-1-git-send-email-jolsa@redhat.com> (Jiri Olsa's message of "Fri, 11 Feb 2011 15:00:30 +0100")

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?

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.

Eric

  reply	other threads:[~2011-02-11 16:46 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 [this message]
2011-02-11 17:07   ` Jiri Olsa
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=m14o8a34em.fsf@fess.ebiederm.org \
    --to=ebiederm@xmission.com \
    --cc=jolsa@redhat.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®