Commit Graph

196 Commits

Author SHA1 Message Date
maxv f3a4baf748 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.
2018-11-07 07:43:07 +00:00
maxv 8f30df5465 Add tprof in MAKEDEV.tmpl, and regen MAKEDEV.8. 2018-11-04 12:48:01 +00:00
maxv ebec90347e Remove ISDN from the kernel. It has remained unmaintained for a long time,
is of poor quality, and is now an obstacle to MP-ification. It was removed
ten years ago from FreeBSD for the same reason.

This retires a big user of the mbuf API, and will ease maintenance of the
kernel.
2018-09-23 09:20:57 +00:00
kre f8f3c1e1aa Avoid use of test -o for when this is used as part of an INSTALL system
and the SMALL test does not support -o
2018-09-22 13:48:22 +00:00
sevan e01538f90d Create fw(4) & fwmem(4) device nodes by default so fwctl(8) works out of the
box.
2018-07-28 14:13:13 +00:00
maxv b6a911a673 Create /dev/ksyms as "440 $g_kmem". This prevents unprivileged users from
reading the kernel symbols. Discussed in January 2018 on tech-kern@,
reported by maya@, tested by tih@.
2018-07-21 07:46:56 +00:00
thorpej 266bca89c9 Add a 1PPS-over-GPIO driver, originally by Brad Spencer, with changes by
me to adapt to the new GPIO interrupt interface and support a wider variety
of GPIO pin configuations.

PR kern/51676
2018-05-20 14:08:32 +00:00
christos b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
jmcneill 2dbf225c9a make a few more drm nodes 2017-12-05 19:17:11 +00:00
jmcneill fb651b612c Add driver for QEMU Firmware Configuration device.
This interface allows the host to pass various data items and files to
the guest OS.
2017-11-25 16:31:03 +00:00
sevan eb0a13ec2a veriexec is enabled by default in most kernel configs but the lack of device
node results in a non working config, despite following manual to get setup.
Remove a step for the user by creating a device node for veriexec by default.


ok mrg jakllsch
2017-08-28 01:34:52 +00:00
jmcneill 40fab7550d add dial-out device node for plcom 2017-08-12 11:41:21 +00:00
kre b5294c7318 As (briefly) discussed on current-users, change the way that MAKEDEV checks
for more than one of the  -m -p -s -t args (and checks whether any were given
to pick one if not) to be more shell friendly.

Note that while the method here is the same as was discussed on the list,
the actual implementation is free of the typos, and just pure lunacy that
was in the code that was shown there.

Also note these changes are intended to be completely internal, there
should be no visible impact upon the way that MAKEDEV works.

ok:christos.   Thanks to pgoyette for the code review.
2017-06-08 03:42:37 +00:00
nonaka 4a15838ffa Fix to cannnot be opened a nvme(4) namespace device file. 2016-09-08 15:00:08 +00:00
kre 04e8d55d65 Always define MKNOD, even if we don't think we need it (turns out we do,
sometimes...)   Noticed by Michael Plass reported on current-users.
2016-07-23 06:48:27 +00:00
kre 93bca39382 As discussed at the biginning of last week (June 6 & 7, 2016) on
tech-kern in messages with a Subject starting [Re:] /dev/sdN -> /dev/sdN[cd]
and in PR port-amd64/51216 :

Create bare (no letter suffix) device names (block & raw) that
refer to the raw device ('c' or 'd' partition as appropriate).

This commit was delayed waiting to see if there was to be any more
discussion - there wasn't a lot.

Caution: this is going to consume 2 more inodes per disc device
configured, everywhere that devices are configured using MAKEDEV
2016-06-16 15:33:38 +00:00
nonaka e7c0cc5d9a Add NVMe command passthrough support. 2016-06-04 16:11:50 +00:00
riz 4145877bea Create dtrace device as part of "all" 2016-01-28 19:06:39 +00:00
christos 9f840dd1f7 Add /dev/full 2016-01-17 23:18:18 +00:00
pgoyette b094e9b9cd Add the filemon(4) device. 2015-11-21 12:11:56 +00:00
joerg 7eb0a13dae Translate requests for ucom into ttyU. 2015-11-08 23:23:30 +00:00
macallan 97dca9d210 create tty* entries for wsdisplay1-3 2015-11-05 16:46:22 +00:00
jmcneill 57d12b8828 add hdmicec 2015-08-01 21:30:09 +00:00
matt 59f16e16f4 add random/urandom to MAKEDEV std 2014-09-19 09:00:23 +00:00
mbalmer 7f3fe544bc create a lua device node for lua(4) and luactl(8) 2013-10-28 18:33:20 +00:00
soren 57d8a38cf6 Some UMTS/LTE USB modems have as many as five tty instances and the
useful ones that understand AT commands tend to be enumerated last,
so bump up the default number of ttyU device nodes.
2013-08-03 16:07:35 +00:00
mbalmer 199f668519 Rename the 'gpio' group to '_gpio' as new group names should start with an
underscore.  While here, fix the awk script to properly expand such group
names.
2013-05-20 11:37:02 +00:00
mbalmer d84ba6e3bc Add a group 'gpio' and create gpio(4) device nodes under /dev with
mode 664 and group ownership set to 'gpio'.  This allows controlled access
to specifically enabled gpio pins to members of the gpio group.  See
gpioctl(8), and, gpio(4) for details.
2013-05-19 16:09:04 +00:00
kiyohara 4aba7d3a0d Support to build for epoc32 userland. 2013-05-01 13:11:59 +00:00
rkujawa cb2a012804 Add spiflash device to MAKEDEV template and MAKEDEV config on evbarm.
Obtained from Marvell, Semihalf.
2013-04-20 11:41:51 +00:00
martin e290c24aa3 Add a makedisk_p12high, used by VAX now after unbumping MAXPARTITIONS from
16 down to 12.
2013-04-11 19:13:46 +00:00
jmcneill 12a7d7c6ad create /dev/vchiq 2013-03-08 12:33:25 +00:00
christos 5e078c9e58 missing comment 2013-02-28 03:04:12 +00:00
christos ef9b0fbc8a node for dtrace 2013-02-28 02:00:27 +00:00
christos 84874dc42c always use ${MKNOD} for consistency 2013-02-10 14:54:33 +00:00
apb 162b6b9919 The console major number is not always 0; when creating a temporary
console while populating a memory disk, use %CONSOLE_CMAJOR% instead
of 0, and let MAKEDEV.awk substitute the appropriate machine-dependent
major number.

This fixes a bug that I introduced in revision 1.82 dated 2007-03-11.
2013-01-26 18:44:21 +00:00
skrll 5c014ba1cf Create a plcom0 device node for RaspberryPI 2013-01-10 13:38:37 +00:00
bouyer f2b31f39d0 Add a pass-through ioctl for mfi(4), allowing userland to send raw commands
to the controller. This is compatible with the linux and FreeBSD
implementations.
Add the needed conversion for mfi ioctls in COMPAT_LINUX
Allocate a character major number, and create /dev/mfi0 by default
on amd64 and i386.
This allows (along with a hand-created /emul/linux/proc/devices file)
to run the MegaCLI linux binary provided by LSI.
2012-09-19 21:24:28 +00:00
martin 647d3a97c1 Make the "init" target create optys as well - those were removed from "all",
but we still need them in emergency setups and some install media.
Should fix PR install/46902.
2012-09-05 08:25:53 +00:00
christos a0fa559338 Don't create BSD style pty nodes by default anymore since ptyfs is mounted
by default. Mention that this is a security issue, since it allows pty access
through the old style node.
2012-08-13 08:30:51 +00:00
tsutsui ac2c5cf13a Invoke MAKEDEV.local via $HOST_SH (default ${HOST_SH:=sh}) instead of
hardcoded "sh" to avoid unexpected errors on cross build hosts in
src/distrib/common/Makefile.makedev etc.

Should fix PR toolchain/46537, ok apb@
2012-06-05 13:20:01 +00:00
riz 3debe0af82 Create /dev/iscsi0 as part of 'all'. 2012-05-26 00:36:15 +00:00
christos 05e9a23818 give wedges to everyone 2012-04-07 17:22:10 +00:00
shattered 4e4e8d92ec Quoting sys/dev/vme/files.vme commit log: "vmegeneric never saw the
light of the source tree.  After 7 years, I guess nobody missed it."

OK by wiz@
2012-02-25 10:55:27 +00:00
tron 7b6c3db855 Four instances of atabus(4) are not enough for modern systems as the
system will report one instance for each SATA port. Create eight
device nodes by default.
2012-02-25 09:19:30 +00:00
nakayama 6d92376f3a Remove "spif[0-9]*" case from ports other than sparc{,64} by using
%stty_chr% and %sbpp_chr%.

Fix "MAKEDEV: bpp: unknown device" error on sparc{,64}, which is
observed in PR toolchain/45620 but not the fix.

Approved by releng.
2012-02-10 20:54:11 +00:00
christos 6fb39d18da add a tpm driver from bsssd.sourceforge.net 2012-01-22 06:44:28 +00:00
isaki 43fa5f922b Clean up pow(4) (which I had removed in Nov 2011). 2012-01-21 02:52:50 +00:00
agc a5b83a6434 grab major 203 for the iSCSI communications device (between kernel
driver and /sbin/iscsid)
2011-11-19 16:41:55 +00:00
apb bbc5f4100a The previous change made "nooutput -2" discard both stdout and
stderr, whereas it should discard only stderr.  This commit
should fix that problem.
2011-11-08 19:36:30 +00:00