Change the lower bound for guest vmspace allocation to 0 instead of
using the VM_MIN_ADDRESS constant.

HardenedBSD redefines VM_MIN_ADDRESS to be 64K, which results in
bhyve VM startup failing. Guest memory is always assumed to start
at 0 so use the absolute value instead.

Reported by:	Shawn Webb, lattera at gmail com
Reviewed by:	neel, grehan
Obtained from:	Oliver Pinter via HardenedBSD
https://github.com/HardenedBSD/hardenedBSD/commit/23bd719ce1e3a8cc42fc8317b1c7c6d9e74dcba0
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274931 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Workaround help2man defficiency that prevents mandoc from rendering


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274932 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Ta is only allowed with Bl -column not in Bl -item


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274933 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix rendering with mandoc


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274934 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix rendering with mandoc


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274935 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix the negation (!) operator so that it binds only to the word that
immediately follows it, which means 'not' has to be reset every time an
option word or device name is processed.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add ARMV6 as an arm option.  This will cause obscure magic in config(8)
to automatically set the armv6 option when MACHINE_ARCH is armv6.  That
allows replacing ever-growing lists of cpu names as options to compile
a given file with the using either "optional armv6" or "optional !armv6".


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274937 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix rendering with mandoc


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Read cs_outstanding_ctl_pdus before incrementing it for NEXUS RESET task.

This removes extra log noise on idle connection termination.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274940 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The arm PJ4B cpu is armv7 architecture, not v6.

If this feels like deja vu... the last time this was fixed in this file
only ARM_MMU_V6 was fixed, this time it's ARM_ARCH_V6 (and this time I
searched for other occurrances of pj4b in here).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274941 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
We already have "int i" in this scope.

Submitted by:	alc


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274948 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix rendering of manpages with mandoc(1)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove the pidfile clause from the ctl.conf example.  Why do everyone
just copy/paste this line into their configs, it's beyond me.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274954 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Limit descriptors and enter capability mode.

Differential:	D1009
Reviewed by:	jonathan, pjd
MFC after:	2 weeks
Relnotes:	yes


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace home-grown CTL IO allocator with UMA.

Old allocator created significant lock congestion protecting its lists
of preallocated I/Os, while UMA provides much better SMP scalability.
The downside of UMA is lack of reliable preallocation, that could guarantee
successful allocation in non-sleepable environments.  But careful code
review shown, that only CAM target frontend really has that requirement.
Fix that making that frontend preallocate and statically bind CTL I/O for
every ATIO/INOT it preallocates any way.  That allows to avoid allocations
in hot I/O path.  Other frontends either may sleep in allocation context
or can properly handle allocation errors.

On 40-core server with 6 ZVOL-backed LUNs and 7 iSCSI client connections
this change increases peak performance from ~700K to >1M IOPS!  Yay! :)

MFC after:	1 month
Sponsored by:	iXsystems, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add ip_gre.h to ObsoleteFiles.inc.

Sponsored by:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make it possible to specify flags for autofs daemons in rc.conf.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a sysctl `net.link.tap.deladdrs_on_close' to configure whether tap
should delete configured addresses and routes when the interface is
closed.  Default is enabled (preserve current behaviour).

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add busdma sync ops before reading and after modifying the descriptor rings.

This was previously working by accident because BUSDMA_COHERENT_MEMORY has
always been set to strongly-ordered on arm.  Now we're moving towards
normal-uncacheable (what might be called write-combining on other platforms)
and using the proper sync ops will be more important.  Of course, that
opens the question of just what is the "proper" sync op for shared
concurrent dma access as opposed to accesses where the handoff of control
of the memory has well-defined sequence points that match the available
busdma sync operations.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Properly initialize the capability rights for vnodes exported to procstat
that aren't for file descriptors (cwd, jdir, tracevp, etc.).

Submitted by:	Mikhail <mp@lenta.ru>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@274970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f