]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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.

10 years agoFix CID 1215125: fstat(2) returns -1 on error and sets errno. It does
marcel [Wed, 21 May 2014 17:37:22 +0000 (17:37 +0000)]
Fix CID 1215125: fstat(2) returns -1 on error and sets errno. It does
not return the error (oops).

10 years agoFix CID 1215128: Free the allocated buf when image_set_size()
marcel [Wed, 21 May 2014 17:36:12 +0000 (17:36 +0000)]
Fix CID 1215128: Free the allocated buf when image_set_size()
returns and error and we return from bsd_write().

10 years agoFix CID 1215129: move the call to lseek(2) before the call to malloc(3)
marcel [Wed, 21 May 2014 17:34:50 +0000 (17:34 +0000)]
Fix CID 1215129: move the call to lseek(2) before the call to malloc(3)
so that the error path (taken due to lseek(2) failing) isn't leaking
memory.

10 years agoImplement interrupt endpoint methods for host mode transfers.
hselasky [Wed, 21 May 2014 17:22:41 +0000 (17:22 +0000)]
Implement interrupt endpoint methods for host mode transfers.

Sponsored by: DARPA, AFRL

10 years ago- Split transmit queue into one for each type. Apparently there will
hselasky [Wed, 21 May 2014 16:52:55 +0000 (16:52 +0000)]
- Split transmit queue into one for each type. Apparently there will
be a race when using a single active queue for all transmit types.
- Last argument of usb_pause_mtx() is ticks and not milliseconds.
- Remove unused watchdog.
- Remove some unused fields from the RSU softc structure.
- Workaround usbd_transfer_start() recursion from inside of completion
callback.

MFC after: 3 days

10 years agoAdded sysctls / tunables for ZFS dirty data tuning
smh [Wed, 21 May 2014 13:36:04 +0000 (13:36 +0000)]
Added sysctls / tunables for ZFS dirty data tuning

Added the following new sysctls / tunables:
* vfs.zfs.dirty_data_max
* vfs.zfs.dirty_data_max_max
* vfs.zfs.dirty_data_max_percent
* vfs.zfs.dirty_data_sync
* vfs.zfs.delay_min_dirty_percent
* vfs.zfs.delay_scale

PR: kern/189865
MFC after: 2 weeks

10 years agoSync lock(1) on VT_LOCKSWITCH usage with syscons(4), vt(4) and vidcontrol(1).
ray [Wed, 21 May 2014 11:53:15 +0000 (11:53 +0000)]
Sync lock(1) on VT_LOCKSWITCH usage with syscons(4), vt(4) and vidcontrol(1).

Sponsored by: The FreeBSD Foundation

10 years agoFix tty locking.
ray [Wed, 21 May 2014 11:15:38 +0000 (11:15 +0000)]
Fix tty locking.
o Correct expected values for VT_LOCKSWITCH ioctl.
o Check current window for locked state.

Sponsored by: The FreeBSD Foundation

10 years ago- Fix a bug which can make sysctl() fail when -F is specified.
hrs [Wed, 21 May 2014 10:04:51 +0000 (10:04 +0000)]
- Fix a bug which can make sysctl() fail when -F is specified.
- Increase WID_IF_DEFAULT() from 6 to 8 (the default for AF_INET6) because
  we have interfaces with longer names than 6 chars like epairN{a,b}.
- Style fixes.

10 years ago- Replace some constants with macros.
hselasky [Wed, 21 May 2014 09:26:02 +0000 (09:26 +0000)]
- Replace some constants with macros.
- Need to set the pre-fetch memory address when reading the host memory.
- We currently assume that no endianness conversion is needed.

Sponsored by: DARPA, AFRL

10 years agoRemove redundand loop. The inner goto restarts the whole page
kib [Wed, 21 May 2014 08:19:04 +0000 (08:19 +0000)]
Remove redundand loop.  The inner goto restarts the whole page
handling in the situation identical to the loop condition.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

10 years ago- Configure Rx bulk
kevlo [Wed, 21 May 2014 08:09:44 +0000 (08:09 +0000)]
- Configure Rx bulk
- Announce flow control capability to PHY drivers

10 years agoAvoid starting a USB transfer inside the callback function, right
hselasky [Wed, 21 May 2014 06:23:52 +0000 (06:23 +0000)]
Avoid starting a USB transfer inside the callback function, right
after its been submitted.

MFC after: 3 days

10 years agoDocument VMware-related filesystems additions.
marck [Wed, 21 May 2014 05:27:57 +0000 (05:27 +0000)]
Document VMware-related filesystems additions.

Reviewed by:    jmg
MFC after:      1 week

10 years agoCheck for mismatched vref()/vdrop()
bjk [Wed, 21 May 2014 03:11:27 +0000 (03:11 +0000)]
Check for mismatched vref()/vdrop()

Assert that the hold count has not fallen below the use count, a situation
that would only happen when a vref() (or similar) is erroneously paired
with a vdrop().  This situation has not been observed in the wild, but
could be helpful for someone implementing a new filesystem.

Reviewed by: kib
Approved by: hrs (mentor)

10 years agoOld PCIe implementations cannot allow a DMA transfer to cross a 4GB
scottl [Tue, 20 May 2014 22:43:17 +0000 (22:43 +0000)]
Old PCIe implementations cannot allow a DMA transfer to cross a 4GB
boundary.  This was addressed several years ago by creating a parent
tag hierarchy for the root buses that set the boundary restriction
for appropriate buses and allowed child deviced to inherit it.
Somewhere along the way, this restriction was turned into a case for
marking the tag as a candidate for needing bounce buffers, instead
of just splitting the segment along the boundary line.  This flag
also causes all maps associated with this tag to be non-NULL, which
in turn causes bus_dmamap_sync() to take the slow path of function
pointer indirection to discover that there's no bouncing work to
do.  The end result is a lot of pages set aside in bounce pools
that will never be used, and a slow path for data buffers in nearly
every DMA-capable PCIe device.  For example, our workload at Netflix
was spending nearly 1% of all CPU time going through this slow path.

Fix this problem by being more selective about when to set the
COULD_BOUNCE flag.  Only set it when the boundary restriction
exists and the consumer cannot do more than a single DMA segment
at once.  This fixes the case of dynamic buffers (mbufs, bio's)
but doesn't address static buffers allocated from bus_dmamem_alloc().
That case will be addressed in the future.

For those interested, this was discovered thanks to Dtrace Flame
Graphs.

Discussed with: jhb, kib
Obtained from: Netflix, Inc.
MFC after: 3 days

10 years ago- Add myself to committers-src.dot
slm [Tue, 20 May 2014 22:11:52 +0000 (22:11 +0000)]
- Add myself to committers-src.dot

Approved by: ken/scottl (mentors)

10 years agoMove Nx definition to a separate block.
pluknet [Tue, 20 May 2014 21:24:15 +0000 (21:24 +0000)]
Move Nx definition to a separate block.

Noticed by: ru (a while ago)

10 years agoAdd PG_RW check when translating a guest linear to guest physical address.
neel [Tue, 20 May 2014 20:30:28 +0000 (20:30 +0000)]
Add PG_RW check when translating a guest linear to guest physical address.

Set the accessed and dirty bits in the page table entry. If it fails then
restart the page table walk from the beginning. This might happen if another
vcpu modifies the page tables simultaneously.

Reviewed by: alc, kib

10 years agoFix warning messages after r252015
rea [Tue, 20 May 2014 19:55:59 +0000 (19:55 +0000)]
Fix warning messages after r252015

$alias used to hold alias number, but now it carries full variable name,
so messages were tuned to account for that.

Other fixes:
 - eliminate unneeded double spaces;
 - tell user where inet/inet6 keywords are expected to be.
Reviewed by: hrs
MFC after: 1 week

10 years agoAdd ismt(4) driver.
jimharris [Tue, 20 May 2014 19:55:06 +0000 (19:55 +0000)]
Add ismt(4) driver.

ismt(4) supports the SMBus Message Transport controller found on Intel
C2000 series (Avoton) and S1200 series (Briarwood) Atom SoCs.

Sponsored by: Intel

10 years agoUse an intermediate target to associate with _SUBDIR which is marked .MAKE
sjg [Tue, 20 May 2014 18:25:46 +0000 (18:25 +0000)]
Use an intermediate target to associate with _SUBDIR which is marked .MAKE
this allows make -n to do tree walks as expected without
doing anything else (as intended).
Use prefix _sub. to help avoid conflict with any real target.

Reviewed by: imp

10 years ago- The DELAY() should not be used in USB drivers.
hselasky [Tue, 20 May 2014 15:53:17 +0000 (15:53 +0000)]
- The DELAY() should not be used in USB drivers.
- The usb_pause_mtx() function takes ticks and not milliseconds as last argument.

MFC after: 3 days

10 years ago- The DELAY() should not be used in USB drivers.
hselasky [Tue, 20 May 2014 15:47:37 +0000 (15:47 +0000)]
- The DELAY() should not be used in USB drivers.
- The usb_pause_mtx() function takes ticks and not milliseconds as last argument.

MFC after: 3 days

10 years agoOptimise reading of pending interrupt registers. If there are no
hselasky [Tue, 20 May 2014 15:03:23 +0000 (15:03 +0000)]
Optimise reading of pending interrupt registers. If there are no
pending interrupt bits, skip the bit iteration loop.

Reviewed by: ian @