Move NVMM in the "any" class, so that it can be enabled in GENERIC. Add

missing files in files.nvmm, and add NVMM (commented out) in the amd64
GENERIC. Remove the "caveats" section in the man page.
This commit is contained in:
maxv 2019-03-28 19:00:40 +00:00
parent d56a0bc274
commit 50c07460e3
4 changed files with 12 additions and 14 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: nvmm.4,v 1.3 2019/02/13 16:06:28 maxv Exp $ .\" $NetBSD: nvmm.4,v 1.4 2019/03/28 19:00:40 maxv Exp $
.\" .\"
.\" Copyright (c) 2018 The NetBSD Foundation, Inc. .\" Copyright (c) 2018 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE. .\" POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.Dd February 13, 2019 .Dd March 28, 2019
.Dt NVMM 4 .Dt NVMM 4
.Os .Os
.Sh NAME .Sh NAME
@ -60,9 +60,3 @@ The
.Nm .Nm
driver was written by driver was written by
.An Maxime Villard . .An Maxime Villard .
.Sh CAVEATS
Currently,
.Nm
cannot be enabled in a kernel configuration, and must rather be
.Xr modload 8 Ns ed
dynamically from the filesystem.

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.520 2019/03/01 12:25:09 nonaka Exp $ # $NetBSD: GENERIC,v 1.521 2019/03/28 19:00:40 maxv Exp $
# #
# GENERIC machine description file # GENERIC machine description file
# #
@ -22,7 +22,7 @@ include "arch/amd64/conf/std.amd64"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC-$Revision: 1.520 $" #ident "GENERIC-$Revision: 1.521 $"
maxusers 64 # estimated number of users maxusers 64 # estimated number of users
@ -1169,6 +1169,7 @@ pseudo-device ksyms # /dev/ksyms
pseudo-device lockstat # lock profiling pseudo-device lockstat # lock profiling
pseudo-device bcsp # BlueCore Serial Protocol pseudo-device bcsp # BlueCore Serial Protocol
pseudo-device btuart # Bluetooth HCI UART (H4) pseudo-device btuart # Bluetooth HCI UART (H4)
#pseudo-device nvmm # NetBSD Virtual Machine Monitor
# a pseudo device needed for Coda # also needs CODA (above) # a pseudo device needed for Coda # also needs CODA (above)
pseudo-device vcoda # coda minicache <-> venus comm. pseudo-device vcoda # coda minicache <-> venus comm.

View File

@ -1,11 +1,14 @@
# $NetBSD: files.nvmm,v 1.1 2018/11/07 07:43:08 maxv Exp $ # $NetBSD: files.nvmm,v 1.2 2019/03/28 19:00:40 maxv Exp $
defpseudo nvmm defpseudo nvmm
file dev/nvmm/nvmm.c nvmm file dev/nvmm/nvmm.c nvmm
ifdef amd64 ifdef amd64
file dev/nvmm/x86/nvmm_x86.c nvmm
file dev/nvmm/x86/nvmm_x86_svm.c nvmm file dev/nvmm/x86/nvmm_x86_svm.c nvmm
file dev/nvmm/x86/nvmm_x86_svmfunc.S nvmm file dev/nvmm/x86/nvmm_x86_svmfunc.S nvmm
file dev/nvmm/x86/nvmm_x86_vmx.c nvmm
file dev/nvmm/x86/nvmm_x86_vmxfunc.S nvmm
endif endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: nvmm.c,v 1.11 2019/03/21 20:21:40 maxv Exp $ */ /* $NetBSD: nvmm.c,v 1.12 2019/03/28 19:00:40 maxv Exp $ */
/* /*
* Copyright (c) 2018 The NetBSD Foundation, Inc. * Copyright (c) 2018 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.11 2019/03/21 20:21:40 maxv Exp $"); __KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.12 2019/03/28 19:00:40 maxv Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -933,7 +933,7 @@ nvmmattach(int nunits)
/* nothing */ /* nothing */
} }
MODULE(MODULE_CLASS_DRIVER, nvmm, NULL); MODULE(MODULE_CLASS_ANY, nvmm, NULL);
static int static int
nvmm_modcmd(modcmd_t cmd, void *arg) nvmm_modcmd(modcmd_t cmd, void *arg)