In pmap_copy(), when the copied region is mapped with superpage but does
not cover entire superpage, avoid copying.  Doing partial copy would
require demotion, which is incompatible with the already held locks.

Reported by:    cperciva
Reviewed by:    alc
Sponsored by:	The FreeBSD Foundation
MFC after:      1 week
Approved by:	re (delphij)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255607 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove zero-copy sockets code.  It only worked for anonymous memory,
and the equivalent functionality is now provided by sendfile(2) over
posix shared memory filedescriptor.

Remove the cow member of struct vm_page, and rearrange the remaining
members.  While there, make hold_count unsigned.

Requested and reviewed by:	alc
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
Approved by:	re (delphij)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Write protect base page after superpage demotion so that it may repromote

When clearing the modification status of the superpage, one of the
base pages produced during demotion should be marked as write disabled.
The intention is that subsequent write access may repromote.
In the current implementation this was done wrong as write permission was
granted instead of forbidden.

Approved by:	cognet (mentor)
Approved by:	re


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255611 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Implement pmap_advise() for ARMv6/v7 pmap module

Apply the given advice to the specified range of addresses within the
given pmap. Depending on the advice, clear the referenced and/or
modified flags in each mapping. Superpage within the given range will
be demoted or destroyed.

Reviewed by:	alc
Approved by:	cognet (mentor)
Approved by:	re


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255612 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix GCC build error when building for ARMv6

Apply theravens's idea to move __strong_reference
macros into the proper ifdef section.

Approved by:	cognet (mentor)
Approved by:	re


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255613 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix bug in busdma: if segs is a preexisting buffer, we memcpy it
into the DMA map. The length of the buffer had not yet been
initialized, however, so this would copy gibberish unless it
happened to be right by chance. This bug mostly only affected
systems with IOMMUs.

Approved by:	re (gjb)
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255614 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a loader tunable to use only device tree-provided PCI devices. This is
needed on some more fragile systems to avoid machine checks when blindly
probing the PCI bus. Also reduce ofw_pcibus's priority slightly so that it
can be overridden.

Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update head/ to -ALPHA2 status.

Approved by:	re (implicit)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge the change r255607 from amd64 to i386.

Reviewed by:	alc
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document that the 'unbound' user is required for installworld since
the import of ldns/unbound.

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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add vmx(4) to i386 and amd64 GENERIC

Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Reword the 20121201 entry.
- Clean up minor whitespace nit.

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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  Fix assertion in sendfile_readpage() to assert only the validity
of requested amount of data in a page. Move assertion down below
object unlock.

Approved by:	re (kib)
Sponsored by:	Nginx, Inc.
Sponsored by:	Netflix


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255625 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
PG_SLAB no longer serves a useful purpose, since m->object is no
longer abused to store pointer to slab. Remove it.

Reviewed by:    alc
Sponsored by:   The FreeBSD Foundation
Approved by:	re (hrs)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Set the correct path for LIBUNBOUND.

Approved by:	re (blanket)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255627 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Assume that the -f argument is /dev/gpioc0 if it is not passed.

hrs@ provided this verison of the patch and showed me where all the needed
changes were to be made outside of gpioctl.c

Approved by:	re (hrs)
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add unbound to the list of UIDs / GIDs to check fore before installing.

Approved by:	re (blanket)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255634 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Explicitly require Security Officer's approval for kernel PRNG bits.

Note that there is ongoing discussion about approval requirement
for userland PRNG bits.

Reviewed by:	so (des)
Approved by:	core (jhb)
Approved by:	re (gjb)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255635 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve iSCSI address resolution, fixing "InitiatorAddress" handling,
and error reporting.

Approved by:	re (kib)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@255636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't attempt to build ports with missing dependencies.

Approved by:	re (gjb)


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