WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Full Shadow Mode and phys_to_machine_mapping

To: Michael Vrable <mvrable@xxxxxxxxxxx>
Subject: Re: [Xen-devel] Full Shadow Mode and phys_to_machine_mapping
From: Arun Sharma <arun.sharma@xxxxxxxxx>
Date: Wed, 23 Feb 2005 15:22:54 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 Feb 2005 23:24:20 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <mailman.1109021409.2134@xxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <mailman.1109021409.2134@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>