Support soft power-off via the ACPI S5 state for bhyve guests.
- Implement the PM1_EVT and PM1_CTL registers required by ACPI.
  The PM1_EVT register is mostly a dummy as bhyve doesn't support any
  of the hardware-initiated events.  The only bit of PM1_CNT that is
  implemented are the sleep request bits (SPL_EN and SLP_TYP) which
  request a graceful power off for S5.  In particular, for S5, bhyve
  exits with a non-zero value which terminates the loop in vmrun.sh.
- Emulate the Reset Control register at I/O port 0xcf9 and advertise
  it as the reset register via ACPI.
- Advertise an _S5 package.
- Extend the in/out interface to allow an in/out handler to request
  that the hypervisor trigger a reset or power-off.
- While here, note that all vCPUs in a guest support C1 ("hlt").

Reviewed by:	neel (earlier version)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259826 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unused static const variable num_chip_names from aic79xx.c.

Reviewed by:	gibbs
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a bug introduced at r259632, triggering infinite loop in some cases.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix copy-pasting of CJK fullwidth characters.

They are stored as two separate characters in the vtbuf, so copy-pasting
will cause them to be passed to terminal_input_char() twice. Extend
terminal_input_char() to explicitly discard characters with TF_CJK_RIGHT
set. This causes only the left part to generate input.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259830 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove another unused static const variable num_chip_names, from
aic7xxx.c this time.

Noticed by:	pluknet
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259833 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add another HP iLO serial (console) port, found on Itanium servers.

Derived from information provided by: felip.nadal@hob.de


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259838 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In sys/netinet/in_mcast.c, inm_is_ifp_detached() is only used whenever
KTR is defined, so put it between #ifdef KTR guards.  This avoids a
warning about a unused function if KTR is not enabled.

MFC after:	 3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259839 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In sys/netinet6/in6_mcast.c, in6m_is_ifp_detached() is only used
whenever KTR is defined, so put it between #ifdef KTR guards.  This
avoids a warning about a unused function if KTR is not enabled.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259840 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
gcc:  Add ability to generate DWARF pubtypes section if
DEBUG_PUBTYPES_SECTION is defined.

Obtained from:	gcc 4.3 (rev. 118826; GPLv2)

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259841 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove some unused static const strings under sys/rpc, which have never
been used since the initial commit (r177633).

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259842 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Move a static const variable to the #if 0 part where it is only used.
(Note the #if 0 part has been inactive since the initial commit,
r177633, so maybe it should be removed altogether).

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259843 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Remove an unused variable.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259844 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
An intermittent problem with NFSv4 exporting of ZFS snapshots was
reported to the freebsd-fs mailing list. I believe the problem was
caused by the Readdir operation using VFS_VGET() for a snapshot file entry
instead of VOP_LOOKUP(). This would not occur for NFSv3, since it
will do a VFS_VGET() of "." which fails with ENOTSUPP at the beginning
of the directory, whereas NFSv4 does not check "." or "..". This
patch adds a call to VFS_VGET() for the directory being read to check
for ENOTSUPP.
I also observed that the mount_on_fileid and fsid attributes were
not correct at the snapshot's auto mountpoints when looking at packet
traces for the Readdir. This patch fixes the attributes by doing a check
for different v_mount structure, even if the vnode v_mountedhere is not
set.

Reported by:	jas@cse.yorku.ca
Tested by:	jas@cse.yorku.ca
Reviewed by:	asomers
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259845 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Initialize OPTIND=1 even if it came from the environment.


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

2583 Add -p (parsable) option to zfs list

illumos/illumos-gate@43d68d68c1ce08fb35026bebfb141af422e7082e

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259850 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The NFSv4 server would call VOP_SETATTR() with a shared locked vnode
when a Getattr for a file is done by a client other than the one that
holds the file's delegation. This would only happen when delegations
are enabled and the problem is fixed by this patch.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259854 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
We have in base iconv.

PR:		185135
Submitted by:	Lars Engels <lars 0x20.net>


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259856 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove from kernel the "dll" code.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259857 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Kill space at eols.


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