MFC r271876:
  When populating the dvd/packages/ directory, create
  a symlink to All/pkg-*.txz in the Latest/ directory.

  This allows 'pkg bootstrap' to work out-of-box if
  the REPOS_DIR environment is properly set.

Approved by:	re (delphij)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271943 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFH (r271624): Upgrade to OpenPAM Ourouparia.

Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 271381-271382,271385,271463-271466,271485,271506

o Add sysctls to enable/disable potentially dengerous key combinations, like
        reboot/halt/debug.
o Add support for most key combinations supported by syscons(4).
o Some spelling fixes
o Remove stray whitespaces.
o Switch vt(4) to traditional behaviour with copy-paste same as syscons(4) do.
o Fix stray char on paste.
o Fix 'function declaration isn't a prototype' warning.
o vt(4): Enclose vt_mouse_paste() prototype inside #ifndef SC_NO_CUTPASTE/#endif

Approved by:	re (gjb)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271952 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271450:
cxgbe(4): knobs to enable/disable PAUSE frame based flow control.

Approved by:	re (glebius)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271961 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271459:

Fix ACL tests to correctly work with ZFS; previous version used wrong
paths.

PR:		191545
Approved by:	re (gjb)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271711:
  Update the bhyve(8) manual to reflect that it is no
  longer considered 'experimental.'

Approved by:	re (delphij)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 271482: Add support for adding empty partition entries.

Relnotes:	yes
Approved by:	re@ (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271679:

  Merge atse(4) interrupt handling and race condition fixes from
  cheribsd.

  Obtained from:	cheribsd
  Submitted by:		rwatson, emaste
Sponsored by:		DARPA/AFRL
Approved by:		re (delphij)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
vt(4): Merge several bug fixes and improvements

SVN revisions in this MFC:
  271756 271758 271868 271871 271872 271899

Detailed commit list:

r271756:
  vt(4): Fix out-of-bounds array access in VT_ACTIVATE ioctl handling

  CID:		1229964

r271758
  vt(4): Use strncpy() to copy into a fixed-size buffer

  CID:		1230007

r271868:
  vt(4): Remove vt_buf->vb_dirtymask

  This structure and the associated functions were unused since the
  implementation of vd_bitblt_text_t callbacks.

r271871:
  vt(4): Rewrite history scrolling

  It's now possible to scroll up the 500 hard-coded lines of history, not
  just a fraction of them. For instance, one can reach the top of the boot
  process.

  Sometimes, when scrolling or when changing the screen size (by changing
  the font or loading a KMS driver for instance), one could see the
  history cycling (old content appeared below latest lines). This is
  fixed.

  Now, when the resolution changes are more lines can be shown, the
  displayed area is adjusted so that, if the screen was filled with
  content before, it's filled with content after as well: more history
  is visible, instead of having blank lines below the previously visible
  content.

r271872:
  vt(4): Remove superfluous word in comment

  Submitted by:	brueffer@

r271899:
  Make gcc happy by initialising the variable only set in a couple of
  case statements without a default.

Approved by:	re (marius)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271973 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271726
remove clean option from Makefile

Approved by: re(gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271988 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271762: Switch to text mode in UEFI boot

    The loader previously failed to display on MacBooks and other
    systems where the UEFI firmware remained in graphics mode.

    Submitted by:       Rafael Espindola

Approved by:	re


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271996 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Spelling, grammar and punctuation fixes.

Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271997 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make sure all memory updates are made visible before we let go
of the thread in cpu_switch(). It's otherwise possible that on
another CPU the thread continues from stale context data.

Note that this is prominent on newer CPUs, like the Montecito,
that really take advantage of the weak memory ordering. First
generation Itanium 2 is not that aggressive and does not need
this.

This is a direct commit to stable/10.

Approved by:	re@ (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271998 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 270850,271053,271192,271717:
Save and restore FPU state across suspend and resume on i386.
- Create a separate structure for per-CPU state saved across suspend and
  resume that is a superset of a pcb.
- Store the FPU state for suspend and resume in the new structure
  (for amd64, this moves it out of the PCB)
- On both i386 and amd64, all of the FPU suspend/resume handling is now
  done in C.

Approved by:	re (hrs)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@271999 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271727
remove clean option from Makefile

Approved by:	re(gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272001 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271728
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before printing error message.

Approved by:	re(gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272004 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r271664:
  Cache GELI passphrases entered at the console during the boot process,
  in order to improve user-friendliness when a system has multiple disks
  encrypted using the same passphrase.

Relnotes:	yes
Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272006 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271470, addition of BIOS- and UEFI-capable CDROM images.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272008 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r271816, drm/i915 HW context support.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/10@272009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add sponsor attribution for r271470

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation


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