From: John Levon <levon@movementarian.org>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: weiming <zephyr.zhao@gmail.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: a quick question about _PAGE_GLOBAL flag in para virt mode
Date: Sun, 15 Feb 2009 18:06:32 -0500 [thread overview]
Message-ID: <20090215230632.GA20434@movementarian.org> (raw)
In-Reply-To: <49989685.6020004@goop.org>
On Sun, Feb 15, 2009 at 02:26:13PM -0800, Jeremy Fitzhardinge wrote:
> >why not set global bit for user kernel pages? I guess this is because
> >when domain switchs, all tlb entries will still be flushed, so it's
> >not necessary for user kernel pages. Is my understanding right?
>
> 64-bit Xen uses paging to protect the guest kernel from guest usermode,
> and protect Xen from the guest kernel, and as a result has to do a cr3
> reload for any user->kernel switch (which is why it has to go via Xen).
> We don't want kernel mappings to be visible to usermode, so they have to
> only be in tlb while we're actually running in guest kernel mode;
And here's a real example of what happens when you don't get this right:
http://blogs.sun.com/levon/entry/xen_compatibility_with_solaris
regards
john
next prev parent reply other threads:[~2009-02-15 23:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-15 1:40 a quick question about _PAGE_GLOBAL flag in para virt mode weiming
2009-02-15 9:37 ` Jeremy Fitzhardinge
2009-02-15 17:30 ` weiming
2009-02-15 22:26 ` Jeremy Fitzhardinge
2009-02-15 23:06 ` John Levon [this message]
2009-02-16 0:47 ` weiming
2009-02-16 2:35 ` How to disconnect a network card in the Virtual machine? ANNIE LI
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=20090215230632.GA20434@movementarian.org \
--to=levon@movementarian.org \
--cc=jeremy@goop.org \
--cc=xen-devel@lists.xensource.com \
--cc=zephyr.zhao@gmail.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.