]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r267613 (by trasz):
mav [Thu, 24 Jul 2014 15:31:45 +0000 (15:31 +0000)]
MFC r267613 (by trasz):
Implement redirection handling in initiator.

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

9 years agoMFC r268947: Hide syscons-specific workaround under DEV_SC
emaste [Thu, 24 Jul 2014 15:18:19 +0000 (15:18 +0000)]
MFC r268947: Hide syscons-specific workaround under DEV_SC

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

9 years agoMFC r268420:
mav [Thu, 24 Jul 2014 14:55:45 +0000 (14:55 +0000)]
MFC r268420:
Remove IO_SYNC flag when writing extended file attributes on ZFS.

While it is possible to create and write file, modify its permissions, etc.
without ever doing sync, it looks odd that it is required for setting
extended file attributes on ZFS.  UFS does not do sync there too.

Samba uses those extended attributes to store some its data, and doing it
synchronously by many times reduces file creation performance for systems
without SLOG device.

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

9 years agoMFC r258471: Don't abort SMAP processing after an entry of length 0
emaste [Thu, 24 Jul 2014 14:24:27 +0000 (14:24 +0000)]
MFC r258471: Don't abort SMAP processing after an entry of length 0

  Length 0 is not special and should just be skipped.  This is the same
  behaviour as i386.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r268660:
kib [Thu, 24 Jul 2014 10:45:52 +0000 (10:45 +0000)]
MFC r268660:
Make amd64 pmap_copy_pages() functional for pages not mapped by DMAP.

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

9 years agoMFC r268384:
kib [Thu, 24 Jul 2014 10:43:15 +0000 (10:43 +0000)]
MFC r268384:
When the lock was stolen from us, retry the whole lock sequence in kernel,
instead of returning EINTR.

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

9 years agoMFC r268825:
kevlo [Thu, 24 Jul 2014 06:03:45 +0000 (06:03 +0000)]
MFC r268825:

Remove deprecated definition "m_act".

Suggested by: adrian, glebius

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

9 years agoMFC r268787:
kevlo [Thu, 24 Jul 2014 06:02:03 +0000 (06:02 +0000)]
MFC r268787:

Deprecate m_act.  Use m_nextpkt always.

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

9 years agoMFC r268643:
kevlo [Thu, 24 Jul 2014 05:59:32 +0000 (05:59 +0000)]
MFC r268643:

Document that listen(2) can fail with EDESTADDRREQ.

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

9 years agoMFC r268601:
kevlo [Thu, 24 Jul 2014 05:57:33 +0000 (05:57 +0000)]
MFC r268601:

Make bind(2) and connect(2) return EAFNOSUPPORT for AF_UNIX on wrong
address family.

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191586 for the
original discussion.

Reviewed by: terry

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

9 years agoMFC vtfontcvt improvements:
emaste [Thu, 24 Jul 2014 01:35:41 +0000 (01:35 +0000)]
MFC vtfontcvt improvements:

r267011: Make height and width optional arguments

  Now defaults to a 16x8 font size.  The height and width can be specified
  using -h and -w respectively.

r267012: Make the bold font optional

r267035: Use a hash to speed up glyph deduplication

  Walking a linked list of all glyphs to look for a duplicate is very slow
  for large fonts (e.g., for CJK character sets).  In my test the runtime
  for a sample 40000 character font went from just over 80 seconds on
  average to just over 2 seconds.

r267119: -w sets the width, not height

r267123: Support "GNU Unifont" format font data

  The GNU Unifont .hex format is a text file.  Each line represents one
  glyph and consists of a four-digit hex code point, a colon, and pairs of
  hex digits representing the bitmap.  By default an 8x16 font is assumed,
  with 16x16 double-width glyphs, resulting in either 32 or 64 hex digits
  for the bitmap.

  Our version of the file format supports comments at the top of the file
  to set the height and width:

  Each row of bitmap data is rounded up to byte width - for example, a
  10-pixel wide font uses 4 characters per row.

  See http://czyborra.com/unifont/ for more background on the original
  format.

r267126: Accept space after BITMAP in .bdf parser

  The Unifont BDF generator incorrectly adds a space after BITMAP, and
  and that error has been widely propagated.

r267173: use -h height and -w width args

r267298: Hide stats by default and improve error handling

  The font stats are interesting, but rather verbose.

r267301: Speed up bold glyph map deduplication

  Perform an O(n) deduplication pass over the bold maps at the end, rather
  than walking the normal map list to look for a duplicate glyph each time
  a bold mapping entry is added.

r267324: handle failure writing output font

r267337: move to usr.bin/vtfontcvt

  vtfontcvt is useful for end users to convert arbitrary bitmap fonts
  for use by vt(4).  It can also be used as a build tool, allowing us
  to keep the source font data in the src tree rather than uuencoded
  binaries.

  Reviewed by:  ray, wblock (D183)

r267366: Avoid leaking file pointer on error

  CID:          12225061222505

r268022: Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VT

  The _SUPPORT knobs have a consistent meaning which differs from the
  behaviour controlled by this knob.  As the knob is opt-out and has not
  appeared in a release the impact should be low.

r268172: correct width calculation (.hex files and commandline)

r268948: Use the standard way of printing the usage string

r268949: Remove redundant return statement after errx

Also update vtfontcvt(8), based on inclusion in FreeBSD 10.1

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 267883:
jhb [Thu, 24 Jul 2014 00:02:39 +0000 (00:02 +0000)]
MFC 267883:
Expand r261243 even further and ignore any I/O port resources assigned to
PCI root bridges except for the one known-valid case on x86 where bridges
claim the I/O port registers used for PCI config space access.

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

9 years agoMFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not
dteske [Wed, 23 Jul 2014 22:47:00 +0000 (22:47 +0000)]
MFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not
work if ifname has any of [.-/+].

While here, also perform the following to reduce diff size between major
branches for etc/network.subr:

MFC r266475 (rea): 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
Spotted by: jhay
PR: conf/191961

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

9 years agoMFC r268527: Remove unused readline header
emaste [Wed, 23 Jul 2014 19:38:29 +0000 (19:38 +0000)]
MFC r268527: Remove unused readline header

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

9 years agoMFC r263678: lldb: Invoke PT_KILL from ProcessPosix::DoDestroy
emaste [Wed, 23 Jul 2014 19:37:24 +0000 (19:37 +0000)]
MFC r263678: lldb: Invoke PT_KILL from ProcessPosix::DoDestroy

  We previously sent SIGKILL to the debuggee in DoDestroy, but did not
  actually detach or kill via ptrace.  It seems that this somehow didn't
  matter on Linux, but did on FreeBSD.

  This would happen when quitting LLDB while stopped at a breakpoint, for
  example.  The debuggee remained stopped in ptrace (with the signal
  either pending or lost).  After a timeout of a second or two LLDB exits,
  which caused the debuggee to resume and dump core from an unhandled
  SIGTRAP.

  BringProcessIntoLimbo is a poorly named wrapper for ptrace(PT_KILL)
  which is the desired behaviour from DoDestroy.

  http://llvm.org/pr18894

Sponsored by: DARPA, AFRL

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

9 years agoMFC r262528: Update LLDB snapshot to upstream r202189
emaste [Wed, 23 Jul 2014 19:35:02 +0000 (19:35 +0000)]
MFC r262528: Update LLDB snapshot to upstream r202189

  Highlights include (upstream revs in parens):

  - Improvements to the remote GDB protocol client
    (r196610, r197579, r197857, r200072, and others)

  - Bug fixes for big-endian targets
    (r196808)

  - Initial support for libdispatch (GCD) queues in the debuggee
    (r197190)

  - Add "step-avoid-libraries" setting
    (r199943)

  - IO subsystem improvements (including initial work on a curses gui)
    (r200263)

  - Support hardware watchpoints on FreeBSD
    (r201706)

  - Improved unwinding through hand-written assembly functions
    (r201839)

  - Handle DW_TAG_unspecified_parameters for variadic functions
    (r202061)

  - Fix Ctrl+C interrupting a running inferior process
    (r202086, r202154)

  - Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler,
    ELF core files, DWARF debug info, and others.

Sponsored by: DARPA, AFRL

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

9 years agoMFC r265157: kldxref: Clean up error reporting
emaste [Wed, 23 Jul 2014 14:30:58 +0000 (14:30 +0000)]
MFC r265157: kldxref: Clean up error reporting

  Omit "too many sections" warnings if the ELF file is not dynamically
  linked (and is therefore skipped anyway), and otherwise output it only
  once.  An errant core file would previously cause kldxref to output a
  number of warnings.

  Also introduce a MAXSEGS #define and replace literal 2 with it, to make
  comparisons clear.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r261799: Add bounds check for pteindex / pdeindex to amd64 kvm_minidump
emaste [Wed, 23 Jul 2014 14:29:28 +0000 (14:29 +0000)]
MFC r261799: Add bounds check for pteindex / pdeindex to amd64 kvm_minidump

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

9 years agoMFC r266630 by dim:
emaste [Wed, 23 Jul 2014 14:27:04 +0000 (14:27 +0000)]
MFC r266630 by dim:

  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

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

9 years agoMFC r265477: Merge -fstandalone-debug from Clang r198655:
emaste [Wed, 23 Jul 2014 14:25:47 +0000 (14:25 +0000)]
MFC r265477: Merge -fstandalone-debug from Clang r198655:

  Implement a new -fstandalone-debug option. rdar://problem/15685848
  It controls everything that -flimit-debug-info used to, plus the
  vtable type optimization. The old -fno-limit-debug-info option is now an
  alias to -fstandalone-debug and vice versa.

  Standalone is the default on Darwin until dtrace is updated to work with
  non-standalone debug info (rdar://problem/15758808).

  Note: I kept the LimitedDebugInfo name in CodeGenOptions::DebugInfoKind
  because NoStandaloneDebugInfo sounded even more confusing.

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

9 years agoMFC r268928:
pfg [Wed, 23 Jul 2014 02:55:03 +0000 (02:55 +0000)]
MFC r268928:
Const-ify a character string.

Obtained from: Apple Inc. (Libc 997.90.3)

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

9 years agoMFC r268473: MFV r268455:
delphij [Wed, 23 Jul 2014 00:49:35 +0000 (00:49 +0000)]
MFC r268473: MFV r268455:

Use reserved space for ZFS administrative commands.

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

9 years agoMFC r260156: MFV r260152:
delphij [Wed, 23 Jul 2014 00:46:56 +0000 (00:46 +0000)]
MFC r260156: MFV r260152:

4208 Typo in zfs_main.c: "posxiuser"

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

9 years agoMFC r268470: MFV r268454:
delphij [Wed, 23 Jul 2014 00:41:11 +0000 (00:41 +0000)]
MFC r268470: MFV r268454:

Refresh zpool list for each interval in order to produce fresh
output.

Illumos issue: 4966 zpool list iterator does not update output

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

9 years agoMFC r268469: MFV r268453:
delphij [Wed, 23 Jul 2014 00:38:23 +0000 (00:38 +0000)]
MFC r268469: MFV r268453:

Diff reduction against Illumos.

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

9 years agoMFC r268464: MFV r268452:
delphij [Wed, 23 Jul 2014 00:35:06 +0000 (00:35 +0000)]
MFC r268464: MFV r268452:

Explicitly mark file removal transactions as "presumed to result
in a net free of space" so they will not fail with ENOSPC.

Illumos issue: 4950 files sometimes can't be removed from a full
filesystem

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

9 years agoMFC debug info for variadic functions
emaste [Tue, 22 Jul 2014 23:16:28 +0000 (23:16 +0000)]
MFC debug info for variadic functions

r264826: Merge LLVM r202188:

    Debug info: Support variadic functions.
    Variadic functions have an unspecified parameter tag after the last
    argument. In IR this is represented as an unspecified parameter in the
    subroutine type.

    Paired commit with CFE r202185.

    rdar://problem/13690847

    This re-applies r202184 + a bugfix in DwarfDebug's argument handling.

  This merge includes a change to use the LLVM 3.4 API in
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:

  DwarfUnit -> CompileUnit

r264827: Merge Clang r202185:

    Debug info: Generate debug info for variadic functions.
    Paired commit with LLVM.

    rdar://problem/13690847

  This merege includes changes to use the Clang 3.4 API (revisions
  199686 and 200082) in lib/CodeGen/CGDebugInfo.cpp:

  getParamType  -> getArgType
  getNumParams  -> getNumArgs
  getReturnType -> getResultType

r264828: Add patches corresponding to r264826 and r264827

Sponsored by: DARPA, AFRL

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

9 years agoMFC 266424,266476,266524,266573,266595,266626,266627,266633,266641,266642,
jhb [Tue, 22 Jul 2014 04:39:16 +0000 (04:39 +0000)]
MFC 266424,266476,266524,266573,266595,266626,266627,266633,266641,266642,
266708,266724,266934,266935,268521:
Emulation of the "ins" and "outs" instructions.

Various fixes for translating guest linear addresses to guest physical
addresses.

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

9 years agoMFC 266125:
jhb [Tue, 22 Jul 2014 03:14:37 +0000 (03:14 +0000)]
MFC 266125:
Implement a PCI interrupt router to route PCI legacy INTx interrupts to
the legacy 8259A PICs.

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

9 years agoMFC r268715,r268722:
bdrewery [Tue, 22 Jul 2014 00:33:41 +0000 (00:33 +0000)]
MFC r268715,r268722:

    Document the 'show bio' command added in 2009.
    Also link 'show bio' to g_bio(9.)

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

9 years agoMFC r268632:
pfg [Mon, 21 Jul 2014 23:23:20 +0000 (23:23 +0000)]
MFC r268632:
fsck_msdosfs: Assorted fixes from other BSDs.

When truncating cluster chains fix the length of the cluster head.
http://marc.info/?t=140304310700005&r=1&w=2

Avoid infinite loops in cluster chain linked lists.
http://marc.info/?l=openbsd-tech&m=140275150804337&w=2

Avoid off-by-one on FAT12 filesystems.
http://marc.info/?l=openbsd-tech&m=140234174104724&w=2

Obtained from: NetBSD (from OpenBSD)

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

9 years agoMFC r268798, r268799, r268801:
pfg [Mon, 21 Jul 2014 22:59:40 +0000 (22:59 +0000)]
MFC r268798, r268799, r268801:
grep: Fix type.
grep: fix some memory leaks.

queue.c (CVS Rev. 1.4. 1.5)
Fix memory leaks.
NULL does not need a cast.

grep.c (CVS Rev. 1.6)
Use the more portable getline.

Obtained from: NetBSD

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

9 years agoMFC r268644:
pfg [Mon, 21 Jul 2014 22:47:59 +0000 (22:47 +0000)]
MFC r268644:
libc/stdlib: Minor cleanups to code originating in NetBSD

Mostly ANSIfication and typos.

Obtained from: NetBSD

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

9 years agoMFC r268642:
pfg [Mon, 21 Jul 2014 22:37:33 +0000 (22:37 +0000)]
MFC r268642:
libc/gen: small updates to code originating at OpenBSD

arc4random.c
- CVS rev. 1.22
Change arc4random_uniform() to calculate ``2**32 % upper_bound'' as
``-upper_bound % upper_bound''. Simplifies the code and makes it the
same on both ILP32 and LP64 architectures, and also slightly faster on
LP64 architectures by using a 32-bit remainder instead of a 64-bit
remainder.
- CVS rev. 1.23
Spacing

readpassphrase.c
-CVS rev. v 1.24
most obvious unsigned char casts for ctype

Obtained from: OpenBSD

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

9 years agoMFC r268114:
bdrewery [Mon, 21 Jul 2014 22:21:09 +0000 (22:21 +0000)]
MFC r268114:

  Change NFS readdir() to only ignore cookies preceding the given offset for
  UFS rather than for all but ZFS.

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

9 years agoMFC r268450 (by glebius). The leak affects stable/10 too.
np [Mon, 21 Jul 2014 20:38:21 +0000 (20:38 +0000)]
MFC r268450 (by glebius).  The leak affects stable/10 too.

In several cases in ip_output() we obtain reference on ifa. Do not
leak it.

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

9 years agoMFC r268017 and r268018
sbruno [Mon, 21 Jul 2014 20:08:53 +0000 (20:08 +0000)]
MFC r268017 and r268018

268017:
Check return of cam_periph_find() before using it in a printf.

268018:
Add detection for ciss(4)  controllers that are set to non-raid JBOD mode.

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

9 years agoMFC 264353,264509,264768,264770,264825,264846,264988,265114,265165,265365,
jhb [Mon, 21 Jul 2014 19:08:02 +0000 (19:08 +0000)]
MFC 264353,264509,264768,264770,264825,264846,264988,265114,265165,265365,
265941,265951,266390,266550,266910:
Various bhyve fixes:
- Don't save host's return address in 'struct vmxctx'.
- Permit non-32-bit accesses to local APIC registers.
- Factor out common ioport handler code.
- Use calloc() in favor of malloc + memset.
- Change the vlapic timer frequency to be in the ballpark of contemporary
  hardware.
- Allow the guest to read the TSC via MSR 0x10.
- A VMCS is always inactive when it exits the vmx_run() loop.  Remove
  redundant code and the misleading comment that suggest otherwise.
- Ignore writes to microcode update MSR.  This MSR is accessed by RHEL7
  guest.
  Add KTR tracepoints to annotate wrmsr and rdmsr VM exits.
- Provide an alias for the userboot console and name it 'comconsole'.
- Use EV_ADD to create an mevent and EV_ENABLE to enable it.
- abort(3) the process in response to a VMEXIT_ABORT.
- Don't include the guest memory segments in the bhyve(8) process core dump.
- Make the vmx asm code dtrace-fbt-friendly.
- Allow vmx_getdesc() and vmx_setdesc() to be called for a vcpu that is in
  the VCPU_RUNNING state.
- Enable VMX in the IA32_FEATURE_CONTROL MSR if it not enabled and the MSR
  isn't locked.

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

9 years agoMFC 264347:
jhb [Mon, 21 Jul 2014 18:26:51 +0000 (18:26 +0000)]
MFC 264347:
Account for the "plus 1" encoding of the CPUID Function 4 reported
core per package and cache sharing values.

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

9 years agoMFC 264275:
jhb [Mon, 21 Jul 2014 18:23:48 +0000 (18:23 +0000)]
MFC 264275:
Explicitly initialize 'vmname' to NULL.

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

9 years agoMFC r266847: Add missing , in converted font output
emaste [Mon, 21 Jul 2014 18:13:14 +0000 (18:13 +0000)]
MFC r266847: Add missing , in converted font output

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

9 years agoMFC syscons(4) man page updates:
emaste [Mon, 21 Jul 2014 16:21:17 +0000 (16:21 +0000)]
MFC syscons(4) man page updates:

r268050: Add a vt(4) cross reference to syscons(4)

r268169: Clarify the setting of syscons driver flags

  Submitted by: wblock

r268215: Describe kern.vty sc/vt tunable in syscons(4)

  Reviewed by: wblock

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

9 years agoMFC r268460 by ray:
emaste [Mon, 21 Jul 2014 14:31:57 +0000 (14:31 +0000)]
MFC r268460 by ray:

  Fix inconsistent token parameters for kbd_allocate() and kbd_release()
  in vt(4).

PR: 191306
Submitted by: jau789 at gmail.com
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r267603 by trasz: Add polish vt(4) keymap.
emaste [Mon, 21 Jul 2014 13:51:29 +0000 (13:51 +0000)]
MFC r267603 by trasz: Add polish vt(4) keymap.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r268532 and r268585. When world and kernel are built without INET6
cy [Mon, 21 Jul 2014 06:45:19 +0000 (06:45 +0000)]
MFC r268532 and r268585. When world and kernel are built without INET6
support, the userland was still built with INET6 turned on.

PR: 190964
Approved by: glebius (mentor, implicit)

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

9 years agoMFC 263780,264516,265062,265101,265203,265364:
jhb [Mon, 21 Jul 2014 02:39:17 +0000 (02:39 +0000)]
MFC 263780,264516,265062,265101,265203,265364:
Add an ioctl to suspend a virtual machine (VM_SUSPEND).

Add logic in the HLT exit handler to detect if the guest has put all vcpus
to sleep permanently by executing a HLT with interrupts disabled.

When this condition is detected the guest with be suspended with a reason of
VM_SUSPEND_HALT and the bhyve(8) process will exit.

This logic can be disabled via the tunable 'hw.vmm.halt_detection'.

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

9 years agoMFC 264916,267611:
jhb [Mon, 21 Jul 2014 02:17:28 +0000 (02:17 +0000)]
MFC 264916,267611:
Provide a very basic stub for the 8042 PS/2 keyboard controller.

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

9 years agoMFC 260847,264055,264867:
jhb [Mon, 21 Jul 2014 00:21:56 +0000 (00:21 +0000)]
MFC 260847,264055,264867:
- Add a very simple virtio_random(4) driver for FreeBSD guests to harvest
  entropy from hypervisors.
- Add support to bhyve for the virtio RNG entropy-source device to provide
  entry to bhyve guests.

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

9 years agoMFC 262331,262487,262495,262523:
jhb [Sun, 20 Jul 2014 22:54:03 +0000 (22:54 +0000)]
MFC 262331,262487,262495,262523:
ZFS boot support for bhyveload.

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

9 years agoMFC: r263650, r263686
bapt [Sun, 20 Jul 2014 10:54:45 +0000 (10:54 +0000)]
MFC: r263650, r263686

Add missing dependency on libm

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

9 years agoMFC r268795:
mav [Sun, 20 Jul 2014 07:35:00 +0000 (07:35 +0000)]
MFC r268795:
Fix ctld crash on startup if target alias is not set.

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

9 years agoMFC r268790
hiren [Sun, 20 Jul 2014 02:15:14 +0000 (02:15 +0000)]
MFC r268790

Fix a typo.

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

9 years agoMFC: r261032
bapt [Sun, 20 Jul 2014 00:34:54 +0000 (00:34 +0000)]
MFC: r261032
Add quiet support for kldstat -n

PR: bin/180014
Submitted by: Olivier Cochard-Labbé <olivier at cochard.me>

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

9 years agoMFC: r267376
bapt [Sun, 20 Jul 2014 00:32:22 +0000 (00:32 +0000)]
MFC: r267376

Add a zlib pkg-config file (more and more ports requires it)

Approved by: delphij

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

9 years agoMFC: r267131, r267132, r267133, r268493, r268671
bapt [Sun, 20 Jul 2014 00:29:41 +0000 (00:29 +0000)]
MFC: r267131, r267132, r267133, r268493, r268671

Use NULL instead of 0 (Patch by Sascha Wildner <saw at online.de> for Dragonfly)
Remove unnecessary semicolons (Patch by Sascha Wildner <saw at online.de> for Dragonfly)
Add support for arbitrary http requests [1]
Support EAGAIN in fetch_writev

Submitted by: Alex Hornung <alex at alexhornung.com> [1]
Reviewed by: des

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

9 years agoMFC: r257315, r260445, r264803
bapt [Sun, 20 Jul 2014 00:21:38 +0000 (00:21 +0000)]
MFC: r257315, r260445, r264803

Update byacc to 20140422

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

9 years agoMFC: r263648, r264789, r266636
bapt [Sat, 19 Jul 2014 23:44:57 +0000 (23:44 +0000)]
MFC: r263648, r264789, r266636

This brings:
- schema validation
- xpath-like interface for ucl objects

Adapt pkg(7) to the new libucl API

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

9 years agoMFC 263432,265366,265376:
jhb [Sat, 19 Jul 2014 22:24:29 +0000 (22:24 +0000)]
MFC 263432,265366,265376:
Fixes for vcpu management in bhyve:
- Use 'cpuset_t' to represent the vcpus active in a virtual machine.
- Modify the "-p" option to be more flexible when associating a 'vcpu' with
  a 'hostcpu'.

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

9 years agoMFC 262884,263236,265407:
jhb [Sat, 19 Jul 2014 22:13:12 +0000 (22:13 +0000)]
MFC 262884,263236,265407:
Various uart fixes:
- Open the uart emulation's backing tty in non-blocking mode.
- Support 16-bit register access.
- Disable the 'uart_drain()' callback when the emulated receive FIFO
  is full.

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

9 years agoMFC 259942,262274,263035,263054,263211,263744,264179,264324,264468,264631,
jhb [Sat, 19 Jul 2014 22:06:46 +0000 (22:06 +0000)]
MFC 259942,262274,263035,263054,263211,263744,264179,264324,264468,264631,
264648,264650,264651,266572,267558:
Flesh out the AT PIC and 8254 PIT emulations and move them into the kernel.

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

9 years agoMFC 261904,261905,262143,262184,264921,265211,267169,267292,267294:
jhb [Sat, 19 Jul 2014 20:13:01 +0000 (20:13 +0000)]
MFC 261904,261905,262143,262184,264921,265211,267169,267292,267294:
Various PCI fixes:
- Allow PCI devices to be configured on all valid bus numbers from 0 to 255.
- Tweak the handling of PCI capabilities in emulated devices to remove
  the non-standard zero capability list terminator.
- Add a check to validate that memory BARs of passthru devices are 4KB
  aligned.
- Respect and track the enable bit in the PCI configuration address word.
- Handle quad-word access to 32-bit register pairs.

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

9 years agoMFC r268735:
hselasky [Sat, 19 Jul 2014 19:56:23 +0000 (19:56 +0000)]
MFC r268735:
Improve support for Intel Lynx Point USB 3.0 controllers by using the
USB 2.0 port mask in addition to the USB 3.0 port mask. The hardware
does not always accept when writing -1U to the port switching
registers.

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

9 years agoMFC r268774:
dim [Sat, 19 Jul 2014 18:33:09 +0000 (18:33 +0000)]
MFC r268774:

After r261991, clang warnings about unused functions in the kernel were
completely silenced.  Make sure these warnings appear again, so there is
some incentive to fix them, but do not error out the whole kernel build
for them.

Noticed by: steven@pyro.eu.org
PR: 191867

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

9 years agoMFC r268569:
pfg [Sat, 19 Jul 2014 15:12:38 +0000 (15:12 +0000)]
MFC r268569:
strfmon: reduce unnecessary snprintf.

No need for the snprintf/asprintf dance; use fixed width formats.

Obtained from: NetBSD (CVS rev. 1.8)

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

9 years agoMFC r268706:
np [Fri, 18 Jul 2014 00:31:06 +0000 (00:31 +0000)]
MFC r268706:
cxgbe(4): Display CF facility correctly in the device log.

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

9 years agoMFC r268373
truckman [Thu, 17 Jul 2014 23:49:01 +0000 (23:49 +0000)]
MFC r268373

Declaration whitespace changes for style(9).

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

9 years agoMFC:
imp [Thu, 17 Jul 2014 23:05:20 +0000 (23:05 +0000)]
MFC:

>r267118 | imp | 2014-06-05 11:13:42 -0600 (Thu, 05 Jun 2014) | 9 lines
>The code that combines adjacent ranges for BIO_DELETEs to optimize
>trims to the device assumes the list is sorted. Don't apply the
>optimization of not sorting the queue when we have SSDs to the
>delete_queue, since it causes more discard traffic to the drive. While
>one could argue that the higher levels should coalesce the trims,
>that's not done today, so some optimization at this level is needed.
>CR: https://phabric.freebsd.org/D142

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

9 years agoMFC:
imp [Thu, 17 Jul 2014 22:58:05 +0000 (22:58 +0000)]
MFC:

>r268205 | imp | 2014-07-02 23:22:13 -0600 (Wed, 02 Jul 2014) | 9 lines
>Rework the BIO_DELETE code slightly. Always queue the BIO_DELETE
>requests on the trim_queue, even for the CFA ERASE. This allows us, in
>the future, to collapse adjacent requests. Since CFA ERASE is only for
>CF cards, and it is so restrictive in what it can do, the collapse
>code is not presently here. This also brings the ada driver more in
>line with the da driver's treatment of BIO_DELETEs.

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

9 years agoMFC r263749,267146:
imp [Thu, 17 Jul 2014 22:31:46 +0000 (22:31 +0000)]
MFC r263749,267146:

>r267146 | imp | 2014-06-05 22:08:55 -0600 (Thu, 05 Jun 2014) | 4 lines
>Restore comments accidentally removed.

>r263749 | imp | 2014-03-25 16:08:31 -0600 (Tue, 25 Mar 2014) | 18 lines
>Rather than require a makeoptions DEBUG to get debug correct,
>add it in kern.mk, but only if we're using clang. While this
>option is supported by both clang and gcc, in the future there
>may be changes to clang which change the defaults that require
>a tweak to build our kernel such that other tools in our tree
>will work. Set a good example by forcing -gdwarf-2 only for
>clang builds, and only if the user hasn't specified another
>dwarf level already. Update UPDATING to reflect the changed
>state of affairs. This also keeps us from having to update
>all the ARM kernels to add this, and also keeps us from
>in the future having to update all the MIPS kernels and is
>one less place the user will have to know to do something
>special for clang and one less thing developers will need
>to do when moving an architecture to clang.

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

9 years agoMFC r268238:
delphij [Thu, 17 Jul 2014 06:36:22 +0000 (06:36 +0000)]
MFC r268238:

Add an option, -p, which makes gstat(8) to only display physical providers
(those with rank of 1).

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

9 years agoMFC r268116:
delphij [Thu, 17 Jul 2014 05:20:18 +0000 (05:20 +0000)]
MFC r268116:

 - Fix handling of "new" style of ioctl in compatiblity mode [1];
 - Reorganize code and reduce diff from upstream;
 - Improve forward compatibility shims for previous kernel;

Reported by:    sbruno [1]

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

9 years agoMFC r268628, r268631, r268635:
pfg [Thu, 17 Jul 2014 02:33:40 +0000 (02:33 +0000)]
MFC r268628, r268631, r268635:

Convert *rootDir from external to static.

fsck_msdosfs: be a bit more permissive.

The free space value in the FSInfo block is merely unitialized when it is
0xffffffff. This fixes a bug found in NetBSD.

Respect FSFIXFAT.

Fix some whitespace issues while here.

Obtained from: NetBSD (CVS rev. 1.22, rev. 1.9), OpenBSD (misc)

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

9 years agoMFC r268502:
pfg [Thu, 17 Jul 2014 02:14:25 +0000 (02:14 +0000)]
MFC r268502:
Sync some (mostly cosmetical) changes from NetBSD

Makefile,v 1.37
tc1.c v 1.3
Rename TEST/test.c tc1.c

common.c,v 1.23
pass lint on _LP64.

emacs.c,v 1.22
pass lint on _LP64.

filecomplete.h,v 1.8
mv NetBSD ID back from 1.9 as we don't
have the widecharacter support.

prompt.c,v 1.14
prompt.h,v 1.9
term.h,v 1.20
read.h,v 1.6
Update NetBSD version strings

sys.h,v 1.12
Misc sun stuff.

tty.c 1.31
handle EINTR in the termios operations
Allow a single process to control multiple ttys (for pthreads using _REENTRANT)
using multiple EditLine objects.
pass lint on _LP64.
Don't depend on side effects inside an assert

Obtained from: NetBSD

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

9 years agoMFC r268463:
dim [Wed, 16 Jul 2014 21:04:31 +0000 (21:04 +0000)]
MFC r268463:

In libproc, avoid calling __cxa_demangle(), and thus depending on either
libcxxrt or libsupc++, if WITHOUT_CXX is defined. [1]

Noticed by: sbruno

[1] However, on stable/10 this is more accurately described by
WITHOUT_GNUCXX, so I've changed the test to that instead.

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

9 years agoMerge r268298,r268299 from head:
gavin [Wed, 16 Jul 2014 12:57:53 +0000 (12:57 +0000)]
Merge r268298,r268299 from head:
  Correct format string to fix build of uhsoctl when DEBUG is defined

PR: 185007
Submitted by: saper saper.info

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

9 years agoMerge r267866 from head:
gavin [Wed, 16 Jul 2014 12:51:29 +0000 (12:51 +0000)]
Merge r267866 from head:
  Drop references to updating over csup from build(7).

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

9 years agoMerge r267865 from head:
gavin [Wed, 16 Jul 2014 12:49:56 +0000 (12:49 +0000)]
Merge r267865 from head:
  Drop example variables for updating over csup.  These have not functioned
  since r251084

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

9 years agoMerge r268342 from head:
gavin [Wed, 16 Jul 2014 12:45:13 +0000 (12:45 +0000)]
Merge r268342 from head:
  Remove /usr/share/doc/psd/28.cvs/paper.ps.gz if it exists, as it is
  obsolete since r251794.

PR: 191003
Submitted by: Vick Khera

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

9 years agoMerge r268295 from head:
gavin [Wed, 16 Jul 2014 12:41:50 +0000 (12:41 +0000)]
Merge r268295 from head:
  Fix equation and limerick to be correct.  NetBSD fixed this 14 years ago
  (src/games/fortune/datfiles/fortunes2 1.7).

PR: 188714
Submitted by: ksmakoto dd.iij4u.or.jp

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

9 years agoMerge r268292 from head:
gavin [Wed, 16 Jul 2014 12:37:36 +0000 (12:37 +0000)]
Merge r268292 from head:
  Dominion Day became Canada Day in 1982, update the holiday calendar.

PR: 191533
Submitted by: db

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

9 years agoMFC r268471:
kib [Wed, 16 Jul 2014 08:55:53 +0000 (08:55 +0000)]
MFC r268471:
For safety, ensure that any consumer of the set_regs() and
ptrace_set_pc() use the correct return to userspace using iret.

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

9 years agoMFC r268467:
kib [Wed, 16 Jul 2014 08:52:44 +0000 (08:52 +0000)]
MFC r268467:
Implement sysconf(_SC_GETGR_R_SIZE_MAX) and sysconf(_SC_GETPW_R_SIZE_MAX).

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

9 years agoMFC r268583:
hselasky [Wed, 16 Jul 2014 06:22:35 +0000 (06:22 +0000)]
MFC r268583:
Turn off blinking device leds at attach.

PR: 183735

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

9 years agoMFC r268582:
hselasky [Wed, 16 Jul 2014 06:20:18 +0000 (06:20 +0000)]
MFC r268582:
Fix performance problems with AXGE network adapter in RX direction:
- Remove 4 extra bytes from the ethernet payload.
- The maximum RX buffer was incorrectly set. Increase it to 64K for
now, until the exact limit is understood.
- Enable hardware checksumming again.
- Make hardware data structure packed.

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

9 years agoMFC r268097:
pfg [Wed, 16 Jul 2014 02:02:46 +0000 (02:02 +0000)]
MFC r268097:

MFV r260708
4427 pid provider rejects probes with valid UTF-8 names

This make use of Solaris' u8_validate() which we happen to
use since r185029 for ZFS.
Use of u8_textprep.c required -Wno-cast-qual for powerpc.

Illumos Revision: 1444d846b126463eb1059a572ff114d51f7562e5

Reference:
https://www.illumos.org/issues/4427

Obtained from: Illumos

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

9 years agoMFC r268381
wblock [Wed, 16 Jul 2014 00:41:47 +0000 (00:41 +0000)]
MFC r268381

Make synopsis version of -3 flag match other uses in the page.

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

9 years agoMFC r268187:
wblock [Wed, 16 Jul 2014 00:36:55 +0000 (00:36 +0000)]
MFC r268187:

Improve markup, change references to nonexistent vt_vga(4), remove some
language redundancy, and move the examples so sections are in the
standard order.

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

9 years agoMFC r267617:
wblock [Tue, 15 Jul 2014 23:20:25 +0000 (23:20 +0000)]
MFC r267617:

Fix spelling, typos, missing articles, contractions.  Expanded version
of patch supplied with PR.

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

9 years agoMFC r267618:
wblock [Tue, 15 Jul 2014 22:44:10 +0000 (22:44 +0000)]
MFC r267618:

Fix syntax error.

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

9 years agoDocument CTL and iSCSI ABI breakages.
mav [Tue, 15 Jul 2014 18:41:30 +0000 (18:41 +0000)]
Document CTL and iSCSI ABI breakages.

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

9 years agoFix build on stable/10.
mav [Tue, 15 Jul 2014 18:27:18 +0000 (18:27 +0000)]
Fix build on stable/10.

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

9 years agoMFC r268388:
mav [Tue, 15 Jul 2014 18:23:14 +0000 (18:23 +0000)]
MFC r268388:
Add XPT_ABORT support to iSCSI initiator.

While CAM does not use it normally, it is useful for targets testing.

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

9 years agoMFC r268370:
mav [Tue, 15 Jul 2014 18:22:17 +0000 (18:22 +0000)]
MFC r268370:
Make XPT_GET_TRAN_SETTINGS to report CAM that command queueing is enabled,
but make couple changes to handle non-queued commands too, if happen.

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

9 years agoMFC r268326:
mav [Tue, 15 Jul 2014 18:21:26 +0000 (18:21 +0000)]
MFC r268326:
Make iSCSI initiator keep Initiator Session ID (ISID) across reconnects.

Previously ISID was changed every time, that made impossible correct
persistent reservation, because reconnected session was identified as
completely new one.

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

9 years agoMFC r268240 (by ken):
mav [Tue, 15 Jul 2014 17:26:43 +0000 (17:26 +0000)]
MFC r268240 (by ken):
Add persistent reservation support to camcontrol(8).

camcontrol(8) now supports a new 'persist' subcommand that allows users to
issue SCSI PERSISTENT RESERVE IN / OUT commands.

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

9 years agoMFC r268447:
mav [Tue, 15 Jul 2014 17:20:40 +0000 (17:20 +0000)]
MFC r268447:
Add LUN options to specify 64-bit EUI and NAA identifiers.

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

9 years agoMFC r268421:
mav [Tue, 15 Jul 2014 17:19:43 +0000 (17:19 +0000)]
MFC r268421:
Remove status setting from datamove() path.  Leave that to other places.

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

9 years agoMFC r268418:
mav [Tue, 15 Jul 2014 17:18:50 +0000 (17:18 +0000)]
MFC r268418:
Enable TAS feature: notify initiator if its command was aborted by other.

That should make operation more kind to multi-initiator environment.
Without this, other initiators may find out that something bad happened
to their commands only via command timeout.

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

9 years agoMFC r268387:
mav [Tue, 15 Jul 2014 17:17:52 +0000 (17:17 +0000)]
MFC r268387:
Fix task management functions status: task not found is not an error,
while not implemented function is.

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

9 years agoMFC r268364:
mav [Tue, 15 Jul 2014 17:16:58 +0000 (17:16 +0000)]
MFC r268364:
Fix "use after free" on port creation error in r268291.

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