git: kernel - Refactor suword, fuword, etc. change vmm_guest_sync_addr()

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jan 26 11:39:14 PST 2017


commit 5947157eb0effa08048af245e271b7441b862ce3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Jan 26 11:35:47 2017 -0800

    kernel - Refactor suword, fuword, etc.  change vmm_guest_sync_addr()
    
    * Rename the entire family of functions to reduce confusion.
    
    * Change how vmm_guest_sync_addr() works.  Instead of loading one value
      into a target location we exchange the two target locations, with the
      first address using an atomic op.  This will allow the vkernel to
      drop privs and query pte state atomically.

Summary of changes:
 sys/bus/cam/scsi/scsi_target.c      | 16 +++----
 sys/kern/imgact_elf.c               |  2 +-
 sys/kern/init_main.c                |  9 ++--
 sys/kern/kern_exec.c                | 24 ++++++-----
 sys/kern/subr_prof.c                |  8 +---
 sys/kern/sys_vmm.c                  | 15 +++++--
 sys/net/sppp/if_spppsubr.c          |  2 +-
 sys/platform/pc64/include/pmap.h    | 11 ++---
 sys/platform/pc64/vmm/ept.c         | 31 ++++++++-----
 sys/platform/pc64/x86_64/pmap.c     | 16 ++++---
 sys/platform/pc64/x86_64/support.s  | 86 +++++++++++++++++++++++++++----------
 sys/platform/pc64/x86_64/uwrapper.c | 22 ++++++----
 sys/sys/imgact_elf.h                |  2 +-
 sys/sys/systm.h                     | 18 ++++----
 sys/vm/swap_pager.c                 |  2 +-
 sys/vm/vm_fault.c                   | 64 ++++++++++++++++-----------
 16 files changed, 206 insertions(+), 122 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5947157eb0effa08048af245e271b7441b862ce3


-- 
DragonFly BSD source repository


More information about the Commits mailing list