MFC r250152:
The check to ensure that xstate_bv always has XFEATURE_ENABLED_X87 and
XFEATURE_ENABLED_SSE bits set is not needed.  CPU correctly handles
any bitmask which is subset of the enabled bits in %XCR0.

More, CPU instructions XSAVE and XSAVEOPT could write the mask without
e.g. XFEATURE_ENABLED_SSE, after the VZEROALL.  The check prevents the
restoration of the otherwise valid FPU save area.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250358 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250153:
Partially saved extended state must be handled always, i.e. for both
fpu-owned context, and for pcb-saved one.  More, the XSAVE could do
partial save, same as XSAVEOPT, so qualifier for the handler should be
use_xsave and not use_xsaveopt.

Since xsave_area_desc is now needed regardless of the XSAVEOPT use,
remove the write-only use_xsaveopt variable.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250359 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249664

Expose CAM_BOOT_DELAY as a kernel conf item now.

This allows users who boot without loader to adjust their environments
around slightly buggy or slow hardware.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250366 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249815

Return a lun count of 1 and a lun id of 0 when CAM attempts a REPORT_LUNS
command on a disk device.  This quieseces some noise on the console that
recently appeared.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250367 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249070

Update man page for igb(4) with a little bit of information about
hw.igb.num_queues for those so inclined.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250371

s/Numer/Number/


git-svn-id: svn://svn.freebsd.org/base/stable/9@250372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 233569

Fix crash on VirtualBox (and probably on some real hardware):

- Do not cover error returned by pmc_core_initialize with the
  result of pmc_uncore_initialize, fail right away.
- Give a user something to report instead failing silently.

Submitted by:	gonzo
Reported by:	Alexandr Kovalenko <never@nevermind.kiev.ua>
Approved by:	sbruno (mentor)


git-svn-id: svn://svn.freebsd.org/base/stable/9@250373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249487:

Re-factor the code to provide kern_proc_filedesc_out(), kern_proc_out(),
and kern_proc_vmmap_out() functions to output process kinfo structures
to sbuf, to make the code reusable.

The functions are going to be used in the coredump routine to store
procstat info in the core program header notes.

Reviewed by:	kib


git-svn-id: svn://svn.freebsd.org/base/stable/9@250376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9