MFC r250966:
Fix the data corruption on the swap-backed md. Assign the rv variable a
success code if the pager was not asked for the page.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 250219:
Fix two bugs in the current NUMA-aware allocation code:
- vm_phys_alloc_freelist_pages() can be called by vm_page_alloc_freelist()
  to allocate a page from a specific freelist.  In the NUMA case it did not
  properly map the public VM_FREELIST_* constants to the correct backing
  freelists, nor did it try all NUMA domains for allocations from
  VM_FREELIST_DEFAULT.
- vm_phys_alloc_pages() did not pin the thread and each call to
  vm_phys_alloc_freelist_pages() fetched the current domain to choose
  which freelist to use.  If a thread migrated domains during the loop
  in vm_phys_alloc_pages() it could skip one of the freelists.  If the
  other freelists were out of memory then it is possible that
  vm_phys_alloc_pages() would fail to allocate a page even though pages
  were available resulting in a panic in vm_page_alloc().


git-svn-id: svn://svn.freebsd.org/base/stable/9@251179 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 241611:
Fix aha(4) build with i386 LINT (which includes 'device mca').


git-svn-id: svn://svn.freebsd.org/base/stable/9@251182 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 246805:
Make VM_NDOMAIN a kernel option so that it can be enabled from a kernel
config file.


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

Fix warnings from newer clang versions about constexpr member functions
not being implicitly const in libc++'s <chrono> header.  The warnings
have been introduced because of new language rules recently adopted by
the C++ WG.  More info:

<http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2013/n3598.html>


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