git: nvmm: Create comm page in nvmm_vcpu_create() rather than via mmap()

Aaron LI aly at crater.dragonflybsd.org
Tue Jul 20 16:30:30 PDT 2021


commit 9aa070ef83dc4a7f702fac98a66ea80e7f4fefb8
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jul 3 22:59:38 2021 +0800

    nvmm: Create comm page in nvmm_vcpu_create() rather than via mmap()
    
    Create the VCPU comm page in nvmm_vcpu_create() in kernel, rather than
    via mmap() in userland.  With this change, the 'mmap' operation support
    is no longer needed by the '/dev/nvmm' device.
    
    This change breaks ABI, so bump NVMM_KERN_VERSION accordingly.
    
    No API change.

Summary of changes:
 lib/libnvmm/libnvmm.c             | 16 +++---------
 sys/dev/virtual/nvmm/nvmm.c       | 54 ++++++++++-----------------------------
 sys/dev/virtual/nvmm/nvmm.h       | 17 ++----------
 sys/dev/virtual/nvmm/nvmm_ioctl.h |  3 ++-
 4 files changed, 21 insertions(+), 69 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9aa070ef83dc4a7f702fac98a66ea80e7f4fefb8


-- 
DragonFly BSD source repository



More information about the Commits mailing list