From: Arun Sharma <arun.sharma@intel.com>
To: Michael Vrable <mvrable@cs.ucsd.edu>
Cc: xen-devel@lists.sourceforge.net
Subject: Re: Full Shadow Mode and phys_to_machine_mapping
Date: Wed, 23 Feb 2005 15:22:54 -0800 [thread overview]
Message-ID: <421D104E.30007@intel.com> (raw)
In-Reply-To: <mailman.1109021409.2134@unix-os.sc.intel.com>
On 2/21/2005 1:29 PM, Michael Vrable wrote:
> I'm trying to figure out how full shadow mode is implemented; I
> understand that this only works with VMX support at the moment. The
> phys_to_machine_mapping function is giving me a bit of trouble.
>
> This function seems to be used to look up an entry in the PFN-to-MFN
> mapping table, which as I understand it for full shadow mode should be
> maintained by Xen instead of the domain. This table can be up to 4 MB
> in size. __phys_to_machine_mapping is set to point at the per-domain
> virtual memory area. Isn't this area already used for per-domain
> GDT/LDT mappings, leaving no room for the PFN-to-MFN table?
For VMX guests, even though the guest thinks that it's executing in physical mode, the processor actually has paging enabled. So we need page tables which map PFNs to MFNs. We call this the 1:1 page table.
Ian suggested that we could reuse the 1:1 page table for this purpose. This reduces code/data duplication and we also get the support for a sparse physical map as a bonus!
> I haven't
> been able to find where in the code the PFN-to-MFN table is ever
> initialized, either. What am I missing?
The 1:1 page table is initialized in xc_vmx_build.c and the pdes for PFN-to-MFN table are setup in alloc_monitor_pagetable()
-Arun
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
next parent reply other threads:[~2005-02-23 23:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1109021409.2134@unix-os.sc.intel.com>
2005-02-23 23:22 ` Arun Sharma [this message]
2005-02-21 21:53 Full Shadow Mode and phys_to_machine_mapping Ian Pratt
-- strict thread matches above, loose matches on Subject: below --
2005-02-21 21:29 Michael Vrable
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=421D104E.30007@intel.com \
--to=arun.sharma@intel.com \
--cc=mvrable@cs.ucsd.edu \
--cc=xen-devel@lists.sourceforge.net \
/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.