head	1.2;
access;
symbols
	netbsd-11-0-RC4:1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.28
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.26
	perseant-exfatfs-base:1.2
	netbsd-9-4-RELEASE:1.1.8.1
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	thorpej-ifq:1.2.0.24
	thorpej-ifq-base:1.2
	thorpej-altq-separation:1.2.0.22
	thorpej-altq-separation-base:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.20
	netbsd-10-base:1.2
	bouyer-sunxi-drm:1.2.0.18
	bouyer-sunxi-drm-base:1.2
	netbsd-9-3-RELEASE:1.1.8.1
	thorpej-i2c-spi-conf2:1.2.0.16
	thorpej-i2c-spi-conf2-base:1.2
	thorpej-futex2:1.2.0.14
	thorpej-futex2-base:1.2
	thorpej-cfargs2:1.2.0.12
	thorpej-cfargs2-base:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.10
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.1.8.1
	cjep_staticlib_x:1.2.0.8
	cjep_staticlib_x-base:1.2
	thorpej-i2c-spi-conf:1.2.0.6
	thorpej-i2c-spi-conf-base:1.2
	thorpej-cfargs:1.2.0.4
	thorpej-cfargs-base:1.2
	thorpej-futex:1.2.0.2
	thorpej-futex-base:1.2
	netbsd-9-1-RELEASE:1.1.8.1
	bouyer-xenpvh-base2:1.1
	phil-wifi-20200421:1.1
	bouyer-xenpvh-base1:1.1
	phil-wifi-20200411:1.1
	bouyer-xenpvh:1.1.0.14
	bouyer-xenpvh-base:1.1
	is-mlppp:1.1.0.12
	is-mlppp-base:1.1
	phil-wifi-20200406:1.1
	ad-namecache-base3:1.1
	netbsd-9-0-RELEASE:1.1
	netbsd-9-0-RC2:1.1
	ad-namecache-base2:1.1
	ad-namecache-base1:1.1
	ad-namecache:1.1.0.10
	ad-namecache-base:1.1
	netbsd-9-0-RC1:1.1
	phil-wifi-20191119:1.1
	netbsd-9:1.1.0.8
	netbsd-9-base:1.1
	phil-wifi:1.1.0.6
	phil-wifi-20190609:1.1
	isaki-audio2:1.1.0.4
	isaki-audio2-base:1.1
	pgoyette-compat-merge-20190127:1.1.2.2
	pgoyette-compat-20190127:1.1
	pgoyette-compat-20190118:1.1
	pgoyette-compat-1226:1.1
	pgoyette-compat:1.1.0.2
	pgoyette-compat-1126:1.1;
locks; strict;
comment	@# @;


1.2
date	2020.06.25.17.01.20;	author maxv;	state Exp;
branches;
next	1.1;
commitid	St9dp0fxG4zfZCdC;

1.1
date	2018.11.07.07.43.08;	author maxv;	state Exp;
branches
	1.1.2.1
	1.1.6.1
	1.1.8.1;
next	;
commitid	wcR77DxkGB823ZYA;

1.1.2.1
date	2018.11.07.07.43.08;	author pgoyette;	state dead;
branches;
next	1.1.2.2;
commitid	Zj4q5SspGdKXto1B;

1.1.2.2
date	2018.11.26.01.52.50;	author pgoyette;	state Exp;
branches;
next	;
commitid	Zj4q5SspGdKXto1B;

1.1.6.1
date	2018.11.07.07.43.08;	author christos;	state dead;
branches;
next	1.1.6.2;
commitid	jtc8rnCzWiEEHGqB;

1.1.6.2
date	2019.06.10.22.09.35;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.1.8.1
date	2020.08.02.08.49.08;	author martin;	state Exp;
branches;
next	;
commitid	tQyxsBJMbXRF2tiC;


desc
@@


1.2
log
@Register NVMM as an actual pseudo-device. Without PMF handler, to
explicitly disallow ACPI suspend if NVMM is running.

Should fix PR/55406.
@
text
@#	$NetBSD: nvmm.ioconf,v 1.1 2018/11/07 07:43:08 maxv Exp $

ioconf		nvmm

include		"conf/files"
include		"dev/nvmm/files.nvmm"

pseudo-device   nvmm
@


1.1
log
@Add NVMM - for NetBSD Virtual Machine Monitor -, a kernel driver that
provides support for hardware-accelerated virtualization on NetBSD.

It is made of an MI frontend, to which MD backends can be plugged. One
MD backend is implemented, x86-SVM, for x86 AMD CPUs.

We install

	/usr/include/dev/nvmm/nvmm.h
	/usr/include/dev/nvmm/nvmm_ioctl.h
	/usr/include/dev/nvmm/{arch}/nvmm_{arch}.h

And the kernel module. For now, the only architecture where we do that
is amd64 (arch=x86).

NVMM is not enabled by default in amd64-GENERIC, but is instead easily
modloadable.

Sent to tech-kern@@ a month ago. Validated with kASan, and optimized
with tprof.
@
text
@d1 1
a1 1
#	$NetBSD: nvmm.ioconf,v 1.1 2018/11/05 00:00:00 maxv Exp $
d6 1
@


1.1.8.1
log
@Pull up following revision(s) (requested by maxv in ticket #1032):

	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.60 (patch)
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.61 (patch)
	sys/dev/nvmm/nvmm.c: revision 1.30
	sys/dev/nvmm/nvmm.c: revision 1.31
	sys/dev/nvmm/nvmm.c: revision 1.32
	sys/dev/nvmm/nvmm_internal.h: revision 1.15
	sys/dev/nvmm/nvmm_internal.h: revision 1.16
	sys/dev/nvmm/files.nvmm: revision 1.3
	sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.62 (patch)
	sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.63 (patch)
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.59 (patch)
	sys/modules/nvmm/nvmm.ioconf: revision 1.2

Gather the conditions to return from the VCPU loops in nvmm_return_needed(),
and use it in nvmm_do_vcpu_run() as well. This fixes two undesired behaviors:

 - When a VM initializes, the many nested page faults that need processing
   could cause the calling thread to occupy the CPU too much if we're unlucky
   and are only getting repeated nested page faults thousands of times in a
   row.

 - When the emulator calls nvmm_vcpu_run() and immediately sends a signal to
   stop the VCPU, it's better to check signals earlier and leave right away,
   rather than doing a round of VCPU run that could increase the time spent
   by the emulator waiting for the return.

style

Register NVMM as an actual pseudo-device. Without PMF handler, to
explicitly disallow ACPI suspend if NVMM is running.

Should fix PR/55406.

Print the backend name when attaching.
@
text
@d1 1
a1 1
#	$NetBSD: nvmm.ioconf,v 1.1 2018/11/07 07:43:08 maxv Exp $
a5 1
include		"dev/nvmm/files.nvmm"
@


1.1.6.1
log
@file nvmm.ioconf was added on branch phil-wifi on 2019-06-10 22:09:35 +0000
@
text
@d1 7
@


1.1.6.2
log
@Sync with HEAD
@
text
@a0 7
#	$NetBSD: nvmm.ioconf,v 1.1 2018/11/07 07:43:08 maxv Exp $

ioconf		nvmm

include		"conf/files"

pseudo-device   nvmm
@


1.1.2.1
log
@file nvmm.ioconf was added on branch pgoyette-compat on 2018-11-26 01:52:50 +0000
@
text
@d1 7
@


1.1.2.2
log
@Sync with HEAD, resolve a couple of conflicts
@
text
@a0 7
#	$NetBSD: nvmm.ioconf,v 1.1 2018/11/07 07:43:08 maxv Exp $

ioconf		nvmm

include		"conf/files"

pseudo-device   nvmm
@


