kernel - Refactor suword, fuword, etc. change vmm_guest_sync_addr()
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 26 Jan 2017 19:35:47 +0000 (11:35 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 26 Jan 2017 19:35:47 +0000 (11:35 -0800)
commit5947157eb0effa08048af245e271b7441b862ce3
treed2c93db4f464997c3e0bacce2f6765684eb82c07
parent8178c126aafa027ea046f22faf5d4505c3ac9745
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.
16 files changed:
sys/bus/cam/scsi/scsi_target.c
sys/kern/imgact_elf.c
sys/kern/init_main.c
sys/kern/kern_exec.c
sys/kern/subr_prof.c
sys/kern/sys_vmm.c
sys/net/sppp/if_spppsubr.c
sys/platform/pc64/include/pmap.h
sys/platform/pc64/vmm/ept.c
sys/platform/pc64/x86_64/pmap.c
sys/platform/pc64/x86_64/support.s
sys/platform/pc64/x86_64/uwrapper.c
sys/sys/imgact_elf.h
sys/sys/systm.h
sys/vm/swap_pager.c
sys/vm/vm_fault.c