git: nvmm: Adjust EPT/NPT transform code for NetBSD
Aaron LI
aly at crater.dragonflybsd.org
Tue Jul 20 16:30:34 PDT 2021
commit 3f1b1a2b1ab407afd22c9efb41fd2ce2d7852575
Author: Aaron LI <aly at aaronly.me>
Date: Sun Jul 11 22:47:23 2021 +0800
nvmm: Adjust EPT/NPT transform code for NetBSD
* Rename variable 'pmap_ept_has_ad' to 'vmx_ept_has_ad' to avoid
conflict with the global variable in NetBSD.
* Set 'pmap_ept_has_ad' global for NetBSD in vmx_ident().
* Add macro os_vmspace_pmap() to 'nvmm_os.h'.
* Add ifdef's in vmx_machine_create() and svm_machine_create() to
properly handle EPT/NPT pmap transform on both DragonFly and NetBSD.
Summary of changes:
sys/dev/virtual/nvmm/nvmm_os.h | 3 +++
sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 11 +++++------
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 24 +++++++++++++-----------
3 files changed, 21 insertions(+), 17 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3f1b1a2b1ab407afd22c9efb41fd2ce2d7852575
--
DragonFly BSD source repository
More information about the Commits
mailing list