nvmm: Create comm page in nvmm_vcpu_create() rather than via mmap()
authorAaron LI <aly@aaronly.me>
Sat, 3 Jul 2021 14:59:38 +0000 (22:59 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 20 Jul 2021 23:28:26 +0000 (07:28 +0800)
commit9aa070ef83dc4a7f702fac98a66ea80e7f4fefb8
tree3d8ea7fa0a74612f015cd460160270b48b75fa52
parentddb95be16a84b930e22002e1ffea3cad1ddd5049
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.
lib/libnvmm/libnvmm.c
sys/dev/virtual/nvmm/nvmm.c
sys/dev/virtual/nvmm/nvmm.h
sys/dev/virtual/nvmm/nvmm_ioctl.h