Fix some lingering build failures caused by fixing implicit inclusion of
if_var.h. Also explicitly include lock.h and mutex.h in if_kr.c rather than
depending on if_var.h to bring them in.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257420 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Provide a crutch that prevents watchdog to interrupt dumping
on a box with IPMI enabled.

Okay from:	jhb
Sponsored by:	Netflix
Sponsored by:	Nginx, Inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257421 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Rename the VMM_CTRx() family of macros to VCPU_CTRx() to highlight that these
tracepoints are vcpu-specific.

Add support for tracepoints that are global to the virtual machine - these
tracepoints are called VM_CTRx().


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257422 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make the virtual ioapic available unconditionally in a bhyve virtual machine.

This is in preparation for moving the ioapic device model from userspace to
vmm.ko.

Reviewed by:	grehan


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The limit for the swap space is spelled 'swapsize', at least since
tcsh 6.17.00 import.

Submitted by:	Stefan Neudorf
PR:	bin/183480
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The limit for the swap space is spelled 'swapsize', at least since
tcsh 6.17.00 import.

Submitted by:	Stefan Neudorf
PR:	bin/183480
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix long line and record proper commit message for r257427:
Add the '-k' option for getopt() call and usage.

Submitted by:	Stefan Neudorf
PR:	bin/183494
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix some types. Compilation for external target complains that "u_int"
is not idential to "uint32_t" when defining set channel prototype
functions. The WLAN channel range should be from 0 to 65535
inclusivly, and u_int should be fine for this purpose.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove the dependency on procfs.  Use sysctl KERN_PROC_PATHNAME and
KERN_PROC_PID to obtain the parent process pathname and command, used
to determine the calling shell.

Submitted by:	Stefan Neudorf
PR:	bin/183484
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a potential memory leak.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make lpathconf(2) support optional to make it compile again on Linux.

Submitted by:	Hashem Nasarat @riseup.net


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Adjust the manpage category for the pkg bootstrap


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
After around 20 years of duty it is time for pkg_install to retire


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow the Arduino Leonardo to work by supporting CDC=0 devices.

CDC=0 simply means "no command codes", CDC=1 means "AT command codes."
There's no driver change required!  It's purely to tell the application
layer whether to speak AT commands or not.  Things are all still serial.

PR:		usb/183505
Reviewed by:	hps
MFC after:	1 week


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