Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2009 23:31:20 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h vm.h src/sys/arm/include pmap.h vm.h src/sys/i386/i386 pmap.c src/sys/i386/include pmap.h vm.h src/sys/i386/xen pmap.c src/sys/ia64/include pmap.h vm.h src/sys/kern kern_mbuf.c ...
Message-ID:  <200907122332.n6CNW9uJ077675@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
alc         2009-07-12 23:31:20 UTC

  FreeBSD src repository

  Modified files:
    sys/amd64/amd64      pmap.c 
    sys/amd64/include    pmap.h vm.h 
    sys/arm/include      pmap.h vm.h 
    sys/i386/i386        pmap.c 
    sys/i386/include     pmap.h vm.h 
    sys/i386/xen         pmap.c 
    sys/ia64/include     pmap.h vm.h 
    sys/kern             kern_mbuf.c 
    sys/mips/include     pmap.h vm.h 
    sys/powerpc/include  pmap.h vm.h 
    sys/sparc64/include  pmap.h vm.h 
    sys/sun4v/include    pmap.h vm.h 
    sys/vm               device_pager.c pmap.h vm.h vm_contig.c 
                         vm_extern.h vm_object.c vm_object.h 
                         vm_page.c vm_phys.c vm_phys.h 
  Log:
  SVN rev 195649 on 2009-07-12 23:31:20Z by alc
  
  Add support to the virtual memory system for configuring machine-
  dependent memory attributes:
  
  Rename vm_cache_mode_t to vm_memattr_t.  The new name reflects the
  fact that there are machine-dependent memory attributes that have
  nothing to do with controlling the cache's behavior.
  
  Introduce vm_object_set_memattr() for setting the default memory
  attributes that will be given to an object's pages.
  
  Introduce and use pmap_page_{get,set}_memattr() for getting and
  setting a page's machine-dependent memory attributes.  Add full
  support for these functions on amd64 and i386 and stubs for them on
  the other architectures.  The function pmap_page_set_memattr() is also
  responsible for any other machine-dependent aspects of changing a
  page's memory attributes, such as flushing the cache or updating the
  direct map.  The uses include kmem_alloc_contig(), vm_page_alloc(),
  and the device pager:
  
    kmem_alloc_contig() can now be used to allocate kernel memory with
    non-default memory attributes on amd64 and i386.
  
    vm_page_alloc() and the device pager will set the memory attributes
    for the real or fictitious page according to the object's default
    memory attributes.
  
  Update the various pmap functions on amd64 and i386 that map pages to
  incorporate each page's memory attributes in the mapping.
  
  Notes: (1) Inherent to this design are safety features that prevent
  the specification of inconsistent memory attributes by different
  mappings on amd64 and i386.  In addition, the device pager provides a
  warning when a device driver creates a fictitious page with memory
  attributes that are inconsistent with the real page that the
  fictitious page is an alias for. (2) Storing the machine-dependent
  memory attributes for amd64 and i386 as a dedicated "int" in "struct
  md_page" represents a compromise between space efficiency and the ease
  of MFCing these changes to RELENG_7.
  
  In collaboration with: jhb
  
  Approved by:    re (kib)
  
  Revision  Changes    Path
  1.663     +37 -8     src/sys/amd64/amd64/pmap.c
  1.152     +3 -0      src/sys/amd64/include/pmap.h
  1.3       +8 -8      src/sys/amd64/include/vm.h
  1.33      +3 -0      src/sys/arm/include/pmap.h
  1.3       +2 -2      src/sys/arm/include/vm.h
  1.640     +49 -16    src/sys/i386/i386/pmap.c
  1.139     +3 -0      src/sys/i386/include/pmap.h
  1.3       +8 -8      src/sys/i386/include/vm.h
  1.14      +2 -1      src/sys/i386/xen/pmap.c
  1.29      +2 -0      src/sys/ia64/include/pmap.h
  1.3       +7 -7      src/sys/ia64/include/vm.h
  1.49      +1 -1      src/sys/kern/kern_mbuf.c
  1.8       +2 -0      src/sys/mips/include/pmap.h
  1.3       +4 -4      src/sys/mips/include/vm.h
  1.26      +4 -0      src/sys/powerpc/include/pmap.h
  1.3       +6 -4      src/sys/powerpc/include/vm.h
  1.49      +3 -0      src/sys/sparc64/include/pmap.h
  1.3       +2 -2      src/sys/sparc64/include/vm.h
  1.9       +2 -0      src/sys/sun4v/include/pmap.h
  1.3       +2 -2      src/sys/sun4v/include/vm.h
  1.90      +43 -26    src/sys/vm/device_pager.c
  1.86      +7 -1      src/sys/vm/pmap.h
  1.31      +3 -3      src/sys/vm/vm.h
  1.73      +8 -6      src/sys/vm/vm_contig.c
  1.86      +1 -1      src/sys/vm/vm_extern.h
  1.407     +31 -0     src/sys/vm/vm_object.c
  1.120     +2 -0      src/sys/vm/vm_object.h
  1.379     +25 -4     src/sys/vm/vm_page.c
  1.13      +4 -1      src/sys/vm/vm_phys.c
  1.6       +1 -1      src/sys/vm/vm_phys.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907122332.n6CNW9uJ077675>