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

[Xen-devel] Re: [RFC PATCH 08/35] Add Xen-specific memory management def

* Pete Zaitcev (zaitcev@xxxxxxxxxx) wrote:
> On Tue, 09 May 2006 00:00:08 -0700, Chris Wright <chrisw@xxxxxxxxxxxx> wrote:
> 
> > +static inline unsigned long pfn_to_mfn(unsigned long pfn)
> > +{
> > +#ifndef CONFIG_XEN_SHADOW_MODE
> > +   if (xen_feature(XENFEAT_auto_translated_physmap))
> > +           return pfn;
> > +   return phys_to_machine_mapping[(unsigned int)(pfn)] &
> > +           ~FOREIGN_FRAME_BIT;
> > +#else
> > +   return pfn;
> > +#endif
> > +}
> 
> Why do we need several modes in Linux guests?

This patchset only supports shadow translated mode, so the extra CONFIG is
just an artifact of this simplied patchset.  Ultimately, this is not the
preferred mode (performance wise), but shadow mode is simpler to port to.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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