commit ec2ba06409873bb923872be7ec143cd627de1698 Author: Aaron LI <a...@aaronly.me> Date: Sat Jul 3 23:10:56 2021 +0800
Revert "libnvmm: Fix mmap() failure with 'permission denied'" Because libnvmm no longer calls mmap() to map the VCPU comm page, revert to the original code to distinguish root owner (open '/dev/nvmm' with O_WRONLY) vs. non-root owner (open with O_RDONLY). Summary of changes: lib/libnvmm/libnvmm.c | 20 ++++++++++++++++---- sys/dev/virtual/nvmm/nvmm.c | 5 ++--- 2 files changed, 18 insertions(+), 7 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ec2ba06409873bb923872be7ec143cd627de1698 -- DragonFly BSD source repository