]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoMFC r252056:
smh [Thu, 27 Jun 2013 18:20:19 +0000 (18:20 +0000)]
MFC r252056:
Fix destroyed ZFS pools failing to import

MFC r252059:
Fix ZFS zpool freeze (debug command) not processing due to invalid ioctl call syntax.

MFC r252060:
Fix intermittent ZFS lock panic

MFC r252061:
Switch ZFS mutex_owner macro to use sx_xholder as its now exported via sx.h

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

10 years agoFix build: in a recent pf refactor (head@240233), pf_var.h was modified
delphij [Thu, 27 Jun 2013 17:33:04 +0000 (17:33 +0000)]
Fix build: in a recent pf refactor (head@240233), pf_var.h was modified
to not include netinet/tcp_fsm.h, and HEAD tcpdump rely on this change
as the tcp_fsm.h will only be processed once.

Solve this by defining TCPSTATES earlier.  This wouldn't cause breakage
should pf be merged in the future.

Noticed by: tinderbox via many
Pointy hat to: delphij

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

10 years agoMFC r230786, r246283, r251084, r251085, r251086:
gjb [Thu, 27 Jun 2013 13:03:19 +0000 (13:03 +0000)]
MFC r230786, r246283, r251084, r251085, r251086:

r230786 (imp):
- Allow specification of build shell for the buildenv target.

r246283 (hrs) (partial):
- Add {WORLD,KERNEL}_FLAGS to [BTWK]MAKE.

r251084:
- r245757 introduced warning output if update method is set to
  CVS_UPDATE or SUP_UPDATE.
- CVS exporter for stable/9/ is turned off for nearly one month
  now.
- It is finally time to swing the ax at these update methods.

r251085:
- Fix typo introduced in r251084.

r251086:
- Remove references to CVS_UPDATE and SUP_UPDATE to catch up
  with r251084.

Approved by: kib (mentor)

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

10 years agoMFC r252045:
smh [Thu, 27 Jun 2013 10:55:35 +0000 (10:55 +0000)]
MFC r252045:
Corrected ATA Passthrough defines from decimal to hex

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

10 years agoMFC: r252180
marius [Thu, 27 Jun 2013 09:30:09 +0000 (09:30 +0000)]
MFC: r252180

Flag mpt(4) as supporting unmapped I/O; all necessary conversion actually
already has been done as part of r246713 (MFCed to stable/9 in r251874)
except for a comment update.

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

10 years agoMFC: r251715
marius [Thu, 27 Jun 2013 09:23:53 +0000 (09:23 +0000)]
MFC: r251715

All of Oxford/PLX OX16PCI954, OXm16PCI954 and OXu16PCI954 share the
exact same (subsystem) device and vendor IDs. However, the reference
design for the OXu16PCI954 uses a 14.7456 MHz clock (as does the EXSYS
EX-41098-2 equipped with these), while at least the OX16PCI954 defaults
to a 1.8432 MHz one. According to the datasheets of these chips, the
only difference in PCI configuration space is that OXu16PCI954 have
a revision ID of 1 while the other two are at 0. So employ the latter
for determining the default clock rates of this family.

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

10 years agoMFC: r251713
marius [Thu, 27 Jun 2013 09:22:36 +0000 (09:22 +0000)]
MFC: r251713

Fix whitespace and normalize some entries.

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

10 years agoMFC: r248472
marius [Thu, 27 Jun 2013 09:21:22 +0000 (09:21 +0000)]
MFC: r248472

Correct the definition for Exar XR17V258IV: we must use a config_function
to specify the offset into the PCI memory spare at which each serial port
will find its registers.  This was already done for other Exar PCI serial
devices; it was accidentally omitted for this specific device.

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

10 years agoMFC: r248340
marius [Thu, 27 Jun 2013 09:20:22 +0000 (09:20 +0000)]
MFC: r248340

Add support for Exar XR17V358 8-port serial device to puc(4)

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

10 years agoMFC: r251589
marius [Thu, 27 Jun 2013 09:14:50 +0000 (09:14 +0000)]
MFC: r251589

- The method introduced as part of r234898 (MFCed to stable/9 in r236076)
  for not altering the boot path when booting from ZFS turned out to also
  cause the boot path not being adjusted if booting from CD-ROM with firmware
  versions that do not employ the "cdrom" alias in that case. So shuffle the
  code around instead in order to achieve the original intent. Ideally, we
  shouldn't fiddle with the boot path when booting from UFS on a disk either;
  unfortunately, there doesn't seem to be an universal way of telling disks
  and CD-ROMs apart, though. [1]
- Use NULL instead of 0 for pointers.

PR: 179289 [1]

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

10 years agoMFC r251684:
kib [Thu, 27 Jun 2013 07:27:08 +0000 (07:27 +0000)]
MFC r251684:
Fix two issues with the spin loops in the umtx(2) implementation.
- When looping, check for the pending suspension.
- Add missed checks for the faults from casuword*().

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

10 years agoMFC 230423, 230612, 232964, 252033, 252036, 252051:
hrs [Thu, 27 Jun 2013 06:57:09 +0000 (06:57 +0000)]
MFC 230423, 230612, 232964, 252033, 252036, 252051:

- Replace the beerware license on mdconfig(8) with standard 2-clause BSD.
- Rewrite option parsing in mdconfig(8).  This makes it more user-friendly
  by removing the ordering requirements and adding more descriptive error
  messages; it also makes it more readable and maintainable.
- Add "-f file" support to listing mode (-l).  When a -f option is
  specified, only md(4) devices which have the specified file as backing
  store are displayed.
- Use MD_NAME instead of "md".
- Use _PATH_DEV instead of "/dev/".
- Return -1 when the specified backing store file is not found in the md
  device list.

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

10 years agoMFC r249480:
mjg [Thu, 27 Jun 2013 02:27:13 +0000 (02:27 +0000)]
MFC r249480:
Add fdallocn function and use it when passing fds over unix socket.

This gets rid of "unp_externalize fdalloc failed" panic.

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

10 years agoMFC r250613:
jimharris [Thu, 27 Jun 2013 00:50:22 +0000 (00:50 +0000)]
MFC r250613:

Fix typo in net.inet.tcp.minmss sysctl description.

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

10 years agoMFC: tcpdump 4.4.0.
delphij [Thu, 27 Jun 2013 00:37:59 +0000 (00:37 +0000)]
MFC: tcpdump 4.4.0.

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

10 years agoMFC r251129: libpcap 1.4.0.
delphij [Thu, 27 Jun 2013 00:31:21 +0000 (00:31 +0000)]
MFC r251129: libpcap 1.4.0.

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

10 years agoMFC r251988:
kib [Wed, 26 Jun 2013 05:54:37 +0000 (05:54 +0000)]
MFC r251988:
Some clarifications and updates for the comments, mostly retrieved
from Bruce Evans.  Trim the trailing spaces.

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

10 years agoMFC r251985:
kib [Wed, 26 Jun 2013 05:49:29 +0000 (05:49 +0000)]
MFC r251985:
When enabling the cancellation, only process the pending cancellation
for asynchronous mode.

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

10 years agoMFC r252103:
pfg [Wed, 26 Jun 2013 04:34:16 +0000 (04:34 +0000)]
MFC r252103:

Define and use e2fs_lbn_t in ext2fs.

In line to what is done in UFS, define an internal type
e2fs_lbn_t for the logical block numbers.

This change is basically a no-op as the new type is unchanged
(int32_t) but it may be useful as bumping this may be required
for ext4fs.

Also, as pointed out by Bruce Evans:

-Use daddr_t for daddr in ext2_bmaparray(). This seems to
improve reliability with the reallocblks option.
- Add a cast to the fsbtodb() macro as in UFS.

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

10 years agoSet SRCBRANCH to stable/9 in release.conf.sample.
gjb [Wed, 26 Jun 2013 00:42:45 +0000 (00:42 +0000)]
Set SRCBRANCH to stable/9 in release.conf.sample.

This is a direct commit to stable/9.

Approved by: kib (mentor, implicit)

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

10 years agoMFC r251652, r251811, r252101:
gjb [Wed, 26 Jun 2013 00:38:40 +0000 (00:38 +0000)]
MFC r251652, r251811, r252101:

r251652:
  Add new script to run release builds.  The script is heavily based upon
  the release/generate-release.sh script by nwhitehorn.

  This script can use optional configuration file to override defaults,
  making running multiple serialzied builds with different specific
  configurations or architecture-specific tunings quite easy.

  Sample overrideable options are included in the release.conf.sample
  file.

r251811:
  Fix OSVERSION variable within PBUILD_FLAGS.

r252101:
  If MAKE_CONF and/or SRC_CONF are set and not character devices,
  copy to chroot to use with release build.

Approved by: kib (mentor, implicit)

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

10 years agoForced commit due to bad commit message in r252222.
jimharris [Wed, 26 Jun 2013 00:09:04 +0000 (00:09 +0000)]
Forced commit due to bad commit message in r252222.

MFC:
r240618, r240621, r240633, r240671, r240672, r240697, r240700, r241433,
r241434, r241657, r241658, r241659, r241660, r241661, r241662, r241663,
r241664, r241665, r241689, r242420, r243951, r244410, r244411, r244413,
r244549, r245136, r247963, r248729, r248730, r248731, r248732, r248733,
r248734, r248735, r248736, r248737, r248738, r248739, r248740, r248741,
r248746, r248747, r248748, r248749, r248754, r248755, r248756, r248757,
r248758, r248759, r248760, r248761, r248762, r248763, r248764, r248765,
r248766, r248767, r248768, r248769, r248770, r248771, r248772, r248773,
r248780, r248834, r248835, r248913, r248977, r249067, r249416, r249417,
r249418, r249419, r249420, r249421, r249422, r249432

Merge all NVMe-related changes since the original code was added to HEAD,
including linking it into the build.

Sponsored by: Intel

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

10 years ago240618, 240621, 240633, 240671, 240672, 240697, 240700, 241433,
jimharris [Tue, 25 Jun 2013 23:52:39 +0000 (23:52 +0000)]
240618, 240621, 240633, 240671, 240672, 240697, 240700, 241433,
241434, 241657, 241658, 241659, 241660, 241661, 241662, 241663,
241664, 241665, 241689, 242420, 243951, 244410, 244411, 244413,
244549, 245136, 247963, 248729, 248730, 248731, 248732, 248733,
248734, 248735, 248736, 248737, 248738, 248739, 248740, 248741,
248746, 248747, 248748, 248749, 248754, 248755, 248756, 248757,
248758, 248759, 248760, 248761, 248762, 248763, 248764, 248765,
248766, 248767, 248768, 248769, 248770, 248771, 248772, 248773,
248780, 248834, 248835, 248913, 248977, 249067, 249416, 249417,
249418, 249419, 249420, 249421, 249422, 249432

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

10 years agoMFC r240616, r240619, r240620:
jimharris [Tue, 25 Jun 2013 23:30:48 +0000 (23:30 +0000)]
MFC r240616, r240619, r240620:

Merge initial NVM Express (NVMe) commits to stable/9.

This only pulls the nvme(4), nvd(4) and nvmecontrol(8) code into stable/9.
A follow-up commit will link it into the build and merge all of the
additional commits made for NVMe over the last few months.

Sponsored by: Intel

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

10 years agoMFC r251560
bapt [Tue, 25 Jun 2013 21:49:06 +0000 (21:49 +0000)]
MFC r251560

Fix a bad calloc(3) call

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

10 years agoMFC: 249658, 249701
ken [Tue, 25 Jun 2013 21:43:49 +0000 (21:43 +0000)]
MFC: 249658, 249701

Update chio(1) and ch(4) to support reporting element designators.

This allows mapping a tape drive in a changer (as reported by
'chio status') to a sa(4) driver instance by comparing the
serial numbers.

The designators can be ASCII (which is printed out directly), binary
(which is printed in hex format) or UTF-8, which is printed in either
native UTF-8 format if the terminal can support it, or in %XX notation
for non-ASCII characters.  Thanks to Hiroki Sato <hrs@> for the
explanation and example UTF-8 printing code.

chio.h: Modify the changer_element_status structure to add new
fields and definitions from the SMC3r16 spec.

Rename the original CHIOGSTATUS ioctl to OCHIOGTATUS and
define a new CHIOGSTATUS ioctl.

Clean up some tab/space issues.

chio.c:  For the 'status' subcommand, print the designator field
if it is supplied by a device.

scsi_ch.h: Add new flags for DVCID and CURDATA to the READ
ELEMENT STATUS command structure.

Add a read_element_status_device_id structure
for the data fields in the new standard. Add new
unions, dt_or_obsolete and voltage_devid, to hold
and address data from either SCSI-2 or newer devices.

scsi_ch.c: Implement support for fetching device IDs with READ
ELEMENT STATUS data.

Add new arguments to scsi_read_element_status() to
allow the user to request the DVCID and CURDATA bits.
This isn't compiled into libcam (it's only an internal
kernel interface), so we don't need any special
handling for the API change.

If the user issues the new CHIOGSTATUS ioctl, copy all of
the available element status data out.  If he issues the
OCHIOGSTATUS ioctl, we don't copy the new fields in the
structure.

Fix a bug in chopen() that would result in the peripheral
never getting unheld if chgetparams() failed.

Sponsored by: Spectra Logic
Submitted by: Po-Li Soong

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

10 years agoMFC r250377:
eadler [Tue, 25 Jun 2013 20:02:57 +0000 (20:02 +0000)]
MFC r250377:
Allow the use of lowercase 'yes'

PR: bin/178422

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

10 years agoMFC r249980:
mav [Tue, 25 Jun 2013 07:32:49 +0000 (07:32 +0000)]
MFC r249980:
Give periph validity flag own periph reference.  That slightly simplifies
the release logic and covers hypothetical case if lock is dropped inside
the periph_oninval() method.

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

10 years agoMFC r251792:
mav [Tue, 25 Jun 2013 07:27:23 +0000 (07:27 +0000)]
MFC r251792:
Restore use of polling mode for disk cache flush in case of kernel panic.
While I am not sure that any extra hardware access is a good idea after
panic, that is an existing behaviour that should better work correctly.

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

10 years agoMFC r251743:
mav [Tue, 25 Jun 2013 07:17:10 +0000 (07:17 +0000)]
MFC r251743:
Improve firmware download status check.  Previous check was insufficient for
ATA since it ignored transport errors like command timeouts, while for SCSI
it was just wrong.

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

10 years agoMFC r251945:
mav [Tue, 25 Jun 2013 07:05:08 +0000 (07:05 +0000)]
MFC r251945:
Pass proper memory type to free() in ata_ali_chipinit().

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

10 years agoMFC r251796
bryanv [Tue, 25 Jun 2013 04:42:16 +0000 (04:42 +0000)]
MFC r251796

  Fix setting of the Rx filters

  QEMU 1.4 made the descriptor requirement stricter - the size of buffer
  descriptor must exactly match the number of MAC addresses provided.

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

10 years agoMFC of 250891, 250892, 250894, 250895, 250897, and 250901
mckusick [Mon, 24 Jun 2013 23:41:16 +0000 (23:41 +0000)]
MFC of 250891, 250892, 250894, 250895, 250897, and 250901

MFC 250891:

Properly spell sentinel (not sintenel or sentinal).
No functional changes.

Spotted by:  kib

MFC 250892:

Remove a bogus check for a NULL buffer pointer.
Add a KASSERT that it is not NULL.

Found by:    Coverity Scan, CID 1009114
Reviewed by: kib

MFC 250894:

Null a pointer after it is freed so that when it is returned
the return value is NULL. Based on the returned flags, the
return value should never be inspected in the case where NULL
is returned, but it is good coding practice not to return a
pointer to freed memory.

Found by:    Coverity Scan, CID 1006096
Reviewed by: kib

MFC 250895:

Add missing 28th element to softdep types name array.

Found by:    Coverity Scan, CID 1007621
Reviewed by: kib

MFC 250897:

Add missing buffer releases (brelse) after bread calls that return
an error. One could argue that returning a buffer even when it is
not valid is incorrect, but bread has always returned a buffer
valid or not.

Reviewed by: kib

MFC 250901:

Properly spell sentinel (missed in 250891)
No functional changes.

Spotted by:  Navdeep Parhar and Alexey Dokuchaev

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

10 years agoA set of MFCs allowing stable/9 to be built again on head after r250881:
marius [Mon, 24 Jun 2013 21:33:19 +0000 (21:33 +0000)]
A set of MFCs allowing stable/9 to be built again on head after r250881:

r250227:
Improve compatibility with recent flex from flex.sourceforge.net.

r250914:
Improve compatibility with old flex and fix build with GCC.

r250926 (partial):
Work around build breakages with GCC 4.2.

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

10 years agoMFC 251323:
jhb [Mon, 24 Jun 2013 19:18:01 +0000 (19:18 +0000)]
MFC 251323:
- Handle the recursed/not recursed flags with RA_RLOCKED in rw_assert().
- Tweak a panic message.

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

10 years agoMFC 252037: Document RA_RECURSED and RA_NOTRECURSED.
jhb [Mon, 24 Jun 2013 18:40:51 +0000 (18:40 +0000)]
MFC 252037: Document RA_RECURSED and RA_NOTRECURSED.

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

10 years agoMFC 251470:
jhb [Mon, 24 Jun 2013 18:27:44 +0000 (18:27 +0000)]
MFC 251470:
Do not compare the existing mask of a cpuset with a new mask when changing
the mask of a cpuset.  Also, change the cpuset's mask before updating the
masks of all children.  Previously changing a cpuset's mask first required
setting the mask to a super-set of both the old and new masks and then
changing it a second time to the new mask.

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

10 years agoMFC 250223,250233:
jhb [Mon, 24 Jun 2013 16:04:59 +0000 (16:04 +0000)]
MFC 250223,250233:
Similar to 233760 and 236717, export some more useful info about the
kernel-based POSIX semaphore descriptors to userland via procstat(1) and
fstat(1):
- Change sem file descriptors to track the pathname they are associated
  with and add a ksem_info() method to copy the path out to a
  caller-supplied buffer.
- Use the fo_stat() method of shared memory objects and ksem_info() to
  export the path, mode, and value of a semaphore via struct kinfo_file.
- Add a struct semstat to the libprocstat(3) interface along with a
  procstat_get_sem_info() to export the mode and value of a semaphore.
- Teach fstat about semaphores and to display their path, mode, and value.

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

10 years agoMerge r250039:
glebius [Mon, 24 Jun 2013 09:57:41 +0000 (09:57 +0000)]
Merge r250039:
  Remove useless ifdef KLD_MODULE from dummynet module unload path. This
  fixes panic on unload.

  Reported by:  pho

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

10 years agoMerge r249897:
glebius [Mon, 24 Jun 2013 09:55:37 +0000 (09:55 +0000)]
Merge r249897:
  Don't free memory that is going to be used as error string.

  PR:           bin/178121
  Submitted by: Garrett Cooper <yaneurabeya gmail.com>

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

10 years agoMerge r249896:
glebius [Mon, 24 Jun 2013 09:53:43 +0000 (09:53 +0000)]
Merge r249896:
  Restore the ipNetToMedia MIB, that was broken with new ARP commit
  in the r186119.

  Submitted by: Konstantin Kukushkin <dark rambler-co.ru>

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

10 years agoMerge r248570, 248582:
glebius [Mon, 24 Jun 2013 09:39:06 +0000 (09:39 +0000)]
Merge r248570, 248582:
  Add NGM_NAT_LIBALIAS_INFO command, that reports internal stats
  of libalias instance. To be used in the mpd5 daemon.

  Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>

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

10 years agoMerge r248507:
glebius [Mon, 24 Jun 2013 09:36:56 +0000 (09:36 +0000)]
Merge r248507:
  iwn(4) doesn't support adhoc mode.

  PR:           misc/177106
  Submitted by: Hiren Panchasara <hiren.panchasara gmail.com>

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

10 years agoMerge r248489:
glebius [Mon, 24 Jun 2013 09:35:14 +0000 (09:35 +0000)]
Merge r248489:
  There are actually two different cases when mlock(2) returns
  ENOMEM. Clarify this, taking text from SUS.

  Reviewed by:  kib

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

10 years agoMerge r248370:
glebius [Mon, 24 Jun 2013 09:33:21 +0000 (09:33 +0000)]
Merge r248370:
  Belatedly remove the vinum(4) manual page. The vinum
  manager is absent in FreeBSD since 6.0-RELEASE.

  Reviewed by:  joel

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

10 years agoMerge r248160:
glebius [Mon, 24 Jun 2013 09:26:54 +0000 (09:26 +0000)]
Merge r248160:
  Fix spelling.

  PR:           176777
  Submitted by: Andrey Simonenko <simon comsys.ntu-kpi.kiev.ua>

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

10 years agoMerge r248159:
glebius [Mon, 24 Jun 2013 09:25:38 +0000 (09:25 +0000)]
Merge r248159:
  Fix for quite a special case when userland emulates a netgraph node, and
  userland can reply to a message with NGM_HASREPLY bit set. In this case
  we should not wait for a response to a responce.

  PR:           176771
  Submitted by: Keith Reynolds <keith.reynolds tidalscale.com>

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

10 years agoMerge r248158:
glebius [Mon, 24 Jun 2013 09:23:24 +0000 (09:23 +0000)]
Merge r248158:
  Remove LIBALIAS_LOCK_ASSERT(), including a couple with an uninitialzed
  argument, in code that isn't compiled in kernel.

  PR:           kern/176667
  Sponsored by: Nginx, Inc.

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

10 years agoMerge r248155:
glebius [Mon, 24 Jun 2013 09:21:55 +0000 (09:21 +0000)]
Merge r248155:
  Reinitialize eh after pfil(9) processing.

  PR:           176764
  Submitted by: adri

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

10 years agoMerge r247911,r248187,r248254,r250797:
glebius [Mon, 24 Jun 2013 09:20:14 +0000 (09:20 +0000)]
Merge r247911,r248187,r248254,r250797:

Various quirks to enable headphones redirection on
various Lenovo laptops: X220, X1, X1 Carbon, T420,
T430, T430S, T520.

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

10 years agoMerge r247910:
glebius [Mon, 24 Jun 2013 09:14:38 +0000 (09:14 +0000)]
Merge r247910:
  Plug a memory leak.

  Reviewed by:  mav
  Sponsored by: Nginx, Inc.

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

10 years agoMerge r243569, r243601:
glebius [Mon, 24 Jun 2013 09:00:18 +0000 (09:00 +0000)]
Merge r243569, r243601:
  Re-initialize eh pointer after m_adj(), after ng_ether(4) and
  if_bridge(4) processing.

  Submitted by: Kohji Okuno <okuno.kohji jp.panasonic.com>
  Reviewed by:  yongari

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

10 years agoMerge r243151:
glebius [Mon, 24 Jun 2013 08:55:20 +0000 (08:55 +0000)]
Merge r243151:
  o Remove meaningless PROTOCOLS section.
  o Describe passing file descriptors as separate section.
    - Descriptors can be passed through any protocol of the UNIX family,
      not SOCK_STREAM and SOCK_SEQPACKET only. [1]
  o Describe socket options as separate section.
    - Move LOCAL_PEERCRED option to this section.
    - Describe struct xucred.
    - In LOCAL_CREDS section mention that credentials
      are passed only on the first read on non-datagram
      sockets.
  o Xref all mentioned system calls.

  Noticed by:   Igor Sysoev [1]

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

10 years agoMFC r251520: MFV r251519:
delphij [Mon, 24 Jun 2013 05:03:42 +0000 (05:03 +0000)]
MFC r251520: MFV r251519:

 * Illumos ZFS issue #3805 arc shouldn't cache freed blocks

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

10 years agoMFC r251478: MFV r251474:
delphij [Mon, 24 Jun 2013 05:00:31 +0000 (05:00 +0000)]
MFC r251478: MFV r251474:

 * Illumos zfs issue #3137 L2ARC compression

Whether or not to compress buffers entering the L2ARC is
controlled by "compression" setting on the dataset, when
compression is not "off", L2ARC compression is enabled.

The compress method is always LZ4 for L2ARC when enabled
because it works best for the scenario.

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

10 years agoMissed mergeinfo for r252135.
markj [Mon, 24 Jun 2013 01:09:28 +0000 (01:09 +0000)]
Missed mergeinfo for r252135.

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

10 years agoMFC r251872:
markj [Mon, 24 Jun 2013 01:03:58 +0000 (01:03 +0000)]
MFC r251872:
Be sure to actually decrement the "count" parameter for each processed
descriptor so that we return when the threshold has been reached.

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

10 years agoMFC r252042:
eadler [Sun, 23 Jun 2013 20:19:05 +0000 (20:19 +0000)]
MFC r252042:
Ports switched from dialog to dialog4ports some time ago.

PR: docs/179785

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

10 years agoMFC r251820. This fixes some symbol visibility issues with libsupc++ that broke
theraven [Sun, 23 Jun 2013 14:36:12 +0000 (14:36 +0000)]
MFC r251820.  This fixes some symbol visibility issues with libsupc++ that broke
 compilation of GNUstep libobjc.

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

10 years agoMFC: r251585
rmacklem [Sun, 23 Jun 2013 13:27:37 +0000 (13:27 +0000)]
MFC: r251585
Modify nfsstat.c so that it prints out an error when a non-root
user attempts to use the "-m" option and it fails.

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

10 years agoMFC r251799:
hrs [Sun, 23 Jun 2013 02:51:22 +0000 (02:51 +0000)]
MFC r251799:

Return ENETDOWN when the parent interface is down.

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

10 years agoMFC r251809, r251952, r252012:
pfg [Sat, 22 Jun 2013 21:31:59 +0000 (21:31 +0000)]
MFC r251809, r251952, r252012:

Re-sort ext2fs headers to make things easier to find.

In the ext2fs driver we have a mixture of headers:

- The ext2_ prefixed headers have strong influence from NetBSD
and are carry specific ext2/3/4 information.
- The unprefixed headers are inspired on UFS and carry implementation
specific information.

Do some small adjustments so that the information is easier to
find coming from either UFS or the NetBSD implementation.

Also
- Set MAXMNTLEN nearer to where it is used.
- Move EXT2_LINK_MAX to ext2_dir.h .
- Rename some prefixes in the Block Group Descriptor fields.

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

10 years agoMFC r251443: release: Allow empty extra distributions.
jilles [Sat, 22 Jun 2013 17:28:57 +0000 (17:28 +0000)]
MFC r251443: release: Allow empty extra distributions.

For example, WITHOUT_SHAREDOCS= in src.conf creates an empty doc
distribution.

Submitted by: Kurt Lidl
Tested by: Kurt Lidl

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

10 years agoMFC r250599:
markj [Sat, 22 Jun 2013 05:32:11 +0000 (05:32 +0000)]
MFC r250599:
Add a remark to the effect that a manually started relearn will always
result in the battery being completely drained, even in transparent learning
mode.

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

10 years agoMFC r246951:
markj [Sat, 22 Jun 2013 05:24:29 +0000 (05:24 +0000)]
MFC r246951:
Mark the coretemp(4) sysctls as MPSAFE, ensuring that Giant won't be held
unnecessarily by a user thread waiting to run on a specific CPU after
calling sched_bind().

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

10 years agoMFC r251166:
markj [Sat, 22 Jun 2013 04:50:25 +0000 (04:50 +0000)]
MFC r251166:
Add macros which allow one to define SDT probes with six or seven arguments;
they are needed when porting some of the Solaris providers (ip, iscsi, and
tcp in particular).

dtrace_probe() only takes five arguments from the probe site, so we need to
add the appropriate cast to allow for more than five arguments. The extra
arguments are later copied out of dtrace_probe()'s stack frame by
dtrace_getarg() (or the provider-specific getarg method) as needed.

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

10 years agoMFC r251723:
markj [Sat, 22 Jun 2013 04:03:57 +0000 (04:03 +0000)]
MFC r251723:
The functions are called pci_{msi,msix}_count(), not pci_count_{msi,msix}().

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

10 years agoMFC r251212, r251480:
pfg [Sat, 22 Jun 2013 02:22:12 +0000 (02:22 +0000)]
MFC r251212, r251480:

GCC: bring back experimental support for amdfam10/barcelona CPUs.

This is a revised subset of the support initially brought in in r236962
and later reverted. The collateral efects seem to have disappeared but
it is still recommended to set the CPUTYPE with caution.

While here also install AMD intrinsics header ammintrin.h

Reviewed by: jkim (ages ago)

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

10 years agoMFC: 249514
gnn [Fri, 21 Jun 2013 21:38:48 +0000 (21:38 +0000)]
MFC: 249514
Point args[0] not at the thread that is ending but at the one that
is starting.  This is in line with practice in OpenSolaris.

Note that this change is only in ULE and not in the 4BSD scheduler.
Once this change settles in (MFC timeout has expired) we'll try it out
on 4BSD as well.

PR: 177706
Submitted by: Tiwei Bie

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

10 years agoMFC: r251445
rmacklem [Fri, 21 Jun 2013 20:21:14 +0000 (20:21 +0000)]
MFC: r251445
Document the new "-v" option for the gssd daemon.
This is a content change.

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

10 years agoMFC: r251444, r251476
rmacklem [Fri, 21 Jun 2013 20:16:41 +0000 (20:16 +0000)]
MFC: r251444, r251476
Add a "-v" (verbose) option to the gssd daemon, to help
with diagnosis of kerberized NFS mount problems. When set,
messages are sent to syslog() (or fprintf(stderr,...) if
"-d" is also specified) to indicate activity/results of
kgssapi upcalls.

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

10 years agoMFC 251637:
jhb [Fri, 21 Jun 2013 19:28:58 +0000 (19:28 +0000)]
MFC 251637:
Borrow the algorithm from kvm_getprocs() to fix procstat_getprocs() to
handle the case where the process tables grows in between the calls to
fetch the size and fetch the table.

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

10 years agoMFC r252010, r252011:
scottl [Fri, 21 Jun 2013 17:36:33 +0000 (17:36 +0000)]
MFC r252010, r252011:

Mark geom_mirror as capable of unmapped i/o

Obtained from: Netflix

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

10 years agoMFC 250333: Don't pad disk partition sizes with leading zeros.
jhb [Fri, 21 Jun 2013 15:17:44 +0000 (15:17 +0000)]
MFC 250333: Don't pad disk partition sizes with leading zeros.

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

10 years agoMFC r251959:
kib [Fri, 21 Jun 2013 06:28:55 +0000 (06:28 +0000)]
MFC r251959:
Remove stray empty line.

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

10 years agoshare/mk: merge: r241298,243393,249057,251506 from head for bmake support.
sjg [Thu, 20 Jun 2013 22:50:08 +0000 (22:50 +0000)]
share/mk: merge: r241298,243393,249057,251506 from head for bmake support.

Makefile: buildworld etc will be done with make from src tree,
make sure that bmake's -J 15,16 are not passed to it.

Reviewed by: obrien

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

10 years agoMFC r251440: use calloc().
delphij [Thu, 20 Jun 2013 21:29:03 +0000 (21:29 +0000)]
MFC r251440: use calloc().

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

10 years agoMFC r251439: Remove unneeded reference to link.h (sys/link_elf.h).
delphij [Thu, 20 Jun 2013 21:19:47 +0000 (21:19 +0000)]
MFC r251439: Remove unneeded reference to link.h (sys/link_elf.h).

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

10 years agoMFC 251617:
jhb [Thu, 20 Jun 2013 19:56:26 +0000 (19:56 +0000)]
MFC 251617:
Store a reference to the vnode associated with a file descriptor in the
linux_file structure and use it instead of directly accessing td_fpop
when destroying the linux_file structure.  The td_fpop pointer is not
valid when a cdevpriv destructor is run, and the type-specific close
method has already been called, so f_vnode may not be valid (and the
vnode might have been recycled without our own reference).

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

10 years agoFix two swapped definitions. Note it is directly committed to this branch
jkim [Thu, 20 Jun 2013 17:45:29 +0000 (17:45 +0000)]
Fix two swapped definitions.  Note it is directly committed to this branch
because it fixes r250496, i.e., MFC of r247369 to stable/9.

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

10 years agoMFC: r249406
gahr [Thu, 20 Jun 2013 16:51:25 +0000 (16:51 +0000)]
MFC: r249406

- Do not bail out if stat(2) fails with ENOENT in the spool directory. This
  happens if another atrm process removes a job while we're scanning through
  the directory.
- While at it, optimize a bit the directory scanning, so that we quit
  looping as soon as all jobs specified in argv have been dealt with.

Approved by: cognet

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

10 years agoMFC r248573:
smh [Thu, 20 Jun 2013 11:24:38 +0000 (11:24 +0000)]
MFC r248573:
Don't register repair writes in the trim map.

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

10 years agoFix a copy/paste error introduced by r248313 (s/ftp/http/ in menu text).
dteske [Thu, 20 Jun 2013 08:19:29 +0000 (08:19 +0000)]
Fix a copy/paste error introduced by r248313 (s/ftp/http/ in menu text).

MFC after: 3 days

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

10 years agoFix mergeinfo.
hrs [Thu, 20 Jun 2013 07:56:05 +0000 (07:56 +0000)]
Fix mergeinfo.

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

10 years agoMFC r250523:
hrs [Thu, 20 Jun 2013 07:30:13 +0000 (07:30 +0000)]
MFC r250523:

Add IFF_MONITOR support to gre(4).

Tested by: Chip Marshall

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

10 years agoMFC r250251:
hrs [Thu, 20 Jun 2013 07:23:04 +0000 (07:23 +0000)]
MFC r250251:

Use FF02:0:0:0:0:2:FF00::/104 prefix for IPv6 Node Information Group
Address.  Although KAME implementation used FF02:0:0:0:0:2::/96 based on
older versions of draft-ietf-ipngwg-icmp-name-lookup, it has been changed
in RFC 4620.

The kernel always joins the /104-prefixed address, and additionally does
/96-prefixed one only when net.inet6.icmp6.nodeinfo_oldmcprefix=1.
The default value of the sysctl is 1.

ping6(8) -N flag now uses /104-prefixed one.  When this flag is specified
twice, it uses /96-prefixed one instead.

Reviewed by: ume
Based on work by: Thomas Scheffler
PR: conf/174957

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

10 years agoMFC r251658, 251823:
pfg [Wed, 19 Jun 2013 20:56:44 +0000 (20:56 +0000)]
MFC r251658, 251823:

Turn DIAGNOSTICs to INVARIANTS in ext2fs. following other filesystems.

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

10 years agoMFC r251485:
jh [Wed, 19 Jun 2013 18:00:00 +0000 (18:00 +0000)]
MFC r251485:

Revert r238399.

The "failok" option doesn't have any effect at all unless specified in
fstab(5) and combined with the -a flag. The "failok" option is already
documented in fstab(5).

PR: 177630

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

10 years agoMFC: r238172 (partial)
marius [Wed, 19 Jun 2013 15:12:10 +0000 (15:12 +0000)]
MFC: r238172 (partial)

Don't use Maxmem when the amount of memory is meant. Use realmem instead.
Maxmem is not only a MD variable, it represents the highest physical memory
address in use. On systems where memory is sparsely layed-out the highest
memory address and the amount of memory are not interchangeable. Scaling the
AGP aperture based on the actual amount of memory (= realmem) rather than
the available memory (= physmem) makes sure there's consistent behaviour
across architectures.

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

10 years agoMFC r251989:
scottl [Wed, 19 Jun 2013 05:12:31 +0000 (05:12 +0000)]
MFC r251989:

Fix an unfortunate typo with the compat shims

Obtained from: Netflix

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

10 years agoPoor man's binary compatibility of the struct bio: move the added structure
scottl [Wed, 19 Jun 2013 05:02:25 +0000 (05:02 +0000)]
Poor man's binary compatibility of the struct bio: move the added structure
members to the end of the structure.

Obtained from: Netflix

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

10 years agoTweak the CAM_DATA flags that were added with r251874 to allow source
scottl [Wed, 19 Jun 2013 04:57:47 +0000 (04:57 +0000)]
Tweak the CAM_DATA flags that were added with r251874 to allow source
compatibility and almost 100% binary compatibility.  The old
CAM_SG_LIST_PHYS flag is essentially lost in binary compatibility for
legacy SIM drivers.  The use of this flag is excedingly rare.

Obtained from: Netflix

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

10 years agoMFC Xen fixes:
gibbs [Tue, 18 Jun 2013 23:14:21 +0000 (23:14 +0000)]
MFC Xen fixes:

svn rev 250081 Author:gibbs Date:2013-04-29T23:08:13.552620Z
==============
xenstore/xenstore.c:
    Prevent access to invalid memory region when listing an empty
    directory in the XenStore.

Reported by: Bei Guan

svn rev 250913 Author:gibbs Date:2013-05-22T17:13:03.545339Z
==============
Correct panic on detach of Xen PV network interfaces.

dev/xen/netfront:
    In netif_free(), properly stop the interface and drain any pending
    timers prior to disconnecting from the backend device.

    Remove all media and detach our interface object from the system
    prior to deleting it.

PR: kern/176471
Submitted by: Roger Pau Monne <roger.pau@citrix.com>
Reviewed by: gibbs

svn rev 250917 Author:gibbs Date:2013-05-22T19:22:44.923351Z
==============
Fix loss of the emulated keyboard on Xen PV HVM domains.

xen/xenbus/xenbusb.c:
    In xenbusb_probe_children(), do not modify the XenBus state of
    devices for which we have no PV driver support. An emulated device
    we do support may share this backend.  Hide the node from XenBus
    instead.

    This prevents closing the vkbd device, which Qemu's emulated keyboard
    device is using as the source for keyboard events.

    Tested with qemu-xen-traditional, qemu-xen and qemu stubdomains, all
    working as expected.

Submitted by: Roger Pau Monne <roger.pau@citrix.com>
Reviewed by: gibbs
MFC after: 1 week

svn rev 251175 Author:gibbs Date:2013-05-31T04:43:19.944993Z
==============
Apply the ad* => ada* IDE device name transition to the Xen block
front driver.

Submitted by: Bei Guan <gbtju85@gmail.com>
Reviewed by: gibbs
MFC after: 1 week

svn rev 251176 Author:gibbs Date:2013-05-31T04:45:59.563195Z
==============
Make netif_free() safe to call on a partially initialized softc.

Sponsored by: Spectra Logic Corporation
MFC after: 1 week

svn rev 251729 Author:gibbs Date:2013-06-14T03:31:11.033200Z
==============
sys/dev/xen/netfront/netfront.c:
    In netif_free(), call ifmedia_removeall() after ether_ifdetach()
    so that bpf listeners are detached, any link state processing
    is completed, and there is no chance for external reference to media
    information.

Suggested by: yongari

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

10 years agoNow that r251221 has been MFC'ed to stable/9 in r251939, merge the remainder
marius [Tue, 18 Jun 2013 22:21:59 +0000 (22:21 +0000)]
Now that r251221 has been MFC'ed to stable/9 in r251939, merge the remainder
of r251146 previously partially MFC'ed in r251573:

In bce_get_pg_buf(), take advantage of bus_dmamap_load_mbuf_sg(9).

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

10 years agoMFC: r238190
marius [Tue, 18 Jun 2013 21:24:07 +0000 (21:24 +0000)]
MFC: r238190

Implement ia64_physmem_alloc() and use it consistently to get memory
before VM has been initialized.

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

10 years agoMFC: r238184
marius [Tue, 18 Jun 2013 21:14:05 +0000 (21:14 +0000)]
MFC: r238184

Hide the creation of phys_avail behind an API to make it easier to do it
correctly. We now iterate the EFI memory descriptors once and collect all
the information in a single pass.

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

10 years agoMFC r251285:
kib [Tue, 18 Jun 2013 19:03:27 +0000 (19:03 +0000)]
MFC r251285:
Do not map the shared page COW.

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

10 years agoRemove diff from head after manual r251942 merge.
mav [Tue, 18 Jun 2013 15:31:43 +0000 (15:31 +0000)]
Remove diff from head after manual r251942 merge.

Reviewed by: scottl

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

10 years agoMFC: r245263
marius [Tue, 18 Jun 2013 15:17:29 +0000 (15:17 +0000)]
MFC: r245263

Clang complains about the comparision of fak < 0 always being
false. It is right. Delete it because on the next line we catch all
'negative' cases with the test > 2, since 'negative' numbers are just
really big unsigned numbers and we do an identical action.

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

10 years agoMFC: r251403 (partial)
marius [Tue, 18 Jun 2013 15:14:20 +0000 (15:14 +0000)]
MFC: r251403 (partial)

Flag sym(4) as supporting unmapped I/O; all necessary conversion actually
already has been done as part of r246713 (MFC'ed to stable/9 in r251874).

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