]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC: r285329
jkim [Thu, 9 Jul 2015 17:17:22 +0000 (17:17 +0000)]
MFC: r285329

Merge OpenSSL 1.0.1p.

Approved by: re (gjb)
Relnotes: yes

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

8 years agoMFC r276383, r276400:
gjb [Thu, 9 Jul 2015 15:56:51 +0000 (15:56 +0000)]
MFC r276383, r276400:

 r276383:
  Delay dropping to the mountroot prompt for 10 seconds
  in case the root device is not yet ready.

 r276400:
  Use the correct loader.conf(5) entry for deferring the
  mountroot prompt.

Approved by: re (marius)
Reminded by: hrs
Sponsored by: The FreeBSD Foundation

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

8 years agoMFH (r275020): partial fix for getgrouplist() in group_compat case
des [Thu, 9 Jul 2015 13:30:37 +0000 (13:30 +0000)]
MFH (r275020): partial fix for getgrouplist() in group_compat case

PR: 190055
Approved by: re (marius)

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

8 years agoDocument r285305, sendmail update to 8.15.2.
gjb [Thu, 9 Jul 2015 05:46:37 +0000 (05:46 +0000)]
Document r285305, sendmail update to 8.15.2.

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

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

8 years agoMFC: Update for sendmail 8.15.2 import
gshapiro [Thu, 9 Jul 2015 05:27:30 +0000 (05:27 +0000)]
MFC: Update for sendmail 8.15.2 import

Approved by: re (gjb)

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

8 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files
gshapiro [Thu, 9 Jul 2015 05:25:47 +0000 (05:25 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files
     are built to use the new sendmail-8.15.2/cf tree.

Approved by: re (gjb)

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

8 years agoMFC: Merge sendmail 8.15.2
gshapiro [Thu, 9 Jul 2015 05:23:17 +0000 (05:23 +0000)]
MFC: Merge sendmail 8.15.2

Approved by: re (gjb)

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

8 years agoMFC: Temporarily disable WARNS while addressing a non-issue with the upstream code
gshapiro [Thu, 9 Jul 2015 05:02:13 +0000 (05:02 +0000)]
MFC: Temporarily disable WARNS while addressing a non-issue with the upstream code

Approved by: re (gjb)

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

8 years agoBy default, sendmail 8.15 uses uncompressed IPv6 addresses. Keep
gshapiro [Thu, 9 Jul 2015 05:00:19 +0000 (05:00 +0000)]
By default, sendmail 8.15 uses uncompressed IPv6 addresses.  Keep
current FreeBSD 10 and earlier behavior of using compressed IPv6
addresses in configuration, maps, rulesets, etc.  (FreeBSD 11 and
later will use the new default of uncompressed IPv6 addresses.)

Approved by: re (gjb)

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

8 years agoMFC: libsm/path.c is about to disappear in the merge of sendmail 8.15.2. It
gshapiro [Thu, 9 Jul 2015 04:58:56 +0000 (04:58 +0000)]
MFC: libsm/path.c is about to disappear in the merge of sendmail 8.15.2.  It
is an empty file now so it is safe to remove before the merge.

Approved by: re (gjb)

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

8 years agoMFC r285138:
loos [Wed, 8 Jul 2015 23:50:04 +0000 (23:50 +0000)]
MFC r285138:

  Install loader.rc with ARM u-boot loader (ubldr).

  loader.rc is the responsible to read and process loader.conf variables.

  This fix the issue of loader.conf being silently ignored.

Approved by: re (gjb)

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

8 years agoMFC: r279597 (and 259152,259219 as dependency)
bapt [Wed, 8 Jul 2015 21:06:19 +0000 (21:06 +0000)]
MFC: r279597 (and 259152,259219 as dependency)

Make calendar(1) usable again. rework the calendar parser so that it is
compatible with documented format:

Support includes surrounded by '"' or '<' '>'
Print warnings about bad syntax
Correctly navigate through include directories to find calendar files
Correctly support multiple includes

While here:

MFC: 262011 (by eadler)

calendar(1): don't segfault in invalid input

When the user supplies an invalid number of days provide a useful error message
instead of segfaulting.

Approved by: re (gjb)

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

8 years agoDocument r285236, TSO and checksum offloading support in
gjb [Wed, 8 Jul 2015 12:08:58 +0000 (12:08 +0000)]
Document r285236, TSO and checksum offloading support in
hv_netvsc(4).

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

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

8 years agoDocument r285206, unbound updated to 1.5.3.
gjb [Wed, 8 Jul 2015 12:08:55 +0000 (12:08 +0000)]
Document r285206, unbound updated to 1.5.3.

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

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

8 years agoDocument r285092, pw(8) '-R' option.
gjb [Wed, 8 Jul 2015 12:08:53 +0000 (12:08 +0000)]
Document r285092, pw(8) '-R' option.

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

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

8 years agoMFC r273489 (cperciva):
gjb [Wed, 8 Jul 2015 09:54:17 +0000 (09:54 +0000)]
MFC r273489 (cperciva):
 Populate the GELI passphrase cache with the kern.geom.eli.passphrase
 variable (if any) provided in the boot environment.  Unset it from
 the kernel environment after doing this, so that the passphrase is
 no longer present in kernel memory once we enter userland.

 This will make it possible to provide a GELI passphrase via the boot
 loader.

 Note: head and stable/10 differ as a result of r273174, which renames
 the getenv(), setenv(), and unsetenv() functions with kern_getenv(),
 kern_setenv(), and kern_unsetenv(), which was reverted in the relevant
 parts of this change in 10-STABLE.

PR: 200448
Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

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

8 years agoRevert r285249, pending further investigation on how the build
gjb [Tue, 7 Jul 2015 20:36:48 +0000 (20:36 +0000)]
Revert r285249, pending further investigation on how the build
broke.

Approved by: re (implicit)
Pointyhat: gjb (self)
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r273489 (cperciva):
gjb [Tue, 7 Jul 2015 18:52:22 +0000 (18:52 +0000)]
MFC r273489 (cperciva):
 Populate the GELI passphrase cache with the kern.geom.eli.passphrase
 variable (if any) provided in the boot environment.  Unset it from
 the kernel environment after doing this, so that the passphrase is
 no longer present in kernel memory once we enter userland.

 This will make it possible to provide a GELI passphrase via the boot
 loader.

PR: 200448
Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r284746 and r284889 TSO and checksum offloading support for Netvsc
whu [Tue, 7 Jul 2015 04:15:22 +0000 (04:15 +0000)]
MFC r284746 and r284889 TSO and checksum offloading support for Netvsc
driver on Hyper-V.

Submitted by: whu
Reviewed by: royger
Approved by: re
Relnotes: yes
Sponsored by: Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D2906

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

8 years agoMFC r284928: speed up ar(1) on UFS file systems
emaste [Tue, 7 Jul 2015 02:17:24 +0000 (02:17 +0000)]
MFC r284928: speed up ar(1) on UFS file systems

Fault in the buffer prior to writing to workaround poor performance due
to interaction with kernel fs deadlock avoidance code. See the comment
prior to vn_io_fault_doio() in sys/kern/vfs_vnops.c for details of the
issue.

On my stable/10 desktop with a 16MB obj.o and "ar r out.a obj.o" I see
the following run times (seconds):

x ar.r284891
+ ar.patched
+----------------------------------------------------------------------+
|+                                                                     |
|+                                                                    x|
|+                                                                   xx|
|A                                                                   |A|
+----------------------------------------------------------------------+
    N         Min          Max        Median           Avg        Stddev
x   3       1.307        1.321         1.315     1.3143333  0.0070237692
+   3       0.020        0.023         0.022   0.021666667  0.0015275252
Difference at 95.0% confidence
        -1.29267 +/- 0.0115203
        -98.3515% +/- 0.876513%
        (Student's t, pooled s = 0.00508265)

Thanks to kib for diagnosing and explaining the issue and suggesting
the workaround.

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

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

8 years agoMFH (r276605, r282089): upgrade to latest Unbound
des [Mon, 6 Jul 2015 13:23:27 +0000 (13:23 +0000)]
MFH (r276605, r282089): upgrade to latest Unbound
MFH (r276699, r276702, r277057): local control socket
MFH (r276599, r276612, r282087, r282088): build fixes

This brings in Unbound 1.5.3 from head.  Local control sockets are now
supported and will be used by default for new installations.  Existing
systems will continue to use TCP control sockets until the automated
setup script is re-run ("service local_unbound setup") and the service
restarted ("service local_unbound restart").

Approved by: re (kib)
Relnotes: yes

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

8 years agoMFC r285050, r285053, r285059:
garga [Mon, 6 Jul 2015 13:01:01 +0000 (13:01 +0000)]
MFC r285050, r285053, r285059:

When passwd or group information is changed (by pw, vipw, chpass, ...)
temporary file is created and then a rename() call move it to official file.
This operation didn't have any check to make sure data was written to disk
and if a power cycle happens system could end up with a 0 length passwd
or group database.

There is a pfSense bug with more information about it:

https://redmine.pfsense.org/issues/4523

The following changes were made to protect passwd and group operations:

* lib/libutil/gr_util.c:
 - Replace mkstemp() by mkostemp() with O_SYNC flag to create temp file
 - After rename(), fsync() call on directory for faster result

* lib/libutil/pw_util.c
 - Replace mkstemp() by mkostemp() with O_SYNC flag to create temp file

* usr.sbin/pwd_mkdb/pwd_mkdb.c
 - Added O_SYNC flag on dbopen() calls
 - After rename(), fsync() call on directory for faster result

* lib/libutil/pw_util.3
 - pw_lock() returns a file descriptor to master password file on success

Differential Revision: https://reviews.freebsd.org/D2978
Approved by: re (kib), bapt (implicit agreed)
Sponsored by: Netgate

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

8 years agoMFC r284593: MFV r284412: 5911 ZFS "hangs" while deleting file
avg [Mon, 6 Jul 2015 10:40:51 +0000 (10:40 +0000)]
MFC r284593: MFV r284412: 5911 ZFS "hangs" while deleting file

illumos/illumos-gate@46e1baa6cf6d5432f5fd231bb588df8f9570c858
https://www.illumos.org/issues/5911
Sometimes ZFS appears to hang while deleting a file. It is actually
making slow progress at the file deletion, but other operations
(administrative and writes via the data path) "hang" until the file
removal completes, which can take a long time if the file has many
blocks. The deletion (or most of it) happens in a single txg, and the
sync thread spends most of its time reading indirect blocks...

Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Reviewed by: Alek Pinchuk <alek@nexenta.com>
Reviewed by: Simon Klinkert <simon.klinkert@gmail.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Matthew Ahrens <mahrens@delphix.com>

PR: 199775
Approved by: re(kib)

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

8 years agoMFC: r281337
marius [Sun, 5 Jul 2015 20:16:38 +0000 (20:16 +0000)]
MFC: r281337

Don't enable RX and TX before their initial configuration is done, i. e.
after setting up interrupt moderation but before turning interrupts on.
This matches what Realtek's r8168 Linux driver does as of version 8.039.00
and fixes problems with certain incarnations of certain MAC revisions
like the interface requiring an extra up/down-cycle after boot to start
working or DMA configuration not being adhered to.

PR: 193743, 197535
Approved by: re (kib)

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

8 years agoMFC: r281751
marius [Sun, 5 Jul 2015 19:32:10 +0000 (19:32 +0000)]
MFC: r281751

Refine the workaround for Intel HSD131 [1] added in r269052 (MFCed to
stable/10 in r269592):
- Use the full mask described by the erratum as with a sufficiently high
  number of these false-positives, the overflow bit (bit 62) additionally
  gets set [7].
- HSD131 has been brought into several other Haswell-derived CPUs including
  to the next generation, i. e. Intel Broadwell. Thus, also skip reporting of
  these benign errors by default on CPU models affected by HSM142, HSW131 and
  BDM48 [2 - 5], describing the HSD131 silicon bug for additional models.
  Also, Celeron 2955U with a CPU ID of 0x45 have been reported to be covered
  by this fault [6], with the specification update concerned with HSM142 [2]
  only referring to 0x3c and 0x46.

Submitted by: David Froehlich [7]
Approved by: re (kib)

http://www.intel.de/content/dam/www/public/us/en/documents/specification-updates/4th-gen-core-family-desktop-specification-update.pdf [1]
http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/4th-gen-core-family-mobile-specification-update.pdf [2]
http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/5th-gen-core-family-spec-update.pdf [3]
http://www.intel.de/content/dam/www/public/us/en/documents/specification-updates/core-m-processor-family-spec-update.pdf [4]
http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/xeon-e3-1200v3-spec-update.pdf [5]
https://lists.freebsd.org/pipermail/freebsd-hackers/2015-January/046878.html [6]

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

8 years agoMFC r284914:
wblock [Sun, 5 Jul 2015 14:17:57 +0000 (14:17 +0000)]
MFC r284914:

Fix a couple of missing lines that obscured the -p description.

Approved by: re

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

8 years agoAdd the GEOM_LABEL option to the BEAGLEBONE, GUMSTIX, and RPI-B
gjb [Sat, 4 Jul 2015 14:50:32 +0000 (14:50 +0000)]
Add the GEOM_LABEL option to the BEAGLEBONE, GUMSTIX, and RPI-B
kernel configuration files, resolving an issue where the UFS and
MSDOSFS partitions would not mount as set in fstab(5).

This is a direct commit to stable/10, as the GEOM_LABEL option
is handled differently in head for arm/armv6.  The WANDBOARD
and PANDABOARD already have this kernel option entry via the IMX6
kernel configuration file, so do not need to be changed.

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

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

8 years agoMFC r284004 (parital):
gjb [Sat, 4 Jul 2015 00:43:23 +0000 (00:43 +0000)]
MFC r284004 (parital):
 Use the pw(8) '-R' flag to change the relative root directory
 when creating operating within the DESTDIR.

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

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

8 years agoLatest clang uses openat(2).
sjg [Fri, 3 Jul 2015 20:43:31 +0000 (20:43 +0000)]
Latest clang uses openat(2).

If the pathname is absolute or dirfd is AT_FDCWD we can
handle it exactly like open(2).
Otherwise we output an A record to indicate that the path of
an open directory needs to be used (earlier in the trace).

Also filemon_pid_check needs to hold proctree_lock
and use proc_realparent()

Differential Revision:  D2810
Reviewed by: jhb
Approved by: re

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

8 years agoMFC r284732:
dim [Fri, 3 Jul 2015 20:29:04 +0000 (20:29 +0000)]
MFC r284732:

Add __cxa_deleted_virtual to libcxxrt's version map.

This symbol can sometimes be emitted by clang++, and was not yet
exported from libcxxrt.  Attempt to be compatible with libsupc++ by
using the same CXXABI_1.3.6 symbol version.

Approved by: re (kib)
Reported by: yuri@rawbw.com
PR: 200863
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D2850

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

8 years agoRevert a modification that should not have been part of r285092
bapt [Fri, 3 Jul 2015 14:29:55 +0000 (14:29 +0000)]
Revert a modification that should not have been part of r285092

Approved by: re (implicit)
Sponsored by: gandi.net

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

8 years agoMFC: r274011,r274022,r274453,r274542,r274632,r274727,r275653,r275656,r275657,
bapt [Fri, 3 Jul 2015 14:22:44 +0000 (14:22 +0000)]
MFC: r274011,r274022,r274453,r274542,r274632,r274727,r275653,r275656,r275657,
     r275658,r275829,r277652,r277764,r278475,r278767,r278819,r278902,r279256,
     r282681,r282683,r282685,r282686,r282687,r282697,r282698,r282699,r282700,
     r282709,r282712,r282713,r282716,r282718,r282719,r282720,r282721,r283809,
     r283810,r283811,r283814,r283815,r283816,r283818,r283841,r283842,r283843,
     r283961,r283962,r284110,r284111,r284112,r284113,r284114,r284117,r284118,
     r284119,r284120,r284121,r284122,r284123,r284124,r284126,r284128,r284129,
     r284130,r284133,r284135,r284137,r284139,r284140,r284148,r284149,r284392

Lots of cleanup in the pw(8) code
Add pw -R <rootdir>
Add lots of regression tests
More accurate error messages

Approved by: re (kib)
Sponsored by: gandi.net

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

8 years agoDocument EN-15:08 (revised), EN-15:09, EN-15:10.
gjb [Thu, 2 Jul 2015 20:41:50 +0000 (20:41 +0000)]
Document EN-15:08 (revised), EN-15:09, EN-15:10.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r269137 by marcel:
emaste [Thu, 2 Jul 2015 18:27:04 +0000 (18:27 +0000)]
MFC r269137 by marcel:

  Add missing definition of ELF_MACHINE_OK, now used by gcore(1).

PR: 201204

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

8 years agoMFC r284893, r284895-r284897, r284942, r284968, r284996, r285005:
gjb [Thu, 2 Jul 2015 16:17:05 +0000 (16:17 +0000)]
MFC r284893, r284895-r284897, r284942, r284968, r284996, r285005:

 r284893 (brd):
  Add initial support for building Vagrant images for VMWare.
  Next steps will be adding Virtualbox support and uploading
  to Hashicorp Atlas for others to consume.

 r284895:
  Add default VAGRANT_IMG variable.

 r284896:
  Remove _ACCOUNT and add _USERNAME, _NAME, _VERSION for the
  VAGRANT_${VAR} variables extracted from VAGRANT_UPLOAD_CONF.

  Set ATLAS_${VAR} to VAGRANT_${VAR} if VAGRANT_UPLOAD_CONF
  is set.  There is intent to intentionally have separate
  variants of configuration entries, but the defaults do not
  yet have any reason to be different.

 r284897:
  Instead of hard-coding the PROVIDERS for upload, add the
  VAGRANT_PROVIDERS variable.  Right now, it defaults to only
  vmware_desktop, virtualbox support is to follow at some point.

  While here, fix the hashicorp URL: s/vagrant/atlas/, which
  was result of a sed(1) replace (and my fault).

 r284942 (brd):
  Add Support for uploading Vagrant images to Hashicorp Atlas.

 r284968:
  Default the VAGRANT_VERSION to ${REVISION}-${BRANCH} if
  not set, which expands to '11.0-CURRENT', for example.

  If the branch is -CURRENT, -STABLE, or -PRERELEASE, suffix
  the VAGRANT_VERSION with the snapshot date.

 r284996:
  Fix the gcloud port/package name.

 r285005:
  Remove the HH-MM suffix from the build date suffix.

  It was useful when working out several kinks when testing
  automated image uploading when retrying was necessary, but
  now it is making things much too messy.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFH (r277531): don't include newvers in freebsd-version
des [Thu, 2 Jul 2015 11:46:40 +0000 (11:46 +0000)]
MFH (r277531): don't include newvers in freebsd-version

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

8 years agoMFC r265096:
garga [Thu, 2 Jul 2015 10:31:08 +0000 (10:31 +0000)]
MFC r265096:

Fix "netstat -gW" behavior broken in r259638.
netstat has two options for printing multicast tables:
sysctl (the default one for live systems) and kvm-based one (for cores).
It looks like kvm-based one hasn't been working since it's been introduced
in r190012 due to absence of mfctablesize kernel symbol.
Check for all ipv4-multicast symbols being correctly resolved was introduced
in r259638 regardless of 'live' value leading to "No IPv4 MROUTING" error
message.

Reported by: Olivier Cochard-Labbé
Approved by: melifaro@
Sponsored by: Netgate

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

8 years agoMFC r284348: Fix panic when adding vtnet interfaces to a bridge
kp [Wed, 1 Jul 2015 21:21:14 +0000 (21:21 +0000)]
MFC r284348: Fix panic when adding vtnet interfaces to a bridge

vtnet interfaces are always in promiscuous mode (at least if the
VIRTIO_NET_F_CTRL_RX feature is not negotiated with the host).  if_promisc() on
a vtnet interface returned ENOTSUP although it has IFF_PROMISC set. This
confused the bridge code. Instead we now accept all enable/disable promiscuous
commands (and always keep IFF_PROMISC set).

There are also two issues with the if_bridge error handling.

If if_promisc() fails it uses bridge_delete_member() to clean up. This tries to
disable promiscuous mode on the interface. That runs into an assert, because
promiscuous mode was never set in the first place. (That's the panic reported in
PR 200210.)
We can only unset promiscuous mode if the interface actually is promiscuous.
This goes against the reference counting done by if_promisc(), but only the
first/last if_promic() calls can actually fail, so this is safe.

A second issue is a double free of bif. It's already freed by
bridge_delete_member().

PR:         200210

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

8 years agoMFC r284712:
neel [Wed, 1 Jul 2015 19:46:57 +0000 (19:46 +0000)]
MFC r284712:
Restore the host's GS.base before returning from 'svm_launch()' so the Dtrace
FBT provider works with vmm.ko on AMD.

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

8 years agoMFC 284913:
pfg [Wed, 1 Jul 2015 15:03:49 +0000 (15:03 +0000)]
MFC 284913:
dconschat(8): Use NULL instead of 0 for the last argument in execl(3)

Found while experimenting with the gcc sentinel attribute.

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

8 years agoMFC r278153,284416: ttm memory allocation improvements
avg [Wed, 1 Jul 2015 11:28:42 +0000 (11:28 +0000)]
MFC r278153,284416: ttm memory allocation improvements

If the vm_page_alloc_contig() failed in the ttm page allocators, do
what other callers of vm_page_alloc_contig() do, retry after
vm_pageout_grow_cache().

ttm_vm_page_alloc: use vm_page_alloc for pages without dma32 restriction
This change re-organizes code a little bit to extract common pieces
of ttm_alloc_new_pages() and ttm_get_pages() into dedicated functions.
Also, for requests without address restrictions regular vm_page_alloc()
is used.
Lastly, when vm_page_alloc_contig() fails we call VM_WAIT before calling
vm_pageout_grow_cache() to ensure that there is enough free pages at
all.

Note: no MFC to stable/9 because it lacks vm_pageout_grow_cache().

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

8 years agoMFC r284304: MFV r284030: 5818 zfs {ref}compressratio is incorrect with 4k sector...
avg [Wed, 1 Jul 2015 10:47:13 +0000 (10:47 +0000)]
MFC r284304: MFV r284030: 5818 zfs {ref}compressratio is incorrect with 4k sector size

Note: no MFC to stable/9 because r268075 (vendor r267565) has not been MFC-ed.

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

8 years agoMFC r284297: several lockstat improvements
avg [Wed, 1 Jul 2015 10:15:49 +0000 (10:15 +0000)]
MFC r284297: several lockstat improvements

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

8 years agoMFH (r275765): clean up, add special case for + line
des [Wed, 1 Jul 2015 07:31:39 +0000 (07:31 +0000)]
MFH (r275765): clean up, add special case for + line

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

8 years agoMFC r284495:
kib [Wed, 1 Jul 2015 06:54:25 +0000 (06:54 +0000)]
MFC r284495:
Keep a vnode which is freed but still owing inactivation, on the active list.
This closes a race where such vnode is not msync-ed until reboot.

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

8 years agoMFC r284741
davidcs [Tue, 30 Jun 2015 20:59:07 +0000 (20:59 +0000)]
MFC r284741

Updated Copyright information
Added support for the following:
     - iSCSI TLV (requires 64 Tx and 32 Rx rings
     - 9K receive buffers for jumbo frames (feature may be enabled/disabled)
     - builtin firmware, bootloader and minidump template
     - quick stats
     - async event handling for SFP insertion/removal and DCBX changes
     - Configuring DCBX and interrupt coalescing parameters

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

8 years agoMFC 284709:
wblock [Tue, 30 Jun 2015 19:53:26 +0000 (19:53 +0000)]
MFC 284709:
  Call /etc/crontab the "system crontab", not "root's crontab".  While
  here, fix some other wording issues

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

8 years agoMFC r284739
davidcs [Tue, 30 Jun 2015 18:58:33 +0000 (18:58 +0000)]
MFC r284739
tx_mtx should be grabbed before calling buf_ring_dequeue_sc()

Submitted by:Attilio.Rao@isilon.com

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

8 years agoMFC r284470
davidcs [Tue, 30 Jun 2015 17:59:14 +0000 (17:59 +0000)]
MFC r284470
In bxe_init_mcast_macs_list(): mc_mac->mac needs to point to the multicast mac address
In bxe_set_mc_list(): added missing BXE_MCAST_UNLOCK()
In __ecore_vlan_mac_h_exec_pending(): need to check for ECORE_PENDING

Submitted by: gary.zambrano@qlogic.com

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

8 years agoMFC r284335
davidcs [Tue, 30 Jun 2015 17:44:44 +0000 (17:44 +0000)]
MFC r284335

PHY LOCK acquires the hardware lock via bxe_acquire_phy_lock() and releases it via bxe_release_phy_lock(). It was simply acquiring a mutex earlier which can cause the PHY to use bogus values. Fixes intermittent link failures.

bxe_ioctl() completes all functions within its context as opposed to a taskqueue earlier.

bxe_handle_rx_mode_tq() no longer required. bxe_set_rx_mode() handles the functionality within its context

Submitted by: gary.zambrano@qlogic.com

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

8 years agoRe-add if_hw_tso* assignments to if_ix.c that were removed in r283668.
erj [Tue, 30 Jun 2015 16:26:13 +0000 (16:26 +0000)]
Re-add if_hw_tso* assignments to if_ix.c that were removed in r283668.

These are used in stable/10 as well as 11.

Requested by: rmacklem@

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

8 years agoMFH (r275659): fix dependency on newvers.sh
des [Tue, 30 Jun 2015 15:32:57 +0000 (15:32 +0000)]
MFH (r275659): fix dependency on newvers.sh

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

8 years agoMFH (r277695): allow tracing dlfunc() / dlsym() events
des [Tue, 30 Jun 2015 14:17:02 +0000 (14:17 +0000)]
MFH (r277695): allow tracing dlfunc() / dlsym() events

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

8 years agoMFH (r270391): don't set rc_debug in /etc/defaults/rc.conf
des [Tue, 30 Jun 2015 13:30:10 +0000 (13:30 +0000)]
MFH (r270391): don't set rc_debug in /etc/defaults/rc.conf

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

8 years agoMFH (r283578): import new moduli from upstream
des [Tue, 30 Jun 2015 12:46:43 +0000 (12:46 +0000)]
MFH (r283578): import new moduli from upstream

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

8 years agoMFC: r262233
brueffer [Tue, 30 Jun 2015 09:34:59 +0000 (09:34 +0000)]
MFC: r262233

Spelling, grammar and mdoc cleanup.

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

8 years agoMFC r284858:
tijl [Tue, 30 Jun 2015 08:40:15 +0000 (08:40 +0000)]
MFC r284858:

Enable the use of __builtin_va_* for ICC.

PR: 198822
Submitted by: Sergey Melnikov <sergey.melnikov@intel.com>

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

8 years agoMFC r284719:
kib [Tue, 30 Jun 2015 05:53:15 +0000 (05:53 +0000)]
MFC r284719:
Only take previous buffer queue lock (olock) when needed for REMFREE
in binsfree().

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

8 years agoMFC r284882, r284884:
gjb [Tue, 30 Jun 2015 00:51:43 +0000 (00:51 +0000)]
MFC r284882, r284884:

 r284882:
  Add initial support for automatically uploading GCE virtual
  machine images to the Google Compute Engine platform.

  Remove gce-package.sh.

 r284884:
  Fix a vi-invoked typo.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r279901 (kmoore):
delphij [Mon, 29 Jun 2015 19:09:16 +0000 (19:09 +0000)]
MFC r279901 (kmoore):

 - Include commas in valid file-name chars freebsd-update will support

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

8 years agoMFC r256594 (cperciva):
delphij [Mon, 29 Jun 2015 19:02:30 +0000 (19:02 +0000)]
MFC r256594 (cperciva):

Speed up `freebsd-update IDS` by using IFS to split fields instead of
forking lots of processes to run echo|cut.  In one test this reduced
the CPU time from 980s to 134s and the wallclock time from 806s to
132s.

Submitted by: Oleg Ginzburg

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

8 years agoMFC r274630,r274653 (feld):
delphij [Mon, 29 Jun 2015 18:56:53 +0000 (18:56 +0000)]
MFC r274630,r274653 (feld):

Add logic for detecting non-persistent filesystems being utilized by
workdir which would break the upgrade process upon reboot.

Currently we check for tmpfs and md.

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

8 years agoMFC r276095 (des)
delphij [Mon, 29 Jun 2015 18:51:08 +0000 (18:51 +0000)]
MFC r276095 (des)

Use "RCS tag" instead of "$FreeBSD$ tag", since svn will obediently
expand the latter.

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

8 years agoMFC r284425:
delphij [Mon, 29 Jun 2015 18:44:15 +0000 (18:44 +0000)]
MFC r284425:

Skip src component if /usr/src is empty.

Submitted by: kczekirda
Reviewed by: cperciva, delphij, nwhitehorn, allanjude

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

8 years agoMFC r284792:
delphij [Mon, 29 Jun 2015 18:34:30 +0000 (18:34 +0000)]
MFC r284792:

Merge changes from vendor driver 1.1.4:

  v1.1.4 2015-06-09
   * Fix a bug that FailLED was not initialized properly.
  v1.1.3 2015-05-19
   * Support Report Luns command.
  v1.1.2 2015-05-05
   * Fix a bug that report wrong physical sector size for 512e HDD.

Many thanks to HighPoint for continued support of FreeBSD!

This driver update is intended for 10.2-RELEASE.

Submitted by: Steve Chang

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

8 years agoMFC r284765, r284875:
mav [Sun, 28 Jun 2015 09:41:10 +0000 (09:41 +0000)]
MFC r284765, r284875:
Teach ctld about CTL's physical_port and virtual_port fields.

This allows ctld to work with isp(4) virtual ports, specifying them as
isp0/1, isp0/2, etc.  There are still problems on isp(4) layer with
disabling those ports after enabling, but hopefully they can be fixed.

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

8 years agoMFC r284808: Remove limitations on setting WWNNs starting from 2.
mav [Sun, 28 Jun 2015 09:27:34 +0000 (09:27 +0000)]
MFC r284808: Remove limitations on setting WWNNs starting from 2.

It is odd that driver first tries to generate synthetic WWNN based on
WWPN starting from 2, but then refuses to use it.  If we don't trust
generated WWNN, we should probably not generate it.  Same time this
limitation prevents potentially valid WWNN setting by user.

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

8 years agoMFC r284748: Fix reported_gone setting, missed in some cases.
mav [Sun, 28 Jun 2015 09:26:14 +0000 (09:26 +0000)]
MFC r284748: Fix reported_gone setting, missed in some cases.

This makes driver better track reported CAM_SEL_TIMEOUTs to properly
report device reappearance later.  This fixes target 0 not reappearing
after initiator mode disabled and then reenabled.

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

8 years agoMFC r284727: Add dev.isp.X.role sysctl in addition to tunable.
mav [Sun, 28 Jun 2015 09:25:13 +0000 (09:25 +0000)]
MFC r284727: Add dev.isp.X.role sysctl in addition to tunable.

It (mostly) allows to enable/disable initiator mode in run time.
Target mode control is blocked here to force coordination with CTL.

While there, add separate tunables/sysctls for virtual channels.

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

8 years agoMFC r284681: Rewrite port database handling for target mode.
mav [Sun, 28 Jun 2015 09:24:02 +0000 (09:24 +0000)]
MFC r284681: Rewrite port database handling for target mode.

Previous implementation was too fragile to initiator parameters changes.
In case of port role change it could not survive different handle assigned
to the same initiator by firmware, even though initiator was logged out.
The new implementation should be more resillient to this kind of problems,
trying to work in any situation and only warn user about suspisious events.

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

8 years agoMFC r282209:
neel [Sun, 28 Jun 2015 03:22:26 +0000 (03:22 +0000)]
MFC r282209:
Emulate the 'bit test' instruction.

MFC r282259:
Re-implement RTC current time calculation to eliminate the possibility of
losing time.

MFC r282281:
Advertise the MTRR feature via CPUID and emulate the minimal set of MTRR MSRs.

MFC r282284:
When an instruction cannot be decoded just return to userspace so bhyve(8)
can dump the instruction bytes.

MFC r282287:
Don't require <sys/cpuset.h> to be always included before <machine/vmm.h>.

MFC r282296:
Emulate MSR_SYSCFG which is accessed by Linux on AMD cpus when MTRRs are
enabled.

MFC r282301:
Relax limits when transitioning a vector from the IRR to the ISR and also
when extinguishing it from the ISR in response to an EOI.

MFC r282335:
Advertise an additional memory BAR in the "dummy" device emulation.

MFC r282336:
Emulate machine check related MSRs to allow guest OSes like Windows to boot.

MFC r282351:
Don't advertise the Intel SMX capability to the guest.

MFC r282407:
Emulate the 'CMP r/m8, imm8' instruction.

MFC r282519:
Add macros for AMD-specific bits in MSR_EFER: LMSLE, FFXSR and TCE.

MFC r282520:
Emulate guest writes to EFER_MSR properly.

MFC r282558:
Deprecate the 3-way return values from vm_gla2gpa() and vm_copy_setup().

MFC r282571:
Check 'td_owepreempt' and yield the vcpu thread if it is set.

MFC r282595:
Allow byte reads of AHCI registers.

MFC r282784:
Handling indirect descriptors is a capability of the host and not one that
needs to be negotiated. Use the host capabilities field and not the negotiated
field when verifying that indirect descriptors are supported.

MFC r282788:
Allow configuration of the sector size advertised to the guest.

MFC r282865:
Set the subvendor field in config space to the vendor ID. This is required
by the Windows virtio drivers to correctly match a device.

MFC r282922:
Bump the size of the blockif scatter-gather list to 67.

MFC r283075:
Fix off-by-one in array index bounds check. bhyveload would allow you to
create 33 entries on an array that only has 32 slots

MFC r283168:
Temporarily revert r282922 which bumped the max descriptors.

MFC r283255:
Emulate the "CMP r/m, reg" instruction (opcode 39H).

MFC r283256:
Add an option "--get-vmcs-exit-inst-length" to display the instruction length
of the instruction that caused the VM-exit.

MFC r283264:
Change the header type of the emulated host-bridge from type 1 to type 0.

MFC r283293:
Don't rely on the 'VM-exit instruction length' field in the VMCS to always
have an accurate length on an EPT violation.

MFC r283299:
Remove bogus verification of instruction length after instruction decode.

MFC r283308:
Exceptions don't deliver an error code in real mode.

MFC r283657:
Fix non-deterministic delays when accessing a vcpu that was in "running" or
"sleeping" state.

MFC r283973:
Use tunable 'hw.vmm.svm.features' to disable specific SVM features even
though they might be available in hardware. Use tunable 'hw.vmm.svm.num_asids'
to limit the number of ASIDs used by the hypervisor.

MFC r284046:
Fix regression in 'verify_gla()' with the RIP-relative addressing mode.

MFC r284174:
Support guest writes to the TSC by enabling the "use TSC offsetting"
execution control.

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

8 years agoMFC r279444:
neel [Sun, 28 Jun 2015 01:21:55 +0000 (01:21 +0000)]
MFC r279444:
Allow passthrough devices to be hinted.

MFC r279683:
When ICW1 is issued the edge sense circuit is reset which means that
following an initialization a low-to-high transistion is necesary to
generate an interrupt.

MFC r279925:
Add -p parameter to list PCI device to pass through to the guest.

MFC r281559:
Fix handling of BUS_PROBE_NOWILDCARD in 'device_probe_child()'.

MFC r280447:
When fetching an instruction in non-64bit mode, consider the value of the
code segment base address.

MFC r280725:
Move legacy interrupt allocation for virtio devices to common code.

MFC r280775:
Fix the RTC device model to operate correctly in 12-hour mode.

MFC r280929:
Fix "MOVS" instruction memory to MMIO emulation.

MFC r280968:
Display instruction bytes and %rip prior to aborting due to an instruction
emulation error.

MFC r281145:
Enhance the support for Group 1 Extended opcodes for CMP, AND, OR instructions.

MFC r281542:
Initialize 'error' before use (Coverity IDs 1249748124974712497511249749)

MFC r281561:
Prior to aborting due to an ioport error, it is always interesting to see what
the guest's %rip is.

MFC r281611:
If the number of guest vcpus is less than '1' then flag it as an error.

MFC r281612:
Prefer 'vcpu_should_yield()' over checking 'curthread->td_flags' directly.

MFC r281630:
Relax the check on which vectors can be delivered through the APIC. According
to the Intel SDM vectors 16 through 255 are allowed to be delivered via the
local APIC.

MFC r281879:
Missing break in switch case (Coverity ID 1292499)

MFC r281946:
Don't allow guest to modify readonly bits in the PCI config 'status' register.

MFC r281987:
STOS/STOSB/STOSW/STOSD/STOSQ instruction emulation.

MFC r282206:
Implement the century byte in the RTC.

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

8 years agoMFC r276428:
neel [Sat, 27 Jun 2015 22:48:22 +0000 (22:48 +0000)]
MFC r276428:
Replace bhyve's minimal RTC emulation with a fully featured one in vmm.ko.

MFC r276432:
Initialize all fields of 'struct vm_exception exception' before passing it
to vm_inject_exception().

MFC r276763:
Clear blocking due to STI or MOV SS in the hypervisor when an instruction is
emulated or when the vcpu incurs an exception.

MFC r277149:
Clean up usage of 'struct vm_exception' to only to communicate information
from userspace to vmm.ko when injecting an exception.

MFC r277168:
Fix typo (missing comma).

MFC r277309:
Make the error message explicit instead of just printing the usage if the
virtual machine name is not specified.

MFC r277310:
Simplify instruction restart logic in bhyve.

MFC r277359:
Fix a bug in libvmmapi 'vm_copy_setup()' where it would return success even
if the 'gpa' was in the guest MMIO region.

MFC r277360:
MOVS instruction emulation.

MFC r277626:
Add macro to identify AVIC capability (advanced virtual interrupt controller)
in AMD processors.

MFC r279220:
Don't close a block context if it couldn't be opened avoiding a null deref.

MFC r279225:
Add "-u" option to bhyve(8) to indicate that the RTC should maintain UTC time.

MFC r279227:
Emulate MSR 0xC0011024 when running on AMD processors.

MFC r279228:
Always emulate MSR_PAT on Intel processors and don't rely on PAT save/restore
capability of VT-x. This lets bhyve run nested in older VMware versions that
don't support the PAT save/restore capability.

MFC r279540:
Fix warnings/errors when building vmm.ko with gcc.

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

8 years agoMFC r284646:
kib [Sat, 27 Jun 2015 09:47:28 +0000 (09:47 +0000)]
MFC r284646:
The barriers, provided by _acq and _rel atomics, are acquire and
release barriers, not read and write barriers.

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

8 years agoMFC r284743:
hselasky [Fri, 26 Jun 2015 21:35:36 +0000 (21:35 +0000)]
MFC r284743:
Rename __weak to __weak_symbol to avoid language conflict with objective-C.

PR: 200972 (exp-run)
Suggested by: theraven@

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

8 years agoMFC r267386,269611,284730:
delphij [Fri, 26 Jun 2015 19:55:01 +0000 (19:55 +0000)]
MFC r267386,269611,284730:

Update vendor driver to 1.2.7.  This update improves driver reliability and
adds support of 4Kn drives and report LUNs command.

Many thanks to HighPoint for providing this driver update.

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

8 years agoLimit the number of autoconfigured queues to 8.
erj [Fri, 26 Jun 2015 17:13:23 +0000 (17:13 +0000)]
Limit the number of autoconfigured queues to 8.

This limit was in a previous version of the driver, but it is being re-
added to match the behavior of previous versions of 10. It prevents the
driver from using too many MSI-X vectors on systems with a large number of
logical CPU cores.

Thanks to <jwd@slowblink.com> for bringing up this issue.

Approved by: jfv (mentor)

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

8 years agoMFC r284594:
kib [Fri, 26 Jun 2015 06:25:14 +0000 (06:25 +0000)]
MFC r284594:
Restore the td_cookie value upon detach.

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

8 years agoMFC: r284747
arybchik [Fri, 26 Jun 2015 06:08:52 +0000 (06:08 +0000)]
MFC: r284747

sfxge: skip VPD info population if access is denied

The patch allows to run on unprivileged PF (PFIOV) passed to
a virtual machine.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.

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

8 years agoDocument FreeBSD-EN-15:06.file, FreeBSD-EN-15:07.zfs,
gjb [Thu, 25 Jun 2015 20:01:27 +0000 (20:01 +0000)]
Document FreeBSD-EN-15:06.file, FreeBSD-EN-15:07.zfs,
FreeBSD-EN-15:08.sendmail, FreeBSD-SA-15:10.openssl.

Sponsored by: The FreeBSD Foundation

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

8 years agoUpdate the svn revision marker.
gjb [Thu, 25 Jun 2015 18:45:37 +0000 (18:45 +0000)]
Update the svn revision marker.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r284778, file(1) updated to 5.23.
gjb [Thu, 25 Jun 2015 18:45:35 +0000 (18:45 +0000)]
Document r284778, file(1) updated to 5.23.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r284665:
gjb [Thu, 25 Jun 2015 18:45:33 +0000 (18:45 +0000)]
Document r284665:
- kern.racct.enable tunable and RACCT_DISABLED kernel
  configuration option.
- RACCT/RCTL in GENERIC by default.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument rr284522, EM_MULTIQUEUE kernel configuration option.
gjb [Thu, 25 Jun 2015 18:45:31 +0000 (18:45 +0000)]
Document rr284522, EM_MULTIQUEUE kernel configuration option.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r284460, ACPICA updated to 20150515.
gjb [Thu, 25 Jun 2015 18:45:29 +0000 (18:45 +0000)]
Document r284460, ACPICA updated to 20150515.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r284330, OpenSSL updated to 1.0.1o.
gjb [Thu, 25 Jun 2015 18:45:27 +0000 (18:45 +0000)]
Document r284330, OpenSSL updated to 1.0.1o.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r283875, chmod, chflags, chown and chgrp recursive
gjb [Thu, 25 Jun 2015 18:45:24 +0000 (18:45 +0000)]
Document r283875, chmod, chflags, chown and chgrp recursive
symlink processing.
Add Multiplay to sponsors.ent.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r283280, several improvements/updates to the HyperV drivers.
gjb [Thu, 25 Jun 2015 18:45:22 +0000 (18:45 +0000)]
Document r283280, several improvements/updates to the HyperV drivers.
Add Microsoft Open Source Technology Center to sponsors.ent.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r283262, boot-time memory test on amd64 platforms is now
gjb [Thu, 25 Jun 2015 18:45:20 +0000 (18:45 +0000)]
Document r283262, boot-time memory test on amd64 platforms is now
disabled by default.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r283242, autofs(5) '-noauto' map addition.
gjb [Thu, 25 Jun 2015 18:45:17 +0000 (18:45 +0000)]
Document r283242, autofs(5) '-noauto' map addition.

Sponsored by: The FreeBSD Foundation

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

8 years agoAdd ScaleEngine, Inc. to sponsors.ent.
gjb [Thu, 25 Jun 2015 18:45:15 +0000 (18:45 +0000)]
Add ScaleEngine, Inc. to sponsors.ent.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r283223, autofs(5) '-media' map.
gjb [Thu, 25 Jun 2015 18:45:13 +0000 (18:45 +0000)]
Document r283223, autofs(5) '-media' map.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r282974, uefisign(8) added.
gjb [Thu, 25 Jun 2015 18:45:11 +0000 (18:45 +0000)]
Document r282974, uefisign(8) added.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r282870, freebsd-update(8) prevents upgrading a system
gjb [Thu, 25 Jun 2015 18:45:09 +0000 (18:45 +0000)]
Document r282870, freebsd-update(8) prevents upgrading a system
with pending (incomplete) updates.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r282746, openresolv updated to 3.7.0.
gjb [Thu, 25 Jun 2015 18:45:07 +0000 (18:45 +0000)]
Document r282746, openresolv updated to 3.7.0.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r284780, r284811, r284812:
gjb [Thu, 25 Jun 2015 14:58:50 +0000 (14:58 +0000)]
MFC r284780, r284811, r284812:

 r284780:
  Ensure ASSUME_ALWAYS_YES is set when deleting pkg(8) from the
  DESTDIR, otherwise it can get stuck in ttyin.

 r284811:
  Consider PRERELEASE builds snapshots, in addition to CURRENT
  and STABLE.

 r284812:
  Change the hour:minute delimiter from ':' to '-', since
  the former is an invalid character in EC2 images.

Approved by: re (glebius, insta-MFC)
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r271651, r271719, r272138, r272457, r272845, r275476, r275518, r275614,
tijl [Thu, 25 Jun 2015 13:01:10 +0000 (13:01 +0000)]
MFC r271651, r271719, r272138, r272457, r272845, r275476, r275518, r275614,
    r275819, r276176, r278154, r278160, r278339, r279127, r279240, r279491,
    r279493, r279856, r283032, r284423, r284426, r284427, r284428

Merge changes to libm from the past 9 months.  This includes improvements
to the Bessel functions and adds the C99 function lgammal.

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

8 years agoMFC r284308: MFV r284042: 1778 Assertion failed: rn->rn_nozpool == B_FALSE
avg [Thu, 25 Jun 2015 08:11:39 +0000 (08:11 +0000)]
MFC r284308: MFV r284042: 1778 Assertion failed: rn->rn_nozpool == B_FALSE

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

8 years agoMFC r284698: Dump additional config bytes for INIT_FIRMWARE_MULTI_ID.
mav [Thu, 25 Jun 2015 07:25:40 +0000 (07:25 +0000)]
MFC r284698: Dump additional config bytes for INIT_FIRMWARE_MULTI_ID.

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

8 years agoMFC r284697: Add logging of executed mailbox command names.
mav [Thu, 25 Jun 2015 07:24:47 +0000 (07:24 +0000)]
MFC r284697: Add logging of executed mailbox command names.

Previously those commands were logged only as part of register dump,
that is not very readable.

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