lkml.org 
[lkml]   [2006]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH 08/35] Add Xen-specific memory management definitions
    * Pete Zaitcev (zaitcev@redhat.com) wrote:
    > On Tue, 09 May 2006 00:00:08 -0700, Chris Wright <chrisw@sous-sol.org> 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.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-05-18 09:42    [W:4.147 / U:0.232 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site