git: nvmm: Port to DragonFly #16: contiguous memory allocation

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


commit d578f4fac6eac4b025ac7965add40b828c466b61
Author: Aaron LI <aly at aaronly.me>
Date:   Fri May 21 22:39:59 2021 +0800

    nvmm: Port to DragonFly #16: contiguous memory allocation
    
    svm_memalloc() and vmx_memalloc() need to allocate memory block that's
    both virtually contiguous and physically contiguous.  NetBSD achieves
    this requirement by first allocating a list of physically contiguous
    pages and a virtually contiguous memory address, and then mapping them
    page by page.
    
    We can just use contigmalloc(9) to achieve the same goal.

Summary of changes:
 sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 21 ++++++++++++++++++++-
 sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 21 ++++++++++++++++++++-
 2 files changed, 40 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d578f4fac6eac4b025ac7965add40b828c466b61


-- 
DragonFly BSD source repository


More information about the Commits mailing list