195799 Commits

Author SHA1 Message Date
pfg
fac80b6943 MFC r267544:
Update license to strptime(3) implementation.

Our strptime(3) implementation was the base for the illumos
implementation and after contacting the author, Kevin Rudy
stated the code is under a 2-Clause BSD License [1]

After reviewing our local changes to the file in question,
the FreeBSD Foundation has agreed that their contributions
to this file are not required to carry clause 3 or 4 so
the file can be relicensed as in Illumos [2].

References:

[1] https://www.illumos.org/issues/357
[2] Illumos Revision:		13222:02526851ba75

Approved:	core (jhb)
Approved:	FreeBSD Foundation (emaste)
2014-06-20 15:43:58 +00:00
pfg
93d41081e3 MFC r267513:
Merge from r258379 missed the tests.

4248 dtrace(1M) should never create DOF with empty probes section
4249 Only probes from the first DTrace object file will be included

Illumos Revision:	54a20ab41aadcb81c53e72fc65886e964e9add59
2014-06-20 15:40:13 +00:00
tijl
fb2fa3180c MFC r267441:
Don't install GSS-API headers when the GSSAPI option has been disabled.
Some ports assume GSS-API is supported when they find the headers.

PR:		189156
Submitted by:	Garrett Cooper <yanegomi@gmail.com>
2014-06-20 07:35:55 +00:00
tijl
de4e2206d5 MFC r267436-267439:
- Replace malloc+memset with calloc.
- iconv_open(3): initialise ci_ilseq_invalid field of _citrus_iconv_shared
  struct after allocation with malloc.
- iconvlist(3): reduce a memory leak by copying strings only once.
- iconv(1):
  - Make invalids variable local to do_conv such that it prints the number
    of invalid characters of the current file instead of an accumulated
    value.
  - Make do_conv return an error when invalid characters have been found.
    Return EXIT_FAILURE from main if any file contained invalid characters.
    This matches the behaviour of GNU iconv.
  - Mark usage with __dead2 attribute.
  - Make the long_options array const.

Tested by:	Pavel Timofeev <timp87@gmail.com>
2014-06-20 07:32:03 +00:00
n_hibma
7944ea7242 MFC r261270:
Fix the ordering of the arguments to printf in
uhub_child_location_string(). This produced bogus information in

        dev.<USB driver>.<id>.%location

output from sysctl.
2014-06-18 22:09:33 +00:00
jimharris
0ce2e66f4e MFC r267342:
Use bitwise OR instead of logical OR when constructing value for
  SET_FEATURES/NUMBER_OF_QUEUES command.

Sponsored by:	Intel
2014-06-18 19:32:38 +00:00
kib
adb3a0aab0 MFC r267062:
Disable existing uncore hwpmc code for Nehalem and Westmere EX.
2014-06-18 05:35:09 +00:00
neel
13424f9f51 MFC r266901
Allocate a zeroed LDT.
Failing to do this might result in the LDT appearing to run out of free
descriptors because of random junk in the descriptor's 'sd_type' field.
2014-06-17 21:49:03 +00:00
gjb
652a2c3d9a Drop 'Inc.' for consistency.
Sponsored by:	The FreeBSD Foundation
2014-06-17 21:09:03 +00:00
gjb
32a5878f0f Correct the spelling of iXsystems.
Submitted by:	delphij
Sponsored by:	The FreeBSD Foundation
2014-06-17 21:07:34 +00:00
gjb
19c7c077a7 Add sponsorship attributions for stable/10.
Add iX and Netflix to the sponsors.ent file.

This is a direct commit to stable/10.

Sponsored by:	The FreeBSD Foundation
2014-06-17 20:32:36 +00:00
gjb
ddf8de6a5f MFC r265590, r265594, r265595, r265599 [1], r265601 [1],
r265602 [1], r265603 [1], r265605 [1], r265607 [1],
r267554 [1]:

r265590:
  Modify release.xsl to allow proper attribution for
  sponsored and/or contributed works.

r265594:
  Add two new entity files in followup to r265590,
  sponsor.ent and vendor.ent, which will be used for
  sponsor/vendor names and URLs.

r265595:
  Add references to sponsor.ent and vendor.ent in
  relnotes/article.xml and share/xml/catalog.xml.

r265599:
  Add DARPA, AFRL to sponsor.ent.

r265601:
  Add LSI and Spectra Logic to sponsor.ent.

r265602:
  Add Netgate to sponsor.ent.

r265603:
  Add a note to keep the entity lists sorted alphabetically.

r265605:
  Add Google to the sponsor.ent file.

r265607:
  Separate &darpa; entity and create &darpa_afrl to
  avoid confusion.

r267554:
  Add &citrix; and &citrix.rd; macros.

[1] - Partial, entity addition only.

Sponsored by:	The FreeBSD Foundation
2014-06-17 20:08:17 +00:00
trasz
f5b9259f17 MFC r266007:
Initialize loginclass mutex using MTX_SYSINIT instead of using SI_SUB_CPU.
2014-06-17 13:14:31 +00:00
brueffer
6ea96d0826 MFC: r267478
MFp4: change 1191346

In print_header32_tok(), correct printing in the XML case.  This lead to
invalid XML files before.

PR:		176259
Submitted by:	zi
2014-06-17 08:56:16 +00:00
mav
7b99979e56 MFC r267029, r267038:
Replace gethrtime() with cpu_ticks(), as source of random for the taskqueue
selection.  gethrtime() in our port updated with HZ rate, so unusable for
this specific purpose, completely draining benefit of multiple taskqueues.
2014-06-17 08:09:40 +00:00
bryanv
d418fd00cc MFC r267313:
Always append new bios to the tail of the queue, instead of sorting them
2014-06-17 05:24:45 +00:00
dchagin
4fc6560286 Revert MFC r266925 because it can lead to instant panic at fexecve():
To allow to run interpreter itself add a new ELF branding type.

Pointed out by:	kib, mjg
2014-06-17 05:21:48 +00:00
ray
e3bd23da81 MFC: 266838 266841 267194
Add gallant vt(4) font as an example of font loading for vt(4).
  Add Ukranian vt(4) keymaps as an example.

Sponsored by:	The FreeBSD Foundation
2014-06-16 12:37:10 +00:00
ray
d518940c2d MFC: 266836, 266839
vt(4) support for vidcontrol(1).
  o Teach vidcontrol(1) how to load vt(4) font.
  o Teach vidcontrol(1) to distinct which virtual terminal system is running now.
  o Load vt(4) fonts from different location.
  o Add $FreeBSD$ tag for path.h.
vt(4) support for kbdcontrol(1).
  Enable kbdcontrol(1) to use maps from vt(4) keymaps dir /usr/share/vt/keymaps
  if vt(4) is present.

Sponsored by:	The FreeBSD Foundation
2014-06-16 11:51:00 +00:00
ray
720dde12b5 MFC 262785 263183 264182 264999 265391 265392 265395 265397 265398 265402 265403
265442 265546 265680 265681 265719 265862 265864 265867 265927 266010 266495
    266540 266835 266856 266861 266862 267007 267310.

265391
  Define a new method for probing vt(4) driver before attach it at early stage.
265392
  Create dataset for vt(4) drivers.
265395
  Set of updates to vt(4) core part.
  o Declare vt(4) drivers dataset.
  o Create single static structures for all early drivers.
  o Add vt(4) to be by default in the kernel consoles list.
  o Create one more sysinit point, to be able to initialize memory and lock
  	requirement of early drivers.
  o Implement early drivers select. (Only best available will be selected).
  o Fix one missed "return (0)" for VTYLOCK.
  o Improve locking for cases when one driver replace another.
  o Make driver replacement notification less debug-look-like.
  o Minor spell fixes.
265397
  Switch fb and efifb drivers to use names and new vt(4) driver probe method.
265398
  Add vt(4) driver name for ofwfb driver.
265402
  Revert r264997 and r265026. It is not required anymore.
265403
  Switch vga drivers to use names and new vt(4) driver probe method.
265442
  Implement KDMKTONE ioctl.
265546
  Fix possible divide by zero.
265680
  No need to assign fields required and checked on probe.
265681
  Fix scrollback.
265719
  Hide debug messages under VT_DEBUG.
265927
  Update terminal sizes in any case when new vt(4) driver arrive.
  (Plus remove one unused newline)
266010
  Remove extra newlines.
  No functional changes.
266495
  Fix tty locking.
  o Correct expected values for VT_LOCKSWITCH ioctl.
  o Check current window for locked state.
266540
  Proper fix of VT_LOCKSWITCH ioctl.
266835
  Remove driver as unused.
267007
  Fix case when vt(4) started w/o driver assigned.
  o Always init locks and cv ASAP.
  o Initialize driver-independent parts even if driver probing fail.
  o Allow to call vt_upgrade anytime, for later loaded drivers.
  o New window flag VWF_READY, to track if window already initialized.
  Other updates:
  o Pass vd as a cookie for kbd_allocate.
  o Do not blank window on driver replacement.

Sponsored by:	The FreeBSD Foundation
2014-06-16 11:26:30 +00:00
hselasky
6e05704f9e MFC r267395:
- Fix out of range shifting bug in bitops.h.
- Make code a bit easier to read by adding parenthesis.
2014-06-15 18:32:02 +00:00
kib
71878da094 MFC r267227:
Remove write-only local variable.
2014-06-15 05:17:40 +00:00
kib
249e790152 MFC r267226:
Initialize the pbuf counter for directio using SYSINIT.
Mark ffs_rawread.c as requiring both ffs and directio options to be
compiled into the kernel.  Add ffs_rawread.c to the list of ufs.ko
module' sources.
2014-06-15 05:15:38 +00:00
edwin
f631a2c600 MFC of 267473,tzdata2014e
Fix historical data for Egypt.
Better prediction for future Egypt / Morocco changes.
Update to Cocos / Cook islands.
Fix historical data for Russia.
2014-06-14 11:46:22 +00:00
dim
7e5254e136 MFC r267335:
In some scenarios, when generating llvm/clang .inc.h files, multiple
source files could be passed to tblgen or clang-tblgen, leading to a
"Too many positional arguments specified" error message.  Fix this by
replacing the too-generic ${.ALLSRC} sources with explicit paths.

Reported by:	rysto32@gmail.com, rodrigc
2014-06-14 11:20:41 +00:00
pfg
b890481de0 MFC r266865;
Fix strcasecmp_l() and strncasecmp_l() POSIX 2008 compliance.

POSIX.1-2008 specifies that those two functions should be declared by
including <strings.h>, not <string.h> (the latter only has strcoll_l()
and strxfrm_l()):

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html

Bump __FreeBSD_version for ports that may be using the non-standard
reference.

Obtained from:	DragonFlyBSD
Reviewed by:	theraven
2014-06-14 02:57:40 +00:00
delphij
ab49cda147 MFC r267368:
Apply vendor fixes to the High Point drivers:

 - Don't call xpt_free_path() in os_query_remove_device() and
   always return TRUE.
 - Update os_buildsgl() to support build logical SG table which
   will be used by lower RAID module.
 - Return CAM_SEL_TIMEOUTstatus for SCSIcommand failed as target
   missing.

Many thanks to HighPoint for providing this driver update.

Submitted by:	Steve Chang
Reviewed by:	mav
2014-06-14 00:44:57 +00:00
jhb
30000c41d7 MFC 262744:
Add SMBIOS support.

A new option, -U, can be used to set the UUID in the System
Information (Type 1) structure.
2014-06-13 21:30:40 +00:00
jhb
f6a797dc57 MFC 262139,262140,262236,262281,262532:
Various x2APIC fixes and enhancements:
- Use spinlocks for the vioapic.
- Handle the SELF_IPI MSR.
- Simplify the APIC mode switching between MMIO and x2APIC.  The guest is
  no longer allowed to switch modes at runtime.  Instead, the desired mode
  is set when the virtual machine is created.
- Disallow MMIO access in x2APIC mode and MSR access in xAPIC mode.
- Add support for x2APIC virtualization assist in Intel VT-x.
2014-06-13 19:10:40 +00:00
bdrewery
2dcd5ca913 MFC r267174:
Fix some rpcgen sample file issues.

PR:	185582
2014-06-13 15:04:21 +00:00
jilles
e18f36ddeb MFC r267162: ktrace: Use designated initializers for the data_lengths array.
In the .o file, this only changes some line numbers (stable/10 amd64)
because element 0 is no longer explicitly initialized.

This should make bugs like FreeBSD-SA-14:12.ktrace less likely.

Discussed with:	des
2014-06-13 12:39:06 +00:00
brueffer
05d5b8b9d8 MFC: r267185
Minor improvements.
2014-06-13 12:01:55 +00:00
hselasky
3eab83e1a2 MFC r263191:
Add libusb_log_level enum.
2014-06-13 07:33:43 +00:00
jhb
d33f5b1253 MFC 262615,262624:
Workaround an apparent bug in VMWare Fusion's nested VT support where it
triggers a VM exit with the exit reason of an external interrupt but
without a valid interrupt set in the exit interrupt information.
2014-06-12 21:36:17 +00:00
jhb
3e1f2ae835 MFC 261638,262144,262506,266765:
Add virtualized XSAVE support to bhyve which permits guests to use XSAVE and
XSAVE-enabled features like AVX.
- Store a per-cpu guest xcr0 register and handle xsetbv VM exits by emulating
  the instruction.
- Only expose XSAVE to guests if XSAVE is enabled in the host.  Only expose
  a subset of XSAVE features currently supported by the guest and for which
  the proper emulation of xsetbv is known.  Currently this includes X87, SSE,
  AVX, AVX-512, and Intel MPX.
- Add support for injecting hardware exceptions into the guest and use this
  to trigger exceptions in the guest for invalid xsetbv operations instead
  of potentially faulting in the host.
- Queue pending exceptions in the 'struct vcpu' instead of directly updating
  the processor-specific VMCS or VMCB. The pending exception will be delivered
  right before entering the guest.
- Rename the unused ioctl VM_INJECT_EVENT to VM_INJECT_EXCEPTION and restrict
  it to only deliver x86 hardware exceptions. This new ioctl is now used to
  inject a protection fault when the guest accesses an unimplemented MSR.
- Expose a subset of known-safe features from leaf 0 of the structured
  extended features to guests if they are supported on the host including
  RDFSBASE/RDGSBASE, BMI1/2, AVX2, AVX-512, HLE, ERMS, and RTM.  Aside
  from AVX-512, these features are all new instructions available for use
  in ring 3 with no additional hypervisor changes needed.
2014-06-12 19:58:12 +00:00
gjb
572e5ac453 Fix a typo in note for r266890, pmcstat(8)
Sponsored by:	The FreeBSD Foundation
2014-06-12 17:21:11 +00:00
jhb
8119d8278f MFC 266263,266551,266552:
- Add definitions for more structured extended features as well as
  XSAVE Extended Features for AVX512 and MPX (Memory Protection Extensions).
- Don't permit users to request a subset of the AVX512 or MPX xsave masks.
2014-06-12 17:15:56 +00:00
gjb
9a085d96e7 MFC r267326, r267327:
r267326:
  Add empty pkg-stage file to CLEANFILES if WITH_DVD=1.

r267327:
  Fix indentation level.

Sponsored by:	The FreeBSD Foundation
2014-06-12 17:13:35 +00:00
gjb
149b9c04da Document r266890, pmcstat(8) '-l' flag.
Sponsored by:	The FreeBSD Foundation
2014-06-12 16:55:04 +00:00
wblock
3a37604e59 MFC r267090:
Correct the document date for last change.
2014-06-12 15:46:24 +00:00
jhb
cebc7c305f MFC 262311: Fix virtio spec URL. 2014-06-12 15:24:33 +00:00
jhb
fa121e2a05 MFC 261504:
Add support for FreeBSD/i386 guests under bhyve.
2014-06-12 15:20:59 +00:00
jhb
a9824f54c0 MFC 261503,264501:
Emulate the byte move and zero/sign extend instructions.
2014-06-12 13:48:52 +00:00
jhb
d87aa1ec6e MFC 261229:
o Fix typo, sort .Xrs.

PR:		docs/186191
2014-06-12 13:17:11 +00:00
jhb
835cb387cc MFC 260239,261268,265058:
Expand the support for PCI INTx interrupts including providing interrupt
routing information for INTx interrupts to I/O APIC pins and enabling
INTx interrupts in the virtio and AHCI backends.
2014-06-12 13:13:15 +00:00
bryanv
7f22c45d08 MFC r267252, r267253:
- Remove an unnecessary variable reassignment
  - Fix TSO support on VMware Fusion
2014-06-12 04:47:14 +00:00
emaste
377623ace4 MFC r267109, r267179: Update vt(4) "Terminus BSD Console" font
"Terminus BSD Console" is a derivative of Terminus that is provided
  by Mr. Dimitar Zhekov under the 2-clause BSD license for use by the
  FreeBSD vt(4) console.

  Clarify statement on font origin
2014-06-12 01:33:01 +00:00
hselasky
7905925f36 MFC r267066 and r267041:
Fixes for the RSU driver:
- The R92S_TCR register is an 8-bit register. Don't access it like a
16-bit register.
- Disable parsing the delete station event, due to many false events.
- Ensure that there is only one transfer queue for each endpoint, so
to hal packets transmitted don't get out of order.
- Properly align temporary buffer to 32-bit.
- Add an extra parenthesis to make expression clear.
- Range check the association ID received from hardware.
2014-06-11 05:50:04 +00:00
hselasky
6976be81b3 MFC r267240:
Resolve a deadlock setting the USB configuration index from userspace
on USB HUBs by moving the code into the USB explore threads. The
deadlock happens because child devices of the USB HUB don't have the
expected reference count when called from outside the explore
thread. Only the HUB device itself, which the IOCTL interface locks,
gets the correct reference count.
2014-06-11 05:39:08 +00:00
kib
150b18f93d MFC r267060:
Allow shared locking for the tmpfs vnode.
2014-06-11 03:59:14 +00:00