]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
9 years agoCorrect OpenSSL 0.9.8za release date.
jkim [Mon, 9 Jun 2014 17:22:49 +0000 (17:22 +0000)]
Correct OpenSSL 0.9.8za release date.

Approved by: re (delphij)

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

9 years agoMerge OpenSSL 0.9.8za.
jkim [Mon, 9 Jun 2014 16:30:56 +0000 (16:30 +0000)]
Merge OpenSSL 0.9.8za.

Approved by: re (kib), so (delphij)

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

9 years agoMFC r267078, r267079:
emaste [Mon, 9 Jun 2014 13:53:37 +0000 (13:53 +0000)]
MFC r267078, r267079:

  Update vt(4) console font author's email address
  Remove extra copy of old email address.

Approved by: re

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

9 years agoMFC: r267191
rmacklem [Mon, 9 Jun 2014 13:52:10 +0000 (13:52 +0000)]
MFC: r267191
The new NFS server would not allow a hard link to be
created to a symlink. This restriction (which was
inherited from OpenBSD) is not required by the NFS RFCs.
Since this is allowed by the old NFS server, it is a
POLA violation to not allow it. This patch modifies the
new NFS server to allow this.

Reported by: jhb
Reviewed by: jhb
Approved by: re (kib)

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

9 years agoMFC: r267184
brueffer [Mon, 9 Jun 2014 07:00:27 +0000 (07:00 +0000)]
MFC: r267184

Add vte(4) to the hardware notes.

Approved by: re (kib)

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

9 years agoDocument r267243, ttys 'onifconsole'
gjb [Mon, 9 Jun 2014 02:33:39 +0000 (02:33 +0000)]
Document r267243, ttys 'onifconsole'

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

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

9 years agoMFC r267160:
gjb [Mon, 9 Jun 2014 02:26:41 +0000 (02:26 +0000)]
MFC r267160:
  Dereference portaudit(1), as it is now deprecated and its
  functionality exists in pkg-audit(8).

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

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

9 years agoMFC r267082:
np [Mon, 9 Jun 2014 01:39:47 +0000 (01:39 +0000)]
MFC r267082:

cxgbe(4):  Properly account for the freelist buffers used when returning
early from service_iq due to a budget restriction.  This fixes a potential
rx hang when using INTx.

Approved by: re@ (gjb)

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

9 years agoMFC r260913,266895:
nwhitehorn [Sun, 8 Jun 2014 21:21:54 +0000 (21:21 +0000)]
MFC r260913,266895:
Add a new flag to /etc/ttys: onifconsole. This is equivalent to "on" if the
device is an active kernel console and "off" otherwise. This is designed to
allow serial-booting x86 systems to provide a login prompt on the serial line
by default without providing one on all systems by default. Set this flag
on x86 systems for ttyu0.

Comments and suggestions by: grehan, dteske, jilles
Approved by: re (gjb)
Relnotes: yes

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

9 years agoMFC: r266931
brueffer [Sun, 8 Jun 2014 06:35:08 +0000 (06:35 +0000)]
MFC: r266931

Grammar cleanup; sort SEE ALSO.

Approved by: re (gjb)

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

9 years agoMFC r267067:
kib [Sat, 7 Jun 2014 03:39:12 +0000 (03:39 +0000)]
MFC r267067:
Cross-reference jot(1) and seq(1).

MFC r267098 (by pluknet):
mdoc: drop the trailing dot from the xref list.

Approved by: re (gjb)

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

9 years agoMFC r247791 (eadler):
gjb [Fri, 6 Jun 2014 12:52:44 +0000 (12:52 +0000)]
MFC r247791 (eadler):
  Modernize portions of the ports(7) manual page to
  reflect pkg(8).

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

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

9 years agoMFC r266880:
ae [Fri, 6 Jun 2014 12:45:11 +0000 (12:45 +0000)]
MFC r266880:
  Use g_conf_printf_escaped() to escape symbols, which can break
  an XML tree.

Approved by: re (gjb)

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

9 years agoUpdate stable/9 to -BETA2 as part of the 9.3-RELEASE cycle.
gjb [Fri, 6 Jun 2014 00:20:54 +0000 (00:20 +0000)]
Update stable/9 to -BETA2 as part of the 9.3-RELEASE cycle.

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

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

9 years agoMFC r266915: MFV 266913+266914:
delphij [Fri, 6 Jun 2014 00:15:54 +0000 (00:15 +0000)]
MFC r266915: MFV 266913+266914:

3897 zfs filesystem and snapshot limits (fix leak)
4901 zfs filesystem/snapshot limit leaks

Approved by: re (gjb)

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

9 years agoDocument the following security advisories:
gjb [Fri, 6 Jun 2014 00:12:21 +0000 (00:12 +0000)]
Document the following security advisories:
 - FreeBSD-SA-14:08.tcp
 - FreeBSD-SA-14:11.sendmail
 - FreeBSD-SA-14:12.ktrace
 - FreeBSD-SA-14:13.pam
 - FreeBSD-SA-14:14.openssl

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

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

9 years agoDocument r267114, newsyslog.conf(5) includes in conf.d.
gjb [Thu, 5 Jun 2014 23:58:31 +0000 (23:58 +0000)]
Document r267114, newsyslog.conf(5) includes in conf.d.

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

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

9 years agoMFH r266813: Don't break the legacy applications which set
ume [Thu, 5 Jun 2014 15:39:57 +0000 (15:39 +0000)]
MFH r266813: Don't break the legacy applications which set
just 2 bytes to salt.

Approved by: re (gjb)

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

9 years agoMFC r266463:
bdrewery [Thu, 5 Jun 2014 15:33:09 +0000 (15:33 +0000)]
MFC r266463:

  - Include /etc/newsyslog.conf.d/* and /usr/local/etc/newsyslog.conf.d/* by
    default for newsyslog(8).

Relnotes: yes
Approved by: re (gjb)

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

9 years agoMFC r240938, r240942: Avoid INVARIANTS panic destroying an in-use tap(4)
emaste [Thu, 5 Jun 2014 15:18:49 +0000 (15:18 +0000)]
MFC r240938, r240942: Avoid INVARIANTS panic destroying an in-use tap(4)

  The requirement (implied by the KASSERT in tap_destroy) that the tap is
  closed isn't valid; destroy_dev will block in devdrn while other threads
  are in d_* functions.

  Note: if_tun had the same issue, addressed in SVN revisions r186391,
  r186483 and r186497.  The use of the condvar there appears to be
  redundant with the functionality provided by destroy_dev.

PR: 172075
Approved by: re

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

9 years agoFix OpenSSL multiple vulnerabilities.
delphij [Thu, 5 Jun 2014 12:53:06 +0000 (12:53 +0000)]
Fix OpenSSL multiple vulnerabilities.

Security: CVE-2014-0195, CVE-2014-0221, CVE-2014-0224,
CVE-2014-3470
Security: SA-14:14.openssl
Approved by: re (jpaetzel)

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

9 years agoMFC: r255781
marius [Thu, 5 Jun 2014 12:27:14 +0000 (12:27 +0000)]
MFC: r255781

Fix compilation of the i386 PAE kernel config. For stable/9, this also
fixes the compilation of xenhvm.ko in the latter case.

Approved by: re (delphij)

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

9 years agoMFC r266538:
mav [Thu, 5 Jun 2014 05:58:54 +0000 (05:58 +0000)]
MFC r266538:
Make ng_mppc to not disable the node in case of multiple packet loss.
Quite often it can be just packet reorder, and killing link in such case
is inconvenient.  Add few sysctl's to control that behavior.

PR: kern/182212
Submitted by: Eugene Grosbein <egrosbein@rdtc.ru>
Approved by: re (glebius)

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

9 years agoMFC r266828:
wblock [Thu, 5 Jun 2014 01:52:20 +0000 (01:52 +0000)]
MFC r266828:

Correct the description of characters allowed.  Based on pw_checkname in
usr.sbin/pw/pw_user.c.  Modified version of patch submitted by
venture37.

Approved by: re (gjb)

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

9 years agoMFC r266846:
kib [Thu, 5 Jun 2014 01:00:27 +0000 (01:00 +0000)]
MFC r266846:
When usermode loaded non-default segment selector into the %gs,
correctly prepare KGSBASE msr to restore the user descriptor base on
the last swapgs during return to usermode.

Approved by: re (gjb)

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

9 years agoMFC r239133 (by jimharris):
mav [Wed, 4 Jun 2014 18:58:32 +0000 (18:58 +0000)]
MFC r239133 (by jimharris):
During TSC synchronization test, use rdtsc() rather than rdtsc32(), to
protect against 32-bit TSC overflow while the sync test is running.

On dual-socket Xeon E5-2600 (SNB) systems with up to 32 threads, there
is non-trivial chance (2-3%) that TSC synchronization test fails due to
32-bit TSC overflow while the synchronization test is running.

Approved by: re (delphij)

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

9 years agoMFC 266281:
jhb [Wed, 4 Jun 2014 18:32:41 +0000 (18:32 +0000)]
MFC 266281:
Clear the data buffer length field when freeing a command structure so that
it doesn't leak through when the command structure is reused for a user
command without a data buffer.

PR: 189668
Approved by: re (delphij)

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

9 years agoMFC: r266793, r266799, r266808
marius [Wed, 4 Jun 2014 15:05:24 +0000 (15:05 +0000)]
MFC: r266793, r266799, r266808

- Fix compilation with PAE support enabled by merging r233362 and, thus,
  doing away with the unnecessary uint8_t pointer casting.
  physical addresses.
- Nuke the unused softc of emujoy(4).
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

Sponsored by: Bally Wulff Games & Entertainment GmbH
Approved by: re (gjb)

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

9 years agoMFC: r266792
marius [Wed, 4 Jun 2014 15:04:36 +0000 (15:04 +0000)]
MFC: r266792

Fix DMA handling in radeon_dummy_page_init():
- Based on actual usage and on what Linux does, dummy_page.addr should
  contain the physical bus address of the dummy page rather than its
  virtual one. As a side-effect, correcting this bug fixes compilation
  with PAE support enabled by getting rid of an inappropriate cast.
- Also based on actual usage of dummy_page.addr, theoretically Radeon
  devices could do a maximum of 44-bit DMA. In reality, though, it is
  more likely that they only support 32-bit DMA, at least that is what
  radeon_gart_table_ram_alloc() sets up for, too. However, passing ~0
  to drm_pci_alloc() as maxaddr parameter translates to 64-bit DMA on
  amd64/64-bit machines. Thus, use BUS_SPACE_MAXSIZE_32BIT instead,
  which the existing 32-bit DMA limits within the drm2 code spelled as
  0xFFFFFFFF should also be changed to.

Reviewed by: dumbbell
Approved by: re (gjb)
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC r266664:
hselasky [Wed, 4 Jun 2014 13:42:19 +0000 (13:42 +0000)]
MFC r266664:
Add empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-API
from sourceforge.

PR: usb/190204
Approved by: re, gjb @

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

9 years agoMFC r266798 and r266803:
hselasky [Wed, 4 Jun 2014 12:26:53 +0000 (12:26 +0000)]
MFC r266798 and r266803:
Fix for big-endian architectures.

Approved by:    re, marius @

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

9 years agoMFC: r266709
brueffer [Tue, 3 Jun 2014 19:45:08 +0000 (19:45 +0000)]
MFC: r266709

Language cleanup.

Reviewed by: mav, bcr, wblock
Approved by: re (gjb)

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

9 years agoFix ktrace kernel memory disclosure. [SA-14:12]
delphij [Tue, 3 Jun 2014 19:02:33 +0000 (19:02 +0000)]
Fix ktrace kernel memory disclosure. [SA-14:12]

Fix incorrect error handling in PAM policy parser. [SA-14:13]

Approved by: re (glebius)

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

9 years agoMFC r266924:
dchagin [Tue, 3 Jun 2014 08:08:12 +0000 (08:08 +0000)]
MFC r266924:

Glibc was switched to the FUTEX_WAIT_BITSET op and CLOCK_REALTIME
flag has been added instead of FUTEX_WAIT to replace the FUTEX_WAIT
logic which needs to do gettimeofday() calls before the futex syscall
to convert the absolute timeout to a relative timeout.
Before this the CLOCK_MONOTONIC used by the FUTEX_WAIT_BITSET op.

When the FUTEX_CLOCK_REALTIME is specified the timeout is an absolute
time, not a relative time. Rework futex_wait to handle this.
On the side fix the futex leak in error case and remove      useless
parentheses.

Properly calculate the timeout for the CLOCK_MONOTONIC case.

Tested by:      Hans Petter Selasky

Approved by: re (glebius)

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

9 years agoMFC r266285,266866:
bjk [Mon, 2 Jun 2014 20:23:41 +0000 (20:23 +0000)]
MFC r266285,266866:

    ------------------------------------------------------------------------
    r266285 | bjk | 2014-05-16 23:05:52 -0400 (Fri, 16 May 2014) | 9 lines

    Correct documentation of the limit on how much memory can be mlock()ed

    vm.max_wired is a system-wide limit, not per-process.  Reword the
    section to make this more clear.

    PR:             docs/189214
    Submitted by:   Lawrence Chen (original text)
    Approved by:    hrs (mentor)

    ------------------------------------------------------------------------
    r266866 | bjk | 2014-05-29 22:16:28 -0400 (Thu, 29 May 2014) | 5 lines

    Minor mdoc fix

    Submitted by:   hrs
    Approved by:    hrs (mentor, implicit)

    ------------------------------------------------------------------------

PR: 189214
Approved by: re (gjb), hrs (mentor)

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

9 years agoMFC r266782:
dchagin [Mon, 2 Jun 2014 19:28:11 +0000 (19:28 +0000)]
MFC r266782:

In r218101 I have not changed properly the futex syscall definition.
Some Linux futex ops atomically verifies that the futex address uaddr
(uval) contains the value val. Comparing signed uval and unsigned val
may lead to an unexpected result, mostly to a deadlock.

So copyin uaddr to an unsigned int to compare the parameters correctly.

While here change ktr records to print parameters in more readable format.

Approved by: re (glebius)

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

9 years agoMFC r266908:
np [Mon, 2 Jun 2014 17:34:08 +0000 (17:34 +0000)]
MFC r266908:

cxgbe(4): Fix a NULL dereference when the very first call to
get_scatter_segment() in get_fl_payload() fails.  While here,
fix the code to adjust fl_bufs_used when a failure occurs for
any other scatter segment.

Approved by: re (glebius)

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

9 years agoUpdate stable/9 to -BETA1 for the first batch of 9.3-RELEASE
gjb [Fri, 30 May 2014 00:12:25 +0000 (00:12 +0000)]
Update stable/9 to -BETA1 for the first batch of 9.3-RELEASE
builds.

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

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

9 years agoDocument r266818, default Blowfish crypt(3) format have been
gjb [Thu, 29 May 2014 15:46:57 +0000 (15:46 +0000)]
Document r266818, default Blowfish crypt(3) format have been
changed to $2b$.

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

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

9 years agoMFC r265995:
delphij [Wed, 28 May 2014 19:05:46 +0000 (19:05 +0000)]
MFC r265995:

Switch using the new $2b$ format by default, when bcrypt is used.

Relnotes: default Blowfish crypt(3) format have been changed to $2b$.
Approved by: re (gjb)

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

9 years agoMFC r266674:
dim [Wed, 28 May 2014 17:44:37 +0000 (17:44 +0000)]
MFC r266674:

Pull in r209489 from upstream clang trunk (by Akira Hatanaka):

  Fix a bug in xmmintrin.h.

  The last step of _mm_cvtps_pi16 should use _mm_packs_pi32, which is a function
  that reads two __m64 values and packs four 32-bit values into four 16-bit
  values.

  <rdar://problem/16873717>

Approved by: re (glebius)

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

9 years agoMFC: r266483
marck [Wed, 28 May 2014 15:19:45 +0000 (15:19 +0000)]
MFC: r266483

Document VMware-related filesystems additions.

Reviewed by: jmg
Approved by: re (glebius)

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

9 years agoMFC r266547
wblock [Tue, 27 May 2014 19:37:18 +0000 (19:37 +0000)]
MFC r266547

Don't delete our new vt(4) man page.

Approved by: re@ (delphij)

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

9 years agoMFC r266520:
delphij [Tue, 27 May 2014 18:54:45 +0000 (18:54 +0000)]
MFC r266520:

Explicitly link libzfs against libavl as it is done in OpenSolaris
(4543:12bb2876a62e).  Without this, some third party applications
may break because the lack of AVL related symbols.

FreeBSD base system are not affected because the FreeBSD ZFS command
line tools were all linked against libavl and thus hide the underlying
issue.

PR: bin/183081
Approved by: re (gjb)

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

9 years agoMFC r265925:
dim [Tue, 27 May 2014 18:27:51 +0000 (18:27 +0000)]
MFC r265925:

Upgrade our copy of llvm/clang to 3.4.1 release.  This release contains
mostly fixes, for the following upstream bugs:

http://llvm.org/PR16365 http://llvm.org/PR17473 http://llvm.org/PR18000
http://llvm.org/PR18068 http://llvm.org/PR18102 http://llvm.org/PR18165
http://llvm.org/PR18260 http://llvm.org/PR18290 http://llvm.org/PR18316
http://llvm.org/PR18460 http://llvm.org/PR18473 http://llvm.org/PR18515
http://llvm.org/PR18526 http://llvm.org/PR18600 http://llvm.org/PR18762
http://llvm.org/PR18773 http://llvm.org/PR18860 http://llvm.org/PR18994
http://llvm.org/PR19007 http://llvm.org/PR19010 http://llvm.org/PR19033
http://llvm.org/PR19059 http://llvm.org/PR19144 http://llvm.org/PR19326

Approved by: re (kib)

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

9 years agoMFC: r259428
marius [Tue, 27 May 2014 15:30:06 +0000 (15:30 +0000)]
MFC: r259428

Clear content of keyfiles loaded by the loader after processing them.

MFC: r259429

Clear some more places with potentially sensitive data.

Approved by: re (gjb)

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

9 years agoNote merge for sendmail 8.14.9.
gshapiro [Mon, 26 May 2014 20:14:36 +0000 (20:14 +0000)]
Note merge for sendmail 8.14.9.

Approved by: re (delphij)

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

9 years agoMFC: Minor changes to force commit these files so new freebsd*.cf
gshapiro [Mon, 26 May 2014 20:13:13 +0000 (20:13 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf
files are built to use the new sendmail-8.14.9/cf tree.

Approved by: re (delphij)

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

9 years agoMFC: Update for sendmail 8.14.9 import
gshapiro [Mon, 26 May 2014 20:11:31 +0000 (20:11 +0000)]
MFC: Update for sendmail 8.14.9 import

Approved by: re (delphij)

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

9 years agoMFC: Merge sendmail 8.14.9
gshapiro [Mon, 26 May 2014 20:10:00 +0000 (20:10 +0000)]
MFC: Merge sendmail 8.14.9

Approved by: re (delphij)

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

9 years agoMFC r266399:
ae [Mon, 26 May 2014 08:22:34 +0000 (08:22 +0000)]
MFC r266399:
  Since ipfw nat configures all options in one step, we should set all bits
  in the mask when calling LibAliasSetMode() to properly clear unneeded
  options.

  PR: 189655
Approved by: re (marius)

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

9 years agoMFC r265798, r265815, r266091
wblock [Sun, 25 May 2014 18:20:50 +0000 (18:20 +0000)]
MFC r265798, r265815, r266091

Add a man page for the new vt.4 device.

Approved by: re@ (gjb)

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

9 years agoMFC r266541:
hselasky [Sun, 25 May 2014 18:15:37 +0000 (18:15 +0000)]
MFC r266541:

- Fix a bug where the TLBPC value was forced to being odd for IN
direction isochronous transfers.
- Remove setting of fields which does not belong to the respective
TRBs. These fields are currently set as zero and this is more a
cosmetic change.

Approved by:    re

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

9 years agoMFC r266553, r266554:
gjb [Sun, 25 May 2014 18:07:23 +0000 (18:07 +0000)]
MFC r266553, r266554:

r266553:
  Add forward-compatibility glue with pkg-1.3:
   - Use ASSUME_ALWAYS_YES=YES instead of ASSUME_ALWAYS_YES=1
     since pkg-1.3 expects "yes" or "true" values.
   - Before exporting PKG_ABI, strip extra characters from what
     is parsed from 'pkg -vv'.  This causes problems further down
     when creating the packages directory for inclusion on the
     dvd1.iso.  Previously PKG_ABI would be 'freebsd:9:x86:64',
     but now is '"freebsd:9:x86:64";' in pkg-1.3.

r266554:
  Disable the main FreeBSD pkg(7) repositories in the dvd
  repository configuration to avoid fetching from upstream
  in case there may be conflicts.

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

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

9 years agoMFC r266411:
kib [Sun, 25 May 2014 17:02:40 +0000 (17:02 +0000)]
MFC r266411:
Fix LD_LIBMAP.

Approved by: re (gjb)

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

9 years agoMFH (r241737): staticize option variables
des [Sun, 25 May 2014 16:21:12 +0000 (16:21 +0000)]
MFH (r241737): staticize option variables
MFH (r253804): credit Michael Gmelin for SSL code
MFH (r251262): fix inode check for file change detection
MFH (r261233): bump copyright dates
MFH (r261234): increase minimum buffer size

Approved by: re (gjb)

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

9 years agoMFH (r260904): fix format string
des [Sun, 25 May 2014 16:20:53 +0000 (16:20 +0000)]
MFH (r260904): fix format string
MFH (r261230,r261263): fix issues with buffering / stalling
MFH (r261284): bump copyright dates
MFH (r266291): look for root certs in /usr/local first

Approved by: re (gjb)

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

9 years agoMFC r266464:
kib [Fri, 23 May 2014 11:56:32 +0000 (11:56 +0000)]
MFC r266464:
In execve(2), postpone the free of old vmspace until the threads are resumed
and exited.

Approved by: re (marius)

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

9 years agoUpdate clang target triple for FreeBSD 9.3-PRERELEASE.
gjb [Thu, 22 May 2014 23:14:40 +0000 (23:14 +0000)]
Update clang target triple for FreeBSD 9.3-PRERELEASE.

This is a direct commit to stable/9.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r266297: Update example portion of comment to coincide with r264840
dteske [Thu, 22 May 2014 22:06:51 +0000 (22:06 +0000)]
MFC r266297: Update example portion of comment to coincide with r264840

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

9 years agoMerge r266261 from head:
gavin [Thu, 22 May 2014 21:10:16 +0000 (21:10 +0000)]
Merge r266261 from head:

  USB endpoints are almost always single-digits, fix the path in the man
  page to be clearer.

PR: docs/175560
Submitted by: Andreas Gustafsson <gson gson.org>

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

9 years agoMerge r266111 from head:
gavin [Thu, 22 May 2014 20:59:38 +0000 (20:59 +0000)]
Merge r266111 from head:

  Fix typo.  Note that although this file is under contrib, it has diverged
  sufficiently from upstream (including a full whitespace commit and large
  portions rewritten) that this change does not move us further from the
  upstream.

PR: docs/186608
Submitted by: Jamie Landeg-Jones <jamie@dyslexicfish.net>

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

9 years agoMFC mpr(4) changes: r265484, r265485, r265709 and r265712
ken [Thu, 22 May 2014 16:36:01 +0000 (16:36 +0000)]
MFC mpr(4) changes: r265484, r265485, r265709 and r265712

  ------------------------------------------------------------------------
  r265484 | ken | 2014-05-06 23:11:16 -0600 (Tue, 06 May 2014) | 5 lines

  Remove some debugging code.

  Submitted by: Steve McConnell <stephen.mcconnell@avagotech.com>

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265485 | ken | 2014-05-06 23:14:48 -0600 (Tue, 06 May 2014) | 9 lines

  Hold the SIM lock when calling xpt_create_path() and xpt_action() in
  mprsas_SSU_to_SATA_devices().

  This fixes an assertion on shutdown with INVARIANTS enabled with SATA
  drives present on an IR firmware controller.

  Reviewed by: Steve McConnell <stephen.mcconnell@avagotech.com>.

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265709 | ken | 2014-05-08 14:28:22 -0600 (Thu, 08 May 2014) | 15 lines

  Fix TLR (Transport Layer Retry) support in the mps(4) and mpr(4) drivers.

  TLR is necessary for reliable communication with SAS tape drives.

  This was broken by change 246713 in the mps(4) driver.  It changed the
  cm_data field for SCSI I/O requests to point to the CCB instead of the data
  buffer.  So, instead, look at the CCB's data pointer to determine whether
  or not we're talking to a tape drive.

  Also, take the residual into account to make sure that we don't go off the
  end of the request.

  Sponsored by: Spectra Logic Corporation

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265712 | ken | 2014-05-08 14:46:46 -0600 (Thu, 08 May 2014) | 10 lines

  Add #ifdefs in the mpr(4) driver so that versions of stable/9 that
  have implemented the PIM_NOSCAN rescan functionality will have it
  enabled.

  This is a no-op for head.

  Reviewed by: slm
  Sponsored by: Spectra Logic Corporation

  ------------------------------------------------------------------------

Sponsored by: Spectra Logic, Avago

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

9 years agoMFC r266426
truckman [Thu, 22 May 2014 00:44:14 +0000 (00:44 +0000)]
MFC r266426

Slightly restructure the final loop in rman_reserve_resource_bound().
Replace with the existing loop termination test with a similar
condition from the nested "if" that may terminate the loop a bit
sooner, but still not too early.   This condition can then be removed
from the nested "if".  Relocate an operator to be style(9) compliant.

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

9 years agoMFC r253639:
hselasky [Wed, 21 May 2014 17:02:21 +0000 (17:02 +0000)]
MFC r253639:
Add ieee80211_add_{qos,wpa,rsn}() functions since they are needed by an
OpenBSD driver that is being ported to FreeBSD.

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

9 years agoMFC r265534:
pho [Wed, 21 May 2014 15:17:22 +0000 (15:17 +0000)]
MFC r265534:

msync(2) must return ENOMEM and not EINVAL when the address is outside the
allowed range or when one or more pages are not mapped. This according to
The Open Group Base Specifications Issue 7.

Sponsored by: EMC / Isilon storage division

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

9 years agoMFC rev. 265593:
thomas [Wed, 21 May 2014 07:42:42 +0000 (07:42 +0000)]
MFC rev. 265593:
(dd_out): Fix handling of all-zeroes block at end of input with
conv=sparse.

PR: bin/189174
PR: bin/189284
Reviewed by: kib

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

9 years agoMFC r266006 and r266011:
hselasky [Wed, 21 May 2014 06:31:44 +0000 (06:31 +0000)]
MFC r266006 and r266011:
Fix unload of USB audio kernel module.

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

9 years agoDocument r266286 and r266287, '-J' flag to ps(1), and
gjb [Tue, 20 May 2014 01:17:59 +0000 (01:17 +0000)]
Document r266286 and r266287, '-J' flag to ps(1), and
corresponding top(1) change.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r265465:
delphij [Tue, 20 May 2014 00:57:28 +0000 (00:57 +0000)]
MFC r265465:

Don't reply monlist request when it's not enabled.

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

9 years agoMFC r266195:
markj [Mon, 19 May 2014 19:54:21 +0000 (19:54 +0000)]
MFC r266195:

Remove some prototypes for undefined functions.

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

9 years agoMFC: r227809
rmacklem [Mon, 19 May 2014 16:15:27 +0000 (16:15 +0000)]
MFC: r227809
This patch enables the new/default NFS server's use of shared
vnode locking for read, readdir, readlink, getattr and access.
It is hoped that this will improve server performance for these
operations, since they will no longer be serialized for a given
file/vnode.

PR: 167048

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

9 years agoMFC rev. 265926:
thomas [Mon, 19 May 2014 11:17:44 +0000 (11:17 +0000)]
MFC rev. 265926:
(NANO_CONFIG): New variable containing path of config file, so that
the configuration can reference additional files relative to its own
location.

(NANO_MODULES): If set to "default", install all built modules.

Also update mergeinfo for past MFC of rev. 265260.

Reviewed by: imp

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

9 years agoMFC: r259838
marius [Mon, 19 May 2014 09:31:46 +0000 (09:31 +0000)]
MFC: r259838

Add another HP iLO serial (console) port, found on Itanium servers.

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

9 years agoMFC: r257808
marius [Mon, 19 May 2014 09:30:05 +0000 (09:30 +0000)]
MFC: r257808

Add new AMT serial port PCI ID on Intel Lynx Point chipset

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

9 years agoMFC: r253654
marius [Mon, 19 May 2014 09:26:32 +0000 (09:26 +0000)]
MFC: r253654

Set the device description after we call uart_probe(). In uart_probe()
we call device-specific probe functions, which can (and typically will)
set the device description based on low-level device probe information.
In the end we never actually used the device description that we so
carefully maintained in the PCI match table. By setting the device
description after we call uart_probe(), we'll print the more user-
friendly description by default.

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

9 years agoMFC r265931
truckman [Mon, 19 May 2014 07:49:13 +0000 (07:49 +0000)]
MFC r265931

Be even more paranoid about overflow.

Requested by: ache

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

9 years agoNuke a couple of unnecessary assigments. Nothing uses the values of rstart
truckman [Mon, 19 May 2014 07:45:46 +0000 (07:45 +0000)]
Nuke a couple of unnecessary assigments.  Nothing uses the values of rstart
and rend after this point.

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

9 years agoMFC 264765,264766:
jhb [Sun, 18 May 2014 15:29:00 +0000 (15:29 +0000)]
MFC 264765,264766:
- Don't claim the adapter is idle if it is clearing a drive.
- Fix an off by one error when checking for the stop event.  This
  resulted in not showing the most recent event by default.
- When the stop even is hit, break out of the outer loop to stop
  fetching more events.

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

9 years agoMFC 260377:
jhb [Sun, 18 May 2014 14:18:23 +0000 (14:18 +0000)]
MFC 260377:
When pf_get_translation() fails, it should leave *sn pointer pristine,
otherwise we will panic in pf_test_rule().

PR: amd64/189741
Tested by: Nick Rogers <ncrogers@gmail.com>

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

9 years agoReword r266269 text, based on feedback from cperciva.
gjb [Sat, 17 May 2014 19:59:46 +0000 (19:59 +0000)]
Reword r266269 text, based on feedback from cperciva.
Mention the kld module name.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r266269, xenhvm.ko.
gjb [Sat, 17 May 2014 19:45:58 +0000 (19:45 +0000)]
Document r266269, xenhvm.ko.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r266167, power management bug with Intel Turbo Boost.
gjb [Sat, 17 May 2014 19:45:55 +0000 (19:45 +0000)]
Document r266167, power management bug with Intel Turbo Boost.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r265847:
kib [Sat, 17 May 2014 16:29:39 +0000 (16:29 +0000)]
MFC r265847:
Fix sem_unlink(3) to properly invalidate the semaphores name cache.

PR: standards/189353

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

9 years agoMFC r246894 (by davidxu):
kib [Sat, 17 May 2014 16:28:29 +0000 (16:28 +0000)]
MFC r246894 (by davidxu):
Make more code be protected by internal mutex.

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

9 years agoMFC r246872 (by davidxu):
kib [Sat, 17 May 2014 16:26:59 +0000 (16:26 +0000)]
MFC r246872 (by davidxu):

Simplify code by using flag O_EXLOCK.

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

9 years agoMFC r265845:
kib [Sat, 17 May 2014 16:22:25 +0000 (16:22 +0000)]
MFC r265845:
Style.

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

9 years agoMFC r228162:
cperciva [Sat, 17 May 2014 16:00:25 +0000 (16:00 +0000)]
MFC r228162:
  Use C99 initializers for members of evtchn_devsw.

Submitted by: wolfskill

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

9 years agoMFC r266053:
dim [Sat, 17 May 2014 12:47:11 +0000 (12:47 +0000)]
MFC r266053:

Use the new -d option that was added to tblgen between llvm/clang 3.3
and 3.4 to generate dependency files for the '.inc.h' files generated
from .td files, and .sinclude those dependency files in clang.build.mk.

This will make future incremental builds of lib/clang and usr.bin/clang
work correctly, whenever any of the .td files get modified.

Note that this will not fix any problems with incremental builds from
*before* this revision, since there will not yet be any generated
dependency files.  A quick workaround is to run the following:

  find /usr/obj -type f -name '*.inc.h' | xargs rm

and then a regular incremental buildworld (e.g. with -DNO_CLEAN).

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

9 years agoMFC r265824:
kib [Sat, 17 May 2014 11:26:54 +0000 (11:26 +0000)]
MFC r265824:
Print the entry address in addition to the object.

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

9 years agoMFC r264841: Update zfsboot to coincide with MFC of r264840
dteske [Sat, 17 May 2014 04:00:18 +0000 (04:00 +0000)]
MFC r264841: Update zfsboot to coincide with MFC of r264840
adding GEOM support.

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

9 years agoMFC r264840: Implement GEOM based media device classification.
dteske [Sat, 17 May 2014 03:49:29 +0000 (03:49 +0000)]
MFC r264840: Implement GEOM based media device classification.

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

9 years agoMFC r265267:
bdrewery [Sat, 17 May 2014 03:28:27 +0000 (03:28 +0000)]
MFC r265267:

  Fix width/alignment of JID column. Make it support up to the maximum 7-wide
  JIDs. On a system using jails for common tasks the JID can quickly increase.

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

9 years agoMFC r251630:
bdrewery [Sat, 17 May 2014 03:27:31 +0000 (03:27 +0000)]
MFC r251630:

  Bump the CPU/WCPU column width by one so that it fits values from 100% up to
  999.99% CPU.

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

9 years agoMFC r265249,r265250,r265251:
bdrewery [Sat, 17 May 2014 03:23:45 +0000 (03:23 +0000)]
MFC r265249,r265250,r265251:

    - Add -J command/flag to filter by jail name/jid. This will automatically
      display the JID as well (the -j command/flag).
    - Add a hint for 'u' and 'J' command that '+' displays all.
    - Add J command to help.

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

9 years agoMFC r265229,r265239:
bdrewery [Sat, 17 May 2014 03:21:50 +0000 (03:21 +0000)]
MFC r265229,r265239:

    Add -J to filter by matching jail IDs and names.

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

9 years agoAdd xenhvm.ko, which can be loaded along with a !XENHVM kernel in order to
cperciva [Fri, 16 May 2014 19:28:22 +0000 (19:28 +0000)]
Add xenhvm.ko, which can be loaded along with a !XENHVM kernel in order to
provide support for the Xen/HVM environment.

This code is compiled with XENHVM defined; since this would result in the
(no longer used) "last processed" values being included in PCPU data
structures, an additional MODXENHVM define is used to exclude those.  This
allows KBI to be retained for both GENERIC and XENHVM kernel configurations
(which are not KBI compatible with each other).

This is a direct commit to stable/9, since stable/10 and HEAD have XENHVM
merged into the GENERIC kernel configuration (but the changes in stable/10
and HEAD cannot be MFCed as-is).

Discussed with: royger, gjb
Relnotes: FreeBSD 9.3-RELEASE can run in Xen/HVM environments,
including Amazon EC2, using GENERIC + xenhvm.ko.

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

9 years agoChange Xen event channel "last processed" values from per-CPU to global.
cperciva [Fri, 16 May 2014 19:15:03 +0000 (19:15 +0000)]
Change Xen event channel "last processed" values from per-CPU to global.
In FreeBSD 9.x we only run this code on (virtual) CPU #0, so there is no
need for these to be per-CPU values.  Retain the values in the per-CPU
data structure (when compiled with options XENHVM) for KBI compatibility.

This is a direct commit to stable/9, since the relevant code has been
substantially changed (in ways which cannot be easily MFCed) in HEAD and
stable/10.

Submitted by: royger (earlier version)

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

9 years agoMFC r265779:
hselasky [Fri, 16 May 2014 16:14:37 +0000 (16:14 +0000)]
MFC r265779:
Fix for NULL pointer.

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

9 years agoMFC: r265585
brueffer [Fri, 16 May 2014 16:07:21 +0000 (16:07 +0000)]
MFC: r265585

Generate hardware notes for mrsas(4).

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