All of lore.kernel.org
 help / color / mirror / Atom feed
* Full Shadow Mode and phys_to_machine_mapping
@ 2005-02-21 21:29 Michael Vrable
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Vrable @ 2005-02-21 21:29 UTC (permalink / raw)
  To: xen-devel

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?  I haven't
been able to find where in the code the PFN-to-MFN table is ever
initialized, either.  What am I missing?

--Michael Vrable


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: Full Shadow Mode and phys_to_machine_mapping
@ 2005-02-21 21:53 Ian Pratt
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Pratt @ 2005-02-21 21:53 UTC (permalink / raw)
  To: Michael Vrable, xen-devel; +Cc: ian.pratt


> 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.

Translate mode is currently being back-ported to para-virt guests too,
mostly to enable some definitive performance measurements.
 
> 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.  

It should be set to point at the 4MB area previously used by the guests
read-only mapping of the machine to phys table. If it's not (can't
remember) it needs moving.

> Isn't this area already used for per-domain
> GDT/LDT mappings, leaving no room for the PFN-to-MFN table?  I haven't
> been able to find where in the code the PFN-to-MFN table is ever
> initialized, either.  What am I missing?

It's stored in a format that looks like pte's so that it can also be
used as a VM-x guest's 1:1 pagetable when paging is disabled (e.g. boot
time). The table is potentially sparse, allow e.g. BIOS pages at the top
of physcial memory.

We're hoping to write this stuff up for a paper -- stay tuned.

Ian


-------------------------------------------------------
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_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.1109021409.2134@unix-os.sc.intel.com>]

end of thread, other threads:[~2005-02-23 23:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-21 21:29 Full Shadow Mode and phys_to_machine_mapping Michael Vrable
  -- strict thread matches above, loose matches on Subject: below --
2005-02-21 21:53 Ian Pratt
     [not found] <mailman.1109021409.2134@unix-os.sc.intel.com>
2005-02-23 23:22 ` Arun Sharma

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.