From: tgh <tianguanhua@ncic.ac.cn>
To: "Petersson, Mats" <Mats.Petersson@amd.com>
Cc: xen-devel@lists.xensource.com, MT Rezaie <mmrezaie@gmail.com>
Subject: Re: page table question!
Date: Thu, 14 Jun 2007 16:44:55 +0800 [thread overview]
Message-ID: <46710007.3030200@ncic.ac.cn> (raw)
In-Reply-To: <907625E08839C4409CE5768403633E0B02561E10@sefsexmb1.amd.com>
hi
I try to read the paging part code of xen-3.1.0, and I am confused about
the " compat_machine_to_phys_mapping" ,what does xen do with the
"CONFIG_COMPAT",and what are the differences between the
"machine_to_phys_mapping" and the "compat_machine_to_phys_mapping"?
Could you help me
Thanks in advance
Petersson, Mats 写道:
>
>
>
>> -----Original Message-----
>> From: xen-devel-bounces@lists.xensource.com
>> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of MT Rezaie
>> Sent: 13 June 2007 15:55
>> To: xen-devel@lists.xensource.com
>> Subject: [Xen-devel] page table question!
>>
>> I want to know any difference between writing, reading and shadow page
>> table (for example performance).
>>
>
> Not sure exactly what you're asking for: are you asking about "writable"
> and "non-writable" page-table vs. shadow-page-table?
>
> I believe "writable" page-table means that the guest is able to write
> DIRECTLY to the lower level(s) of the page-table, and as such, we
> "trust" the guest to do this correctly (and not map in stuff that
> doesn't belong to the guest). I believe this mode isn't normally used by
> Xen guests. This mode relies on the guest to correctly translate the
> guest-physical address to a machine physical address.
>
> Non-writable page-tables are mapped "read-only" throughout the entire
> page-table, and when a write occurs, the page-table is updated via the
> emulation of the instruction in the hypervisor. The hypervisor can check
> that the machine physical address is correct for the particular guest.
>
> As of currently, Shadow-mode is only used for HVM (fully virtualized)
> domains. In this case, the guest has a "dummy" page-table that is not
> used by the processor for any memory accesses, instead a "shadow" (copy)
> of the guest's page-table is used. The shadow page-table is used by the
> processor. To make updates to the page-table appear in the
> shadow-page-table, the hypervisor is making sure that the
> guest-page-table is read-only, and when the guest writes to the
> page-table, we reproduce the write [with modification to reflect the
> difference between guest physical and machine physical address].
>
> --
> Mats
>
>
>> I am thankful for any help or resource for that.
>>
>> --
>> Best Regards
>> Mohamad Taghi Mir Mohamad Rezaie
>>
>> Iran University of Science and Technology
>> Department of Computer Science & Engineering
>> System Software Group
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>>
>>
>>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
> .
>
>
next prev parent reply other threads:[~2007-06-14 8:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-13 14:55 page table question! MT Rezaie
2007-06-13 15:15 ` Petersson, Mats
2007-06-13 16:05 ` Mark Williamson
2007-06-13 16:22 ` Petersson, Mats
2007-06-13 16:35 ` Mark Williamson
2007-06-14 4:35 ` Jun Koi
2007-06-14 4:54 ` pradeep singh rautela
2007-06-14 8:27 ` Tim Deegan
2007-12-08 14:26 ` tgh
2007-12-08 14:36 ` Mark Williamson
2007-12-08 14:50 ` Daniel Stodden
2007-12-16 3:07 ` tgh
2007-12-16 11:55 ` Tim Deegan
2007-06-14 8:44 ` tgh [this message]
2007-06-14 9:51 ` Mark Williamson
2007-06-16 10:36 ` MT Rezaie
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=46710007.3030200@ncic.ac.cn \
--to=tianguanhua@ncic.ac.cn \
--cc=Mats.Petersson@amd.com \
--cc=mmrezaie@gmail.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.