Import nvmm(4) from NetBSD 9-stable

Operating Systems / DragonFlyBSD - Aaron LI [aaronly.me] - 20 July 2021 23:28 UTC

This is the kernel driver that provides support for hardware-accelerated
virtualization. It is made of an MI frontend with the following two MD backends:- x86 Intel VMX- x86 AMD SVM

Branch: NetBSD 9-stable Date: Fri Apr 30 14:08:16 2021 +0000 Path: sys/dev/nvmm

6d65b43de2 Import nvmm(4) from NetBSD 9-stable
sys/dev/virtual/nvmm/Makefile | 13 +
sys/dev/virtual/nvmm/files.nvmm | 14 +
sys/dev/virtual/nvmm/nvmm.c | 1308 ++++++++++
sys/dev/virtual/nvmm/nvmm.h | 104 +
sys/dev/virtual/nvmm/nvmm_internal.h | 145 ++
sys/dev/virtual/nvmm/nvmm_ioctl.h | 158 ++
sys/dev/virtual/nvmm/x86/Makefile | 7 +
sys/dev/virtual/nvmm/x86/nvmm_x86.c | 455 ++++
sys/dev/virtual/nvmm/x86/nvmm_x86.h | 330 +++
sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 2622 ++++++++++++++++++++
sys/dev/virtual/nvmm/x86/nvmm_x86_svmfunc.S | 200 ++
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 3555 +++++++++++++++++++++++++++
sys/dev/virtual/nvmm/x86/nvmm_x86_vmxfunc.S | 260 ++
13 files changed, 9171 insertions(+)

Upstream: gitweb.dragonflybsd.org


  • Share