195776 Commits

Author SHA1 Message Date
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
rmacklem
f8127115e6 MFC: r267191
The new NFS server would not allow a hard link to be
created to a symlink. This restriction (which was
inherited from OpenBSD) is not required by the NFS RFCs.
Since this is allowed by the old NFS server, it is a
POLA violation to not allow it. This patch modifies the
new NFS server to allow this.
2014-06-10 22:36:01 +00:00
jhb
e2cfb98334 MFC 261217:
Remove support for legacy PCI devices.  These haven't been needed since
support for LPC uart devices was added and it conflicts with upcoming
patches to add PCI INTx support.

Approved by:	grehan
2014-06-10 21:20:37 +00:00
jhb
986f765d45 MFC 261000,261785,263238,263322,264302:
Various AHCI fixes:
- Fix issue with stale fields from a recycled request pulled off the
  freelist.
- Provide an indication a "PIO Setup Device to Host FIS" occurred while
  executing the IDENTIFY DEVICE and IDENTIFY PACKET DEVICE commands.
- Provide an indication a "D2H Register FIS" occurred during a SET FEATURES
  command.
- Though there currently isn't a way to insert new media into an ATAPI
  drive, at least pretend to support Asynchronous Notification (AN) to
  avoid a guest needlessly polling for it.
- Don't reissue in-flight commands.
- Constrain the amount of data returned to what is actually available
  not the size of the buffer.
2014-06-10 19:00:14 +00:00
luigi
3320f64ddd MFC 267284
Fixes from Fanco Ficthner on transparent mode

* The way rings are updated changed with the last API bump.
  Also sync ->head when moving slots in netmap_sw_to_nic().

* Remove a crashing selrecord() call.

* Unclog the logic surrounding netmap_rxsync_from_host().

* Add timestamping to RX host ring.

* Remove a couple of obsolete comments.

Submitted by:	Franco Fichtner
MFC after:	3 days
Sponsored by:	Packetwerk
2014-06-10 17:24:46 +00:00
luigi
0dd7bfef95 MFC 267328:
change the netmap mbuf destructor so the same code works also on FreeBSD 9.
For head and 10 this change has no effect, but on stable/9 it would cause
panics when using emulated netmap on top of a standard device driver.

MFC after:	3 days
2014-06-10 17:17:44 +00:00
hselasky
e02a00d288 MFC r267212:
Make WITNESS happy by giving USB mutexes different names.
2014-06-10 04:44:28 +00:00
bryanv
b2f0bd8d85 MFC r266951:
Split the virtio.h header file into multiple files

  Reorganize the previous contexts of the file as it is in Linux. The
  eventual goal is to install the header files and share them between
  the kernel and bhyve.
2014-06-10 03:23:35 +00:00
bjk
bc20a2fb62 MFC r266416:
------------------------------------------------------------------------
    r266416 | bjk | 2014-05-18 17:05:54 -0400 (Sun, 18 May 2014) | 14 lines

    Document some user-settable make variables in ports.7

    This is not a comprehensive list, as the variables themselves are spread
    out over multiple files, but it is a start.

    Add a section to make.conf noting that variables may be set there that
    affect ports builds, but refer to ports.7 and elsewhere for the actual
    listing; any listing in make.conf.5 would likely become out of date
    fairly quickly.

    PR:             docs/189199
    Reviewed by:    bdrewery (previous version)
    Approved by:    hrs (mentor)

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

PR:		189199
Approved by:	hrs (mentor)
2014-06-09 23:11:50 +00:00
gjb
b02f5696fa Document r267258, OpenSSL update to 1.0.1h.
Sponsored by:	The FreeBSD Foundation
2014-06-09 20:54:23 +00:00
luigi
ebbf6b80b7 sync netmap code with the version in HEAD:
- fix handling of tx mbufs in emulated netmap mode;
- introduce mbq_lock() and mbq_unlock()
- rate limit some error messages
- many whitespace and comment fixes
2014-06-09 15:24:45 +00:00
luigi
2472187c4f MFC 267168:
misc bugfixes:
- stdio.h is needed for fprint()
- make memsize uint32_t to avoid errors due to overflow
- honor the *XPOLL flagg in NIOCREGIF requests
- mmap fails wit MAP_FAILED, not NULL.
2014-06-09 15:16:17 +00:00
luigi
34919b06cf MFC 267167: whitespace changes (comments) 2014-06-09 15:15:08 +00:00
luigi
63bea6a967 MFC svn 267065 and 267187
make sure ifp->if_transmit returns 0 if a buffer is enqueued.
This should also be merged to stable/9.

After this fix, drivers still known to have this bug are igxbe/ixv
and i40e.

Drivers using if_transmit are correct, and so are most of the
other drivers that reassing if_transmit.

Among other things, this bug causes panics when using netmap emulation
on top of generic drivers.
2014-06-09 15:09:05 +00:00
kevlo
5fc12f2e25 MFC r267089:
Remove D-Link DWA140 rev D1 by accident.
2014-06-09 07:21:42 +00:00
jkim
309e057bcf MFC: r267256
Merge OpenSSL 1.0.1h.

Approved by:	so (delphij)
2014-06-09 06:00:28 +00:00
brueffer
679c7dcca6 MFC: r267184
Add vte(4) to the hardware notes.
2014-06-09 05:56:18 +00:00
gjb
e23e1cb5a5 Document r267236, ttys 'onifconsole'
Sponsored by:	The FreeBSD Foundation
2014-06-09 02:30:57 +00:00
gjb
9e92aee6cf MFC r267160:
Dereference portaudit(1), as it is now deprecated and its
  functionality exists in pkg-audit(8).

Sponsored by:	The FreeBSD Foundation
2014-06-09 01:24:53 +00:00
np
fcef7f1441 MFC r267082:
cxgbe(4):  Properly account for the freelist buffers used when returning
early from service_iq due to a budget restriction.  This fixes a potential
rx hang when using INTx.
2014-06-08 23:22:25 +00:00
hselasky
b3c42ea5db MFC r267044, r267120, r267210 and r267211:
Multiple fixes for FULL and LOW speed USB transfers going through
the DWC OTG as split transactions. INTERRUPT transfers should have
a higher chance of success after this series of patches and the
chance of data loss should be reduced.
2014-06-08 20:39:39 +00:00
nwhitehorn
dc45432cd4 MFC r260913,266895:
Add a new flag to /etc/ttys: onifconsole. This is equivalent to "on" if the
device is an active kernel console and "off" otherwise. This is designed to
allow serial-booting x86 systems to provide a login prompt on the serial line
by default without providing one on all systems by default. Set this flag
on x86 systems for ttyu0.

Comments and suggestions by:	grehan, dteske, jilles
2014-06-08 17:50:07 +00:00
emaste
4c7f4e5ef3 MFC r267078, r267079:
Update vt(4) console font author's email address
   Remove extra copy of old email address.
2014-06-08 14:02:25 +00:00
brueffer
597700b022 MFC: r266931
Grammar cleanup; sort SEE ALSO.
2014-06-07 19:12:43 +00:00