From: PUCCETTI Armand <armand.puccetti@cea.fr>
To: Keir Fraser <keir@xensource.com>
Cc: "Petersson, Mats" <Mats.Petersson@amd.com>,
xen-devel@lists.xensource.com
Subject: Re: More page-table questions.
Date: Mon, 12 Mar 2007 18:27:25 +0100 [thread overview]
Message-ID: <45F58D7D.6090703@cea.fr> (raw)
In-Reply-To: <C21B3115.B46B%keir@xensource.com>
Keir Fraser a écrit :
> On 12/3/07 16:26, "Petersson, Mats" <Mats.Petersson@amd.com> wrote:
>
>
>> Are the page-tables ever updated directly by the guest, or is it all
>> done via hyper-calls?
>>
>
> Leaf PTEs (i.e., really just PTEs, not PDEs) can be directly written from
> the point-of-view of the guest. In fact they are trapped and emulated by
> Xen. The guest is somewhat aware of this because it has explicitly
> write-protected all its pagetables, so if it were to attempt the direct
> write on native hardware in these circumstances it would receive a page
> fault.
>
> -- Keir
>
>
>
This is unclear to me: "a guest believes he can write PTEs" means that
his source code to access the page tables is left unchanged between
legacy and PV version?
Merely, the hypervisor traps the guest's accesses to the page tables, to
control
what he is doing (e.g. not overlapping any other domain's pages) and
allowing or denying
any writes. This should apply to any page table level, so why only
blocking writes to PTEs?
This is for 4K pages, but how are 2M pages mixed? or do we assume that
every domain pages
are 4K?
Armand
next prev parent reply other threads:[~2007-03-12 17:27 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1HQkNQ-0002f5-Pl@host-192-168-0-1-bcn-london>
2007-03-12 16:10 ` Xen-devel Digest, Vol 25, Issue 93 PUCCETTI Armand
2007-03-12 16:19 ` Petersson, Mats
2007-03-12 16:23 ` Keir Fraser
2007-03-12 16:26 ` More page-table questions Petersson, Mats
2007-03-12 16:32 ` Keir Fraser
2007-03-12 16:35 ` Petersson, Mats
2007-03-12 16:38 ` Keir Fraser
2007-03-15 22:15 ` Questions about device/event channels in Xen Liang Yang
2007-03-16 0:34 ` Mark Williamson
2007-03-16 6:02 ` Liang Yang
2007-03-16 6:02 ` Liang Yang
2007-03-16 8:45 ` Keir Fraser
2007-03-16 17:30 ` Does Dom0 always get interrupts first before they are delivered to other guest domains? Liang Yang
2007-03-16 17:40 ` Petersson, Mats
2007-03-16 18:48 ` Liang Yang
2007-03-21 0:37 ` Mark Williamson
2007-03-21 1:23 ` Liang Yang
2007-03-21 1:23 ` Liang Yang
2007-03-21 8:31 ` Does Dom0 always get interrupts first before they aredelivered " Tian, Kevin
2007-03-21 9:13 ` Does Dom0 always get interrupts first before they are delivered " Petersson, Mats
2007-04-07 16:59 ` Mark Williamson
2007-04-12 0:20 ` Does Dom0 always get interrupts first before theyare " Liang Yang
2007-04-12 14:00 ` Petersson, Mats
2007-04-12 20:15 ` Does Dom0 always get interrupts first beforetheyare " Liang Yang
2007-03-19 16:33 ` Does Xen also plan to move the back-end driver to the stub domain for HVM? Liang Yang
2007-03-19 16:45 ` Petersson, Mats
2007-03-19 18:20 ` Anthony Liguori
2007-03-19 19:21 ` Liang Yang
2007-03-19 20:20 ` Anthony Liguori
2007-03-19 21:56 ` Question about reserving one CPU for the Xen hypervisor in case of vm exit Liang Yang
2007-03-20 10:13 ` Petersson, Mats
2007-03-20 10:03 ` Re: Does Xen also plan to move the back-end driver to the stub domain for HVM? Petersson, Mats
2007-03-16 3:17 ` Questions about device/event channels in Xen Daniel Stodden
2007-03-16 8:38 ` Petersson, Mats
2007-03-12 17:27 ` PUCCETTI Armand [this message]
2007-03-12 17:42 ` More page-table questions Petersson, Mats
2007-03-13 16:25 ` Mark Williamson
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=45F58D7D.6090703@cea.fr \
--to=armand.puccetti@cea.fr \
--cc=Mats.Petersson@amd.com \
--cc=keir@xensource.com \
--cc=xen-devel@lists.xensource.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.