git: kernel -- CLFLUSH support

Venkatesh Srinivas vsrinivas at crater.dragonflybsd.org
Wed May 23 19:23:20 PDT 2012


commit 087717516887f81d5df331b8118745d0abd26161
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date:   Wed May 23 19:15:25 2012 -0700

    kernel -- CLFLUSH support
    
    * Introduce a kernel variable, 'vmm_guest', signifying whether the
      kernel is running in a virtual environment, such as KVM. This is
      set based on the CPUID2.VMM flag on kernels and set automatically
      on virtual kernels.
    
    * Introduce wrappers for CLFLUSH instructions.
    
    * Provide tunable, hw.clflush_enable, to autoenable CLFLUSH on h/w (-1)
      disable always (0), or enable always (1).
    
    Closes-bug: 2363
    Reviewed-by: ftigeot@
    From: David Shao, FreeBSD

Summary of changes:
 sys/cpu/i386/include/cpufunc.h         |    6 ++++++
 sys/cpu/x86_64/include/cpufunc.h       |    6 ++++++
 sys/kern/subr_param.c                  |    1 +
 sys/platform/pc32/i386/initcpu.c       |   26 +++++++++++++++++++++++++-
 sys/platform/pc32/i386/machdep.c       |    2 +-
 sys/platform/pc32/include/md_var.h     |    1 +
 sys/platform/pc64/include/md_var.h     |    1 +
 sys/platform/pc64/x86_64/initcpu.c     |   23 +++++++++++++++++++++++
 sys/platform/pc64/x86_64/machdep.c     |    2 +-
 sys/platform/vkernel/platform/init.c   |    2 ++
 sys/platform/vkernel64/platform/init.c |    2 ++
 sys/sys/kernel.h                       |    1 +
 12 files changed, 70 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/087717516887f81d5df331b8118745d0abd26161


-- 
DragonFly BSD source repository





More information about the Commits mailing list