]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMerge svn-1.8.8 -> 1.8.9
peter [Tue, 27 May 2014 04:59:53 +0000 (04:59 +0000)]
Merge svn-1.8.8 -> 1.8.9

10 years agoUpdate serf 1.3.4 -> 1.3.5
peter [Tue, 27 May 2014 04:52:32 +0000 (04:52 +0000)]
Update serf 1.3.4 -> 1.3.5

10 years agoEmphasis on 'do not' and 'complement' in the strcspn(3)
allanjude [Tue, 27 May 2014 04:30:56 +0000 (04:30 +0000)]
Emphasis on 'do not' and 'complement' in the strcspn(3)
Replace literal parentheses with .Po/.Pc

Approved by: wblock (mentor)

10 years agoAdd segment protection and limits violation checks in vie_calculate_gla()
neel [Tue, 27 May 2014 04:26:22 +0000 (04:26 +0000)]
Add segment protection and limits violation checks in vie_calculate_gla()
for 32-bit x86 guests.

Tested using ins/outs executed in a FreeBSD/i386 guest.

10 years agoGarbage-collect a couple of unused identifiers.
markj [Tue, 27 May 2014 02:00:43 +0000 (02:00 +0000)]
Garbage-collect a couple of unused identifiers.

MFC after: 3 days

10 years agoRemove r264317 by accident.
kevlo [Tue, 27 May 2014 01:47:23 +0000 (01:47 +0000)]
Remove r264317 by accident.

Spotted by: Kuan-Chung Chiu

10 years agoLanguage cleanup.
brueffer [Mon, 26 May 2014 19:02:34 +0000 (19:02 +0000)]
Language cleanup.

Reviewed by: mav, bcr, wblock
MFC after: 1 week

10 years agoFix issue with restarting an "insb/insw/insl" instruction because of a page
neel [Mon, 26 May 2014 18:21:08 +0000 (18:21 +0000)]
Fix issue with restarting an "insb/insw/insl" instruction because of a page
fault on the destination buffer.

Prior to this change a page fault would be detected in vm_copyout(). This
was done after the I/O port access was done. If the I/O port access had
side-effects (e.g. reading the uart FIFO) then restarting the instruction
would result in incorrect behavior.

Fix this by validating the guest linear address before doing the I/O port
emulation. If the validation results in a page fault exception being injected
into the guest then the instruction can now be restarted without any
side-effects.

10 years agoRework the Ti GPIO driver to work on multiple SoCs. At the moment it could
andrew [Mon, 26 May 2014 18:02:36 +0000 (18:02 +0000)]
Rework the Ti GPIO driver to work on multiple SoCs. At the moment it could
work with OMAP4 and AM335x without needing to recompile.

Reviewed by: loos

10 years agoNote proper revision number for sendmail 8.14.9 merge.
gshapiro [Mon, 26 May 2014 15:54:31 +0000 (15:54 +0000)]
Note proper revision number for sendmail 8.14.9 merge.

10 years agoprintf(1): add tests for warn about incomplete uses n$
pfg [Mon, 26 May 2014 15:08:39 +0000 (15:08 +0000)]
printf(1): add tests for  warn about incomplete uses n$

Submitted by: jilles
MFC after: 2 weeks

10 years agoprintf(1): warn about incomplete uses n$
pfg [Mon, 26 May 2014 14:57:47 +0000 (14:57 +0000)]
printf(1): warn about incomplete uses n$

Reviewed by: jilles
Obtained from: Illumos
MFC after: 2 weeks

10 years agoe1000: add missing braces
eadler [Mon, 26 May 2014 02:19:50 +0000 (02:19 +0000)]
e1000: add missing braces

Obtained from: DragonFlyBSD

10 years agoAdd the clang patch for r266674.
dim [Sun, 25 May 2014 19:28:34 +0000 (19:28 +0000)]
Add the clang patch for r266674.

10 years agoPull in r209489 from upstream clang trunk (by Akira Hatanaka):
dim [Sun, 25 May 2014 19:22:28 +0000 (19:22 +0000)]
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>

MFC after: 3 days

10 years agoDelete obsolete and unused PJ4B CPU functions
zbb [Sun, 25 May 2014 19:19:41 +0000 (19:19 +0000)]
Delete obsolete and unused PJ4B CPU functions

Since PJ4Bv7 uses armv7_ CPU functions only pj4b_config
function is necessary. Remove obsolete routines.

10 years agoFix context switch on PJ4Bv7 and remove obsolete pj4b_/arm11 functions
zbb [Sun, 25 May 2014 18:47:24 +0000 (18:47 +0000)]
Fix context switch on PJ4Bv7 and remove obsolete pj4b_/arm11 functions

Use armv7_setttb that sets proper PT attributes.
Get rid of unused CPU functions, put nullop instead.
Exchange obsolete pj4b_/arm11_ functions to the appropriate armv7_ ones.

10 years agoMerge strcspn.3 into strspn.3 and clarify the explaination of what they do
allanjude [Sun, 25 May 2014 18:40:32 +0000 (18:40 +0000)]
Merge strcspn.3 into strspn.3 and clarify the explaination of what they do
Detach strcspn.3 from the build
Add strcspn.3 to MLINKS do it will be symlinked to strspn.3

Approved by: eadler (mentor), bcr (mentor)

10 years agoAdd empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-API
hselasky [Sun, 25 May 2014 18:06:32 +0000 (18:06 +0000)]
Add empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-API
from sourceforge.

PR: usb/190204
MFC after: 1 week

10 years agoFix whitespace glitches.
ian [Sun, 25 May 2014 14:01:30 +0000 (14:01 +0000)]
Fix whitespace glitches.

Pointed out by: jhb

10 years agoChange libatf-c and libatf-c++ to be private libraries.
jmmv [Sun, 25 May 2014 12:01:13 +0000 (12:01 +0000)]
Change libatf-c and libatf-c++ to be private libraries.

We should not be leaking these interfaces to the outside world given
that it's much easier for third-party components to use the devel/atf
package from ports.

As a side-effect, we can also drop the ATF pkgconfig and aclocal files
from the base system.  Nothing in the base system needs these, and it
was quite ugly to have to get them installed only so that a few ports
could build.  The offending ports have been fixed to depend on
devel/atf explicitly.

Reviewed by: bapt

10 years agoMake ti_padconf_devmap static in both places it is defined.
andrew [Sun, 25 May 2014 10:56:45 +0000 (10:56 +0000)]
Make ti_padconf_devmap static in both places it is defined.

10 years agoAllow the OMAP4 and AM335x prcm drivers to be compiled in the same kernel
andrew [Sun, 25 May 2014 10:49:07 +0000 (10:49 +0000)]
Allow the OMAP4 and AM335x prcm drivers to be compiled in the same kernel
by renaming the structures used.

10 years agoReduce the diff between the PandaBoard and BeableBone kernel configs to
andrew [Sun, 25 May 2014 10:17:26 +0000 (10:17 +0000)]
Reduce the diff between the PandaBoard and BeableBone kernel configs to
help with the creation of a more generic Ti kernel config.

10 years agoAdd path markup on sys/mbuf.h to previous netstat(1) man page update
allanjude [Sun, 25 May 2014 08:09:55 +0000 (08:09 +0000)]
Add path markup on sys/mbuf.h to previous netstat(1) man page update

Submitted by: brueffer
Reviewed by: eadler (mentor)

10 years agoDocument the new -R flag of netstat(1) introduced in r266448 that tracks the
allanjude [Sun, 25 May 2014 07:41:12 +0000 (07:41 +0000)]
Document the new -R flag of netstat(1) introduced in r266448 that tracks the
flowid for each socket.

Reviewed by: adrian
Approved by: eadler (mentor)

10 years agoMake SAF1761 driver endian safe.
hselasky [Sun, 25 May 2014 06:42:43 +0000 (06:42 +0000)]
Make SAF1761 driver endian safe.

Sponsored by: DARPA, AFRL

10 years agoDocument taskqueue_start_threads_pinned
bjk [Sun, 25 May 2014 02:45:26 +0000 (02:45 +0000)]
Document taskqueue_start_threads_pinned

Requested by: adrian
Reviewed by: adrian
Approved by: hrs (mentor)
X-MFC-with: r266629

10 years agoRemove restriction on insb/insw/insl emulation. These instructions are
neel [Sun, 25 May 2014 02:05:23 +0000 (02:05 +0000)]
Remove restriction on insb/insw/insl emulation. These instructions are
properly emulated.

10 years agoDo the linear address calculation for the ins/outs emulation using a new
neel [Sun, 25 May 2014 00:57:24 +0000 (00:57 +0000)]
Do the linear address calculation for the ins/outs emulation using a new
API function 'vie_calculate_gla()'.

While the current implementation is simplistic it forms the basis of doing
segmentation checks if the guest is in 32-bit protected mode.

10 years agoUpdate to 20140422
bapt [Sun, 25 May 2014 00:13:29 +0000 (00:13 +0000)]
Update to 20140422

10 years agomerge libucl 20140514
bapt [Sat, 24 May 2014 23:46:41 +0000 (23:46 +0000)]
merge libucl 20140514

this version brings xpath-like interface for ucl objects

10 years agoAdd libvmmapi functions vm_copyin() and vm_copyout() to copy into and out
neel [Sat, 24 May 2014 23:12:30 +0000 (23:12 +0000)]
Add libvmmapi functions vm_copyin() and vm_copyout() to copy into and out
of the guest linear address space. These APIs in turn use a new ioctl
'VM_GLA2GPA' to convert the guest linear address to guest physical.

Use the new copyin/copyout APIs when emulating ins/outs instruction in
bhyve(8).

10 years agoEnable automatic superpages promotion by default on ARMv6/v7
zbb [Sat, 24 May 2014 22:46:00 +0000 (22:46 +0000)]
Enable automatic superpages promotion by default on ARMv6/v7

From now on superpages are enabled by default on ARM.
One can still disable superpages utilization by adding:

vm.pmap.sp_enabled=0

to loader.conf

10 years agoAdd the clang patch for r265477. While here, add a description to the
dim [Sat, 24 May 2014 22:27:31 +0000 (22:27 +0000)]
Add the clang patch for r265477.  While here, add a description to the
patch for r263619, and unify all the URLs to point to svnweb.

10 years agoAdd a new taskqueue setup method that takes a cpuid to pin the
adrian [Sat, 24 May 2014 20:37:15 +0000 (20:37 +0000)]
Add a new taskqueue setup method that takes a cpuid to pin the
taskqueue worker thread(s) to.

For now it isn't a taskqueue/taskthread error to fail to pin
to the given cpuid.

Thanks to rpaulo@, kib@ and jhb@ for feedback.

Tested:

* igb(4), with local RSS patches to pin taskqueues.

TODO:

* ask the doc team for help in documenting the new API call.
* add a taskqueue_start_threads_cpuset() method which takes
  a cpuset_t - but this may require a bunch of surgery to
  bring cpuset_t into scope.

10 years agoUntabify.
hselasky [Sat, 24 May 2014 20:31:55 +0000 (20:31 +0000)]
Untabify.

Found by: jmmv @

10 years agoConsolidate all the information needed by the guest page table walker into
neel [Sat, 24 May 2014 20:26:57 +0000 (20:26 +0000)]
Consolidate all the information needed by the guest page table walker into
'struct vm_guest_paging'.

Check for canonical addressing in vmm_gla2gpa() and inject a protection
fault into the guest if a violation is detected.

If the page table walk is restarted in vmm_gla2gpa() then reset 'ptpphys' to
point to the root of the page tables.

10 years agoWhen injecting a page fault into the guest also update the guest's %cr2 to
neel [Sat, 24 May 2014 19:13:25 +0000 (19:13 +0000)]
When injecting a page fault into the guest also update the guest's %cr2 to
indicate the faulting linear address.

If the guest PML4 entry has the PG_PS bit set then inject a page fault into
the guest with the PGEX_RSV bit set in the error_code.

Get rid of redundant checks for the PG_RW violations when walking the page
tables.

10 years agoEliminate one of the causes of spurious interrupts on armv6. The arm weak
ian [Sat, 24 May 2014 16:21:16 +0000 (16:21 +0000)]
Eliminate one of the causes of spurious interrupts on armv6.  The arm weak
memory ordering model allows writes to different devices to complete out
of order, leading to a situation where the write that clears an interrupt
source at a device can complete after a write that unmasks and EOIs the
interrupt at the interrupt controller, leading to a spurious re-interrupt.

This adds a generic barrier function specific to the needs of interrupt
controllers, and calls that function from the GIC and TI AINTC controllers.
There may still be other soc-specific controllers that need to make the call.

Reviewed by: cognet, Svatopluk Kraus <onwahe@gmail.com>
MFC after: 3 days

10 years agoRemove the prototpye for the static inline function
bz [Sat, 24 May 2014 15:31:40 +0000 (15:31 +0000)]
Remove the prototpye for the static inline function
tcp_signature_verify_input().
The function is defined before first use already.

MFC after: 2 weeks

10 years agosyncache_lookup() is a file local function. Make it static and
bz [Sat, 24 May 2014 15:03:36 +0000 (15:03 +0000)]
syncache_lookup() is a file local function.  Make it static and
take it out of the public KPI; seems it was never used elsewhere.

MFC after: 2 weeks

10 years agoMake tcp_twrespond() file local private; this removes it from the
bz [Sat, 24 May 2014 14:01:18 +0000 (14:01 +0000)]
Make tcp_twrespond() file local private;  this removes it from the
public KPI; it is not used anywhere else and seems it never was.

MFC after: 2 weeks

10 years agoIncrease taskqueue thread priority from idle to PRIBIO.
mav [Sat, 24 May 2014 13:00:49 +0000 (13:00 +0000)]
Increase taskqueue thread priority from idle to PRIBIO.

Idle priority is not even time-share, so if system is busy in any way,
those events may never be executed.  Since in some cases system waits
for events processed by that thread, that may cause deadlocks.

10 years agoRight now, the rtld prefork hook locks the rtld bind lock in the read
kib [Sat, 24 May 2014 10:23:06 +0000 (10:23 +0000)]
Right now, the rtld prefork hook locks the rtld bind lock in the read
mode.  This allows the binder to be functional in the child after the
fork (assuming no lazy loading of a filter is needed), but other rtld
services which require write lock on rtld_bind_lock cause deadlock, if
called by child.

Change the _rtld_atfork() to lock the bind lock in write mode, making
the rtld fully functional after the fork.

Pre-resolve the symbols which are called by the libthr' fork()
interposer, since dynamic resolution causes deadlock due to the
rtld_bind_lock already owned in the write mode.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoOnly do a ports check if this is a NAT-T SA. Otherwise other
bz [Sat, 24 May 2014 09:29:23 +0000 (09:29 +0000)]
Only do a ports check if this is a NAT-T SA.  Otherwise other
lookups providing ports may get unexpected results.

MFC After: 2 weeks

10 years agoMove mutex creation from ipf_log_soft_init() to ipf_log_soft_create()
cy [Sat, 24 May 2014 06:05:21 +0000 (06:05 +0000)]
Move mutex creation from ipf_log_soft_init() to ipf_log_soft_create()
to be consistent with mutex destruction in ipf_log_soft_destroy(). As a
result mutex destruction in ipf_log_soft_fini() is redundant.

Approved by: glebius (mentor)
Obtained from: darrenr (author)

10 years agoRemove the prototypes for things that are no longer file local but were
bz [Fri, 23 May 2014 21:12:33 +0000 (21:12 +0000)]
Remove the prototypes for things that are no longer file local but were
moved to the header file.

Pointy hat to: clang || bz
MFC after: 2 weeks
X-MFC with: r266596
Reported by: gcc build of sparc64

10 years agoMove the tcp_fields_to_host() and tcp_fields_to_net() (inline)
bz [Fri, 23 May 2014 20:15:01 +0000 (20:15 +0000)]
Move the tcp_fields_to_host() and tcp_fields_to_net() (inline)
functions to the tcp_var.h header file in order to avoid further
duplication with upcoming commits.

Reviewed by: np
MFC after: 2 weeks

10 years agoCheck for alignment check violation when processing in/out string instructions.
neel [Fri, 23 May 2014 19:59:14 +0000 (19:59 +0000)]
Check for alignment check violation when processing in/out string instructions.

10 years agoThere is no reason to perform the pmap_remove() on the kernel pmap while
alc [Fri, 23 May 2014 16:22:36 +0000 (16:22 +0000)]
There is no reason to perform the pmap_remove() on the kernel pmap while
the kmem object lock is held.  Do the pmap_remove() before acquiring the
kmem object lock.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

10 years agoAllow CC to not actually exist. During the ports INDEX run, all the
imp [Fri, 23 May 2014 14:34:22 +0000 (14:34 +0000)]
Allow CC to not actually exist. During the ports INDEX run, all the
Makefiles are evaluated without building things. In a normal build,
the prerequisites would be built, and CC would be an actual thing. In
an INDEX build, though, they don't exists. Redirect stderr to get rid
of annoying messages, and assume that the compiler version is 0 if the
actual compiler can't tell us. Do this in preference to guessing based
on numbers because gcc410 might be 4.10, or 4.1.0 and without
carefully crafted special knowledge we differentiate between them
easily (also ming-gcc has no clues at all). Elsewhere, don't trust
the compiler version if it is 0.

10 years agoIf called without -T or -t, fsck attempts to detect the
trhodes [Fri, 23 May 2014 14:32:57 +0000 (14:32 +0000)]
If called without -T or -t, fsck attempts to detect the
file system type.  If this fails, fsck will fail with
"unknown file system type" message.

PR: 188214

10 years agodo not build libraries, they require a lot more stuff
luigi [Fri, 23 May 2014 11:22:44 +0000 (11:22 +0000)]
do not build libraries, they require a lot more stuff

10 years agoInitial import of character device in userspace support for FreeBSD.
hselasky [Fri, 23 May 2014 08:46:28 +0000 (08:46 +0000)]
Initial import of character device in userspace support for FreeBSD.
The CUSE library is a wrapper for the devfs kernel functionality which
is exposed through /dev/cuse . In order to function the CUSE kernel
code must either be enabled in the kernel configuration file or loaded
separately as a module. Currently none of the committed items are
connected to the default builds, except for installing the needed
header files. The CUSE code will be connected to the default world and
kernel builds in a follow-up commit.

The CUSE module was written by Hans Petter Selasky, somewhat inspired
by similar functionality found in FUSE. The CUSE library can be used
for many purposes. Currently CUSE is used when running Linux kernel
drivers in user-space, which need to create a character device node to
communicate with its applications. CUSE has full support for almost
all devfs functionality found in the kernel:
 - kevents
 - read
 - write
 - ioctl
 - poll
 - open
 - close
 - mmap
 - private per file handle data

Requested by several people. Also see "multimedia/cuse4bsd-kmod" in
ports.

10 years agoremove unused code (building older releases should use the
luigi [Fri, 23 May 2014 08:34:30 +0000 (08:34 +0000)]
remove unused code (building older releases should use the
picobsd file in the release itself)

10 years agoadd libraries to the initial build for picobsd.
luigi [Fri, 23 May 2014 08:10:07 +0000 (08:10 +0000)]
add libraries to the initial build for picobsd.

add a -j option so we can tune the amount of parallel make,
the default we used (-j 8) is large and was giving problems
with SUBDIR_PARALLEL due to some missing dependencies.

10 years agoAdd emulation of the "outsb" instruction. NetBSD guests use this to write to
neel [Fri, 23 May 2014 05:15:17 +0000 (05:15 +0000)]
Add emulation of the "outsb" instruction. NetBSD guests use this to write to
the UART FIFO.

The emulation is constrained in a number of ways: 64-bit only, doesn't check
for all exception conditions, limited to i/o ports emulated in userspace.

Some of these constraints will be relaxed in followup commits.

Requested by: grehan
Reviewed by: tychon (partially and a much earlier version)

10 years agoA Centos 6.4 guest will write 0xff to the 8259 mask register before beginning
neel [Fri, 23 May 2014 05:04:50 +0000 (05:04 +0000)]
A Centos 6.4 guest will write 0xff to the 8259 mask register before beginning
the proper ICWx initialization sequence. It assumes, probably correctly, that
the boot firmware has done the 8259 initialization.

Since grub-bhyve does not initialize the 8259 this write to the mask register
takes a code path in which 'error' remains uninitialized (ready=0,icw_num=0).

Fix this by initializing 'error' at the start of the function.

10 years agocxgbe(4): Remove stray if_up from the code that creates the tracing ifnet.
np [Fri, 23 May 2014 01:45:44 +0000 (01:45 +0000)]
cxgbe(4): Remove stray if_up from the code that creates the tracing ifnet.

10 years agoRemove NetBSD implementation details not relevant to FreeBSD.
imp [Fri, 23 May 2014 00:21:02 +0000 (00:21 +0000)]
Remove NetBSD implementation details not relevant to FreeBSD.

10 years agoMinor style nits...
imp [Fri, 23 May 2014 00:20:57 +0000 (00:20 +0000)]
Minor style nits...

10 years agoFix the comment. This really isn't just a 4.x compatibility thing, but
imp [Fri, 23 May 2014 00:20:53 +0000 (00:20 +0000)]
Fix the comment. This really isn't just a 4.x compatibility thing, but
is used pervasively through our tree, making it really part of the API.

10 years agoWhen libelf and libdwarf were updated, we didn't bump the minimal
imp [Fri, 23 May 2014 00:20:48 +0000 (00:20 +0000)]
When libelf and libdwarf were updated, we didn't bump the minimal
version needed for CTF tools, so sometimes we'd use the host's CTF
tools that didn't work. Be sure to bootstrap in that case.

10 years agoAdd .../share/mk to the default system make path. This will fix the
imp [Fri, 23 May 2014 00:20:44 +0000 (00:20 +0000)]
Add .../share/mk to the default system make path. This will fix the
problem with broken in-tree builds (which are used far more
pervasively than I'd known outside the tree). However, weird results
may now happen if at any point in the tree above you there happens to
be a directory that has subdirectory of share/mk, as unpredictable
results will follow. This was considered the lessor of the two evils,
at least for now. In the future this will be removed again when the
underlying issues are resolved.

10 years agoMap device memory using PTE_DEVICE attributes, and also ensure that the
ian [Thu, 22 May 2014 23:38:17 +0000 (23:38 +0000)]
Map device memory using PTE_DEVICE attributes, and also ensure that the
shared flag is set on normal-memory mappings made via pmap_kenter() for SMP.

The "shared flag" part of this change isn't obvious from the diff, here's
the deal... by using the array of preformatted page table entry templates
instead of constructing the PTE from scratch, we automatically get the
right attribute bits set for both caching and shared.

MFC after: 1 week

10 years agoCreate our temporary file in $TMPDIR, if the environment variable
marcel [Thu, 22 May 2014 20:24:30 +0000 (20:24 +0000)]
Create our temporary file in $TMPDIR, if the environment variable
is set. /tmp otherwise.

Submitted by:   Dan McGregor <danismostlikely@gmail.com>

10 years agoFix syntax error thrown at the point of creating the root pool, caused by
dteske [Thu, 22 May 2014 19:36:29 +0000 (19:36 +0000)]
Fix syntax error thrown at the point of creating the root pool, caused by
an embedded newline appearing within the options string surrounded by
double-quotes. Rework the logic that goes into setting dataset options on
the root pool dataset while we're here -- added two new variables (which
can be altered via scripting) ZFSBOOT_POOL_CREATE_OPTIONS and also
ZFSBOOT_BOOT_POOL_CREATE_OPTIONS for setting pool/dataset attributes at
the time of pool creation. The former is for setting options on the root
pool (zroot) and the latter is for setting options on the optional separate
boot pool (bootpool) implicitly enabled when using either GELI or MBR. The
default value for the root pool variable (ZFSBOOT_POOL_CREATE_OPTIONS) is
"-O compress=lz4 -O atime=off" and the default value for separate boot pool
variable (ZFSBOOT_BOOT_POOL_CREATE_OPTIONS) is NULL (no additional options
for the separate boot pool dataset).

Reviewed by: allanjude
MFC after: 7 days
X-MFC-with: r266107-266109

10 years agoDisable the main FreeBSD pkg(7) repositories in the dvd
gjb [Thu, 22 May 2014 19:25:41 +0000 (19:25 +0000)]
Disable the main FreeBSD pkg(7) repositories in the dvd
repository configuration to avoid fetching from upstream
in case there may be conflicts.

MFC After: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoAdd forward-compatibility glue with pkg-1.3:
gjb [Thu, 22 May 2014 19:22:03 +0000 (19:22 +0000)]
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

Tested on: stable/9@r265858 with ports-mgmt/pkg-devel
MFC After: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoDon't permit users to request a subset of the AVX512 or MPX xsave masks.
jhb [Thu, 22 May 2014 18:22:02 +0000 (18:22 +0000)]
Don't permit users to request a subset of the AVX512 or MPX xsave masks.

These masks are documented in the Intel Architecture Instruction Set
Extensions Programming Reference (March 2014).

Reviewed by: kib
MFC after: 1 month

10 years agoWhitespace fix.
jhb [Thu, 22 May 2014 18:13:17 +0000 (18:13 +0000)]
Whitespace fix.

Submitted by: kib

10 years agoAllow vmx_getdesc() and vmx_setdesc() to be called for a vcpu that is in the
neel [Thu, 22 May 2014 17:22:37 +0000 (17:22 +0000)]
Allow vmx_getdesc() and vmx_setdesc() to be called for a vcpu that is in the
VCPU_RUNNING state. This will let the VMX exit handler inspect the vcpu's
segment descriptors without having to exit the critical section.

10 years agoDon't delete our new vt(4) man page.
truckman [Thu, 22 May 2014 16:30:32 +0000 (16:30 +0000)]
Don't delete our new vt(4) man page.

X-MFC-With: r265798

10 years agoMake iwn(4) able to get itself back into working condition after
trasz [Thu, 22 May 2014 15:29:25 +0000 (15:29 +0000)]
Make iwn(4) able to get itself back into working condition after
"fatal firmware error" happens.  Previously it was neccessary to reset
it manually, using "/etc/rc.d/netif restart".

Approved by: adrian@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

10 years agoErm, revert r266544; wrong tree.
trasz [Thu, 22 May 2014 15:00:32 +0000 (15:00 +0000)]
Erm, revert r266544; wrong tree.

10 years agoMake iwn(4) able to get itself back into working condition after
trasz [Thu, 22 May 2014 14:56:34 +0000 (14:56 +0000)]
Make iwn(4) able to get itself back into working condition after
"fatal firmware error" happens.  Previously it was neccessary to reset
it manually, using "/etc/rc.d/netif restart".

Approved by: adrian@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

10 years agofix picobsd cross builds on stable/10
luigi [Thu, 22 May 2014 12:30:56 +0000 (12:30 +0000)]
fix picobsd cross builds on stable/10

10 years ago- Give firmware loading more time.
hselasky [Thu, 22 May 2014 12:01:43 +0000 (12:01 +0000)]
- Give firmware loading more time.

MFC after: 3 days

10 years ago- Fix a bug where the TLBPC value was forced to being odd for IN
hselasky [Thu, 22 May 2014 11:58:15 +0000 (11:58 +0000)]
- 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.

MFC after: 3 days
Submitted by: Horse Ma <HMa@wyse.com>

10 years agoProper fix of VT_LOCKSWITCH ioctl.
ray [Thu, 22 May 2014 09:31:18 +0000 (09:31 +0000)]
Proper fix of VT_LOCKSWITCH ioctl.

Sponsored by: The FreeBSD Foundation

10 years agoRollback r266496.
ray [Thu, 22 May 2014 09:28:36 +0000 (09:28 +0000)]
Rollback r266496.
Different meaning of flags for lock(1) and vidcontrol(1) confuse me.

Pointy hat to: ray
Sponsored by: The FreeBSD Foundation

10 years agoMake ng_mppc to not disable the node in case of multiple packet loss.
mav [Thu, 22 May 2014 07:27:04 +0000 (07:27 +0000)]
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>
MFC after: 2 weeks

10 years agoUse CPU_FIRST() / CPU_NEXT() to iterate over the valid CPU IDs.
adrian [Thu, 22 May 2014 07:25:36 +0000 (07:25 +0000)]
Use CPU_FIRST() / CPU_NEXT() to iterate over the valid CPU IDs.

10 years agoUse NG_WAITOK as ng_package_msg() argument instead of M_WAITOK.
mav [Thu, 22 May 2014 06:40:07 +0000 (06:40 +0000)]
Use NG_WAITOK as ng_package_msg() argument instead of M_WAITOK.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

10 years ago- Stop transfers when RSU init fails.
hselasky [Thu, 22 May 2014 06:28:09 +0000 (06:28 +0000)]
- Stop transfers when RSU init fails.
- Make sure TX/RX lists don't leak and are only allocated once.
- Fix off-by one transfer index computation.
- Give firmware loading more time.

MFC after: 3 days

10 years agoFix build: Build libavl as prebuild-lib.
delphij [Thu, 22 May 2014 05:33:50 +0000 (05:33 +0000)]
Fix build: Build libavl as prebuild-lib.

X-MFC-With: 266520

10 years agoImprove sysctl descriptions for new ZFS sysctls:
allanjude [Thu, 22 May 2014 05:30:38 +0000 (05:30 +0000)]
Improve sysctl descriptions for new ZFS sysctls:
vfs.zfs.dirty_data_max
vfs.zfs.dirty_data_max_max
vfs.zfs.dirty_data_sync

Reviewed by: smh
Approved by: wblock (mentor)

10 years agoimagact_binmisc builds for all supported architectures, so enable it for all.
jhibbits [Thu, 22 May 2014 05:04:40 +0000 (05:04 +0000)]
imagact_binmisc builds for all supported architectures, so enable it for all.

Any bugs in execution will be dealt with as they crop up.

MFC after: 3 weeks
Relnotes: Yes

10 years agoNote merge to head for sendmail 8.14.9.
gshapiro [Thu, 22 May 2014 04:46:51 +0000 (04:46 +0000)]
Note merge to head for sendmail 8.14.9.

MFC after: 3 days

10 years agoMinor changes to force commit these files so new freebsd*.cf files are
gshapiro [Thu, 22 May 2014 04:43:40 +0000 (04:43 +0000)]
Minor changes to force commit these files so new freebsd*.cf files are
built to use the new sendmail-8.14.9/cf tree.

MFC after: 3 days

10 years agoUpdate for sendmail 8.14.9 import
gshapiro [Thu, 22 May 2014 04:41:11 +0000 (04:41 +0000)]
Update for sendmail 8.14.9 import

MFC after: 3 days

10 years agoMerge sendmail 8.14.9 to HEAD
gshapiro [Thu, 22 May 2014 04:39:17 +0000 (04:39 +0000)]
Merge sendmail 8.14.9 to HEAD

MFC after: 3 days

10 years agoInject page fault into the guest if the page table walker detects an invalid
neel [Thu, 22 May 2014 03:14:54 +0000 (03:14 +0000)]
Inject page fault into the guest if the page table walker detects an invalid
translation for the guest linear address.

10 years agoExplicitly link libzfs against libavl as it is done in OpenSolaris
delphij [Thu, 22 May 2014 00:01:31 +0000 (00:01 +0000)]
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: java/183081
Tested by: jkim
MFC after: 3 days

10 years agoRemove duplicate:
sbruno [Wed, 21 May 2014 21:30:00 +0000 (21:30 +0000)]
Remove duplicate:
option AH_DEBUG_ALQ

10 years ago"%p" formatting already includes "0x" prefix in printout.
hselasky [Wed, 21 May 2014 18:02:19 +0000 (18:02 +0000)]
"%p" formatting already includes "0x" prefix in printout.

10 years agoFix CID 1204379 (vtoc8.c) & CID 1204380 (bsd.c): Cast ncyls to lba_t
marcel [Wed, 21 May 2014 17:39:49 +0000 (17:39 +0000)]
Fix CID 1204379 (vtoc8.c) & CID 1204380 (bsd.c): Cast ncyls to lba_t
before multiplying the 32-bit integrals to avoid any possibility of
truncation before widening. Not a likely scenario to begin with...

10 years agoFix CID 1204394: Use strncpy(3) instead of strcpy(3). Note that it's
marcel [Wed, 21 May 2014 17:38:56 +0000 (17:38 +0000)]
Fix CID 1204394: Use strncpy(3) instead of strcpy(3). Note that it's
ok to not have the name and type strings terminated.

10 years agoFix CID 1215124: Handle errors properly.
marcel [Wed, 21 May 2014 17:38:14 +0000 (17:38 +0000)]
Fix CID 1215124: Handle errors properly.