FreeBSD/src 98c8caalib/libgcc_s Symbol.map

libgcc_s: 80-bit long double function are x86-only

Don't try to expose them on other architectures.

Reviewed by:    arichardson
Differential Revision:  https://reviews.freebsd.org/D45028
DeltaFile
+13-9lib/libgcc_s/Symbol.map
+13-91 files

FreeBSD/src ecaab0fsys/x86/acpica madt.c, sys/x86/conf NOTES

guestrpc module to handle VMware backdoor port GuestRPC functionality

Convert existing FreeBSD vmware_hvcall function to take a channel
and parameter arguments.

Added vmware_guestrpc_cmd() to send GuestRPC commands to the VMware
hypervisor. The sbuf argument is used for both the command to send
and to store the data to return to the caller.

The following KPIs can be used to get and set FreeBSD-specific guest
information in key/value pairs:
 * vmware_guestrpc_set_guestinfo
   - set a value into the guestinfo.fbsd.<keyword> key
 * vmware_guestrpc_get_guestinfo
   - get the value stored in the guestinfo.fbsd.<keyword> key

Add VMware devices to x86 NOTES

Reviewed by:    jhb

    [2 lines not shown]
DeltaFile
+337-0sys/x86/x86/vmware_guestrpc.c
+37-0sys/x86/include/vmware_guestrpc.h
+6-2sys/x86/include/vmware.h
+5-0sys/x86/conf/NOTES
+2-1sys/x86/x86/identcpu.c
+2-1sys/x86/acpica/madt.c
+389-42 files not shown
+391-58 files

FreeBSD/src 63b7478share/man/man7 hier.7

hier.7: polish entry to system manual

Entries reworded to improve grammar or add keywords:
- document description: substitute layout for index for first-glance
- /etc/freebsd/update.conf
- /usr/share/vi/

Entries that have been wordshuffled for brevity or consistency:
- /{bin,libexec,nonexistent,sbin,tmp}/
- /boot/dtb/overlays/
- /boot/{defaults,efi,kernel,lua}/
- /usr/libexec/
- /var/{db,games,lib,log/{bsdisks.log,spool/,tmp/}}
- /usr/share/sysroot/VERSION/MACHINE.MACHINE_ARCH/ (unfold a little)
- /usr/local/share/doc/freebsd/ (unfold a little)

Entries that have macro or linking adjustments:
- /{boot,boot/efi,dev,etc,home,sbin,usr/bin}/ (overview or intro pages)
- /media/ (bsdisks is from ports, but afaik pulled by every desktop)

    [23 lines not shown]
DeltaFile
+123-84share/man/man7/hier.7
+123-841 files

FreeBSD/src a7a6873. ObsoleteFiles.inc, etc/mtree BSD.usr.dist

BSD.usr.dist: remove empty /usr/libdata/gcc directory

I am unsure of its exact historical usage, but, we no longer ship GCC
with FreeBSD, and it should have been removed.

Reviewed by:    imp, emaste
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D44440

(cherry picked from commit cc1268a926772900a08c61fd791bb66df1e6c30c)
DeltaFile
+1-3share/man/man7/hier.7
+3-0ObsoleteFiles.inc
+0-2etc/mtree/BSD.usr.dist
+4-53 files

FreeBSD/src 3d50905share/man/man7 hier.7

hier.7: various improvements

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/831

(cherry picked from commit 03ee09148950c9ea99987bfee8a769473079745b)
(cherry picked from commit 94dedfdfa96baef02e4ad661512a267ae5647d7b)
(cherry picked from commit a5b07274fcaf71fc9c14947a75fbe0a13d381a79)
(cherry picked from commit f19875b66bf403ed5c57f82bbe2a3f42475d0a06)
DeltaFile
+417-97share/man/man7/hier.7
+417-971 files

FreeBSD/src 1d921beshare/man/man9 ieee80211_vap.9

ieee80211_vap(9): fix the title

MFC after:      3 days

(cherry picked from commit c5989febcc00be41e05b4b714bbfc6ea1359abaf)
DeltaFile
+1-1share/man/man9/ieee80211_vap.9
+1-11 files

FreeBSD/src f4b0809release Makefile.mirrors

release: Stage non-UFS images in vm-images-stage

When the VM image building code was updated to support building
non-UFS images, the vm-images-stage target was not updated to
install those newly built images to the FTP site.  As a result, we
have been sending weekly snapshot announcements since August claiming
that ZFS VM images are available when they are not in fact present
anywhere publicly accessible.

Fixes:  32ae9a6b3937 "release: Build UFS and ZFS VM images"
Reported by:    Michael Dexter
MFC after:      5 days
DeltaFile
+14-0release/Makefile.mirrors
+14-01 files

FreeBSD/src 793556eshare/examples/modules Makefile

Fix up a mistake in the CFLAGS added.  Pointed out by jrtc.
DeltaFile
+1-1share/examples/modules/Makefile
+1-11 files

FreeBSD/src e60ca52share/examples/modules Makefile

Out of tree modules should be built with DTrace by default.
DeltaFile
+2-0share/examples/modules/Makefile
+2-01 files

FreeBSD/src c100fe0share/examples Makefile

examples: Install bhyve files on arm64

Sponsored by:   Innovate UK
DeltaFile
+1-1share/examples/Makefile
+1-11 files

FreeBSD/src e10b9d6usr.sbin/bhyve uart_backend.c uart_pl011.c

bhyve: Move lock of uart frontend to uart backend

Currently, lock of uart in bhyve is placed in frontend. There are some
problems about it:

1. If every frontend should has a lock, why not move it inside backend
   as they all have same uart_softc.
2. If backend needs to modify the information of uart after initialize,
   it will be impossible as backend cannot use lock. For example, if we
   want implement a telnet support for uart in backend, It should wait
   for connection when initialize. After some remote process connect it,
   it needs to modify rfd and wfd in backend.

So I decide to move it to backend.

Reviewed by:    corvink, jhb, markj
Differential Revision:  https://reviews.freebsd.org/D44947
DeltaFile
+21-1usr.sbin/bhyve/uart_backend.c
+6-10usr.sbin/bhyve/uart_pl011.c
+6-9usr.sbin/bhyve/uart_emul.c
+2-1usr.sbin/bhyve/uart_backend.h
+35-214 files

FreeBSD/src aa34b1dshare/examples/bhyve vmrun.sh

vmrun.sh: Add arm64 support

For now, we enumerate disk devices before network devices.  This is to
work around a problem wherein u-boot remaps BARs during boot in a way
that bhyve does not handle.  Some discussion and experiments suggest
that this can be handled by having bhyve not map BARs during boot on
arm64; until a solution is implemented, however, this workaround is
sufficient for simple usage and doesn't have any real downsides.

The console and bootrom are specified slightly differently versus amd64,
and a few of vmrun.sh's command-line options are amd64-only.

Reviewed by:    corvink, jhb
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D44933
DeltaFile
+71-29share/examples/bhyve/vmrun.sh
+71-291 files

FreeBSD/src c1b37d9usr.sbin Makefile.aarch64, usr.sbin/bhyvectl/aarch64 bhyvectl_machdep.c Makefile.inc

bhyvectl: Add arm64 bits and hook it up to the build

For now this implementation doesn't provide any machine dependent
functionality on arm64, but it's enough to be able to reset and destroy
VMs.

Reviewed by:    jhb
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D44932
DeltaFile
+82-0usr.sbin/bhyvectl/aarch64/bhyvectl_machdep.c
+1-0usr.sbin/bhyvectl/aarch64/Makefile.inc
+1-0usr.sbin/Makefile.aarch64
+84-03 files

FreeBSD/src 1c4ee7dusr.sbin/bhyvectl bhyvectl.c bhyvectl.h, usr.sbin/bhyvectl/amd64 bhyvectl_machdep.c Makefile.inc

bhyvectl: Prepare to add arm64 support

Move MD code into a separate directory and add a simple interface which
lets the MD bits register options and handle them.

No functional change intended.

Reviewed by:    jhb
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D44932
DeltaFile
+1,888-0usr.sbin/bhyvectl/amd64/bhyvectl_machdep.c
+31-1,807usr.sbin/bhyvectl/bhyvectl.c
+53-0usr.sbin/bhyvectl/bhyvectl.h
+5-4usr.sbin/bhyvectl/Makefile
+1-0usr.sbin/bhyvectl/amd64/Makefile.inc
+1,978-1,8115 files

FreeBSD/src 4afce44sys/sys sdt.h

sdt: Add macros which expand to probe and provider structure names

No functional change intended.

MFC after:      1 week
DeltaFile
+21-16sys/sys/sdt.h
+21-161 files

FreeBSD/src 7b8b613sys/kern subr_fattime.c

fattime: make the test code build again

This change...

1. replaces calls to timet2fattime/fattime2timet with calls to
   timespec2fattime/fattime2timespec.  The functions got renamed shortly
   after they landed in the kernel but the test code wasn't updated (see
   7ea93e912bf0ef).
2. adds a utc_offset stub.

With this, the test code builds and runs as a 32-bit binary (cc -Wall -O2
-m32 subr_fattime.c).

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44753
DeltaFile
+7-2sys/kern/subr_fattime.c
+7-21 files

FreeBSD/src 9d1396csys/kern subr_fattime.c

fattime: make the test code check beyond 32-bit time_t limits

On systems that have a 64-bit time_t, the test code now exercises the whole
range of fattime.  To do this, this commit...

1. replaces the call to random() with two calls to arc4random() to
   generate a 33-bit number of seconds in order to cover the entire range of
   fattime [1970,2107].  (32-bits stops just short - in January 2106.)
   On systems with 32-bit time_t, the extra bits are discarded and only the
   time_t expressible range is tested.
2. casts time_t values passed to printf as longs and changes the format
   string to match.

Now, the test code builds, runs, and exercises what it can (i.e., the whole
fattime range or the 32-bit time_t subset of it) on both 32-bit and 64-bit
time_t systems.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44754
DeltaFile
+11-4sys/kern/subr_fattime.c
+11-41 files

FreeBSD/src 0fe60dcsys/kern subr_fattime.c

fattime: fix fattime to timespec conversion of dates beyond 2106-02-06

It turns out that the only conversion issue was in fattime2timespec, where
multiplying the number of seconds in a day by the number of days overflowed
32-bit unsigned int for dates beyond 2106-02-07 06:28:15.

Casting one of the multiplicands as time_t forces a 64-bit multiplication on
systems where time_t is 64-bits and produces no binary changes on the one
remaining system with 32-bit time_t (namely i386).

Since the code is now tested & fixed, this change removes the fixme comments.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44755
DeltaFile
+3-14sys/kern/subr_fattime.c
+3-141 files

FreeBSD/src 825cb4csys/fs/nfs nfsport.h nfs_commonport.c, sys/fs/nfsclient nfs_clbio.c nfs_clvnops.c

nfscl: Clear out a lot of cruft related to B_DIRECT

There is only one place in the unpatched sources where B_DIRECT is
set in the NFS client and this code is never executed. As such, this patch
removes this code that is never executed, since B_DIRECT should never
be set.

During a IETF testing event this week, I saw a crash in ncl_doio_directwrite(),
but this function is only called if B_DIRECT is set.
I cannot explain how ncl_doio_directwrite() got called, but once this patch
was applied to the sources, the crash did not recur. This is not surprising,
since this patch deleted the function.

(cherry picked from commit 03a39a17089adc1d0e28076670e664dcdebccf73)
DeltaFile
+47-190sys/fs/nfsclient/nfs_clbio.c
+2-22sys/fs/nfsclient/nfs_clvnops.c
+8-11sys/fs/nfsclient/nfs_clnfsiod.c
+0-3sys/fs/nfsclient/nfsnode.h
+0-2sys/fs/nfs/nfsport.h
+0-1sys/fs/nfs/nfs_commonport.c
+57-2291 files not shown
+57-2307 files

FreeBSD/src 19b6aa0sys/fs/nfsclient nfs_clrpcops.c

nfscl: Do not use nfso_own for delayed nfsrpc_doclose()

When an initial attempt to close an NFSv4 lock returns NFSERR_DELAY,
the open structure is put on a list for delayed closing.  When this
is done, the nfso_own field is set to NULL, so it cannot be used by
nfsrpc_doclose().

Without this patch, the NFSv4 client can crash when a NFSv4 server
replies NFSERR_DELAY to a Close operation.  Fortunately, most extant
NFSv4 servers do not do this.  This patch avoids the crash for any
that do return NFSERR_DELAY for Close.

Found during a IETF bakeathon testing event this week.

(cherry picked from commit 6251027c4252edb3b8f8fc359a40e610349e9af3)
DeltaFile
+14-6sys/fs/nfsclient/nfs_clrpcops.c
+14-61 files

FreeBSD/src a3b8266sys/fs/nfs nfsport.h nfs_commonport.c, sys/fs/nfsclient nfs_clbio.c nfs_clvnops.c

nfscl: Clear out a lot of cruft related to B_DIRECT

There is only one place in the unpatched sources where B_DIRECT is
set in the NFS client and this code is never executed. As such, this patch
removes this code that is never executed, since B_DIRECT should never
be set.

During a IETF testing event this week, I saw a crash in ncl_doio_directwrite(),
but this function is only called if B_DIRECT is set.
I cannot explain how ncl_doio_directwrite() got called, but once this patch
was applied to the sources, the crash did not recur. This is not surprising,
since this patch deleted the function.

(cherry picked from commit 03a39a17089adc1d0e28076670e664dcdebccf73)
DeltaFile
+47-190sys/fs/nfsclient/nfs_clbio.c
+2-22sys/fs/nfsclient/nfs_clvnops.c
+8-11sys/fs/nfsclient/nfs_clnfsiod.c
+0-3sys/fs/nfsclient/nfsnode.h
+0-2sys/fs/nfs/nfsport.h
+0-1sys/fs/nfs/nfs_commonport.c
+57-2291 files not shown
+57-2307 files

FreeBSD/src c91861csys/fs/nfsclient nfs_clrpcops.c

nfscl: Do not use nfso_own for delayed nfsrpc_doclose()

When an initial attempt to close an NFSv4 lock returns NFSERR_DELAY,
the open structure is put on a list for delayed closing.  When this
is done, the nfso_own field is set to NULL, so it cannot be used by
nfsrpc_doclose().

Without this patch, the NFSv4 client can crash when a NFSv4 server
replies NFSERR_DELAY to a Close operation.  Fortunately, most extant
NFSv4 servers do not do this.  This patch avoids the crash for any
that do return NFSERR_DELAY for Close.

Found during a IETF bakeathon testing event this week.

(cherry picked from commit 6251027c4252edb3b8f8fc359a40e610349e9af3)
DeltaFile
+14-6sys/fs/nfsclient/nfs_clrpcops.c
+14-61 files

FreeBSD/src c6c6d4asys/dev/cxgbe/tom t4_tom.c

cxgbe/tom: Fix the rx channel selection in options2.

This affects TOE operation when multiple rx c-channels are in use for
offload, which is an unusual configuration.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+4-2sys/dev/cxgbe/tom/t4_tom.c
+4-21 files

FreeBSD/src 7f10048sys/dev/cxgbe t4_main.c, sys/dev/cxgbe/common t4_hw.c common.h

cxgbe(4): Query TPCHMAP once and not once per port.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+2-9sys/dev/cxgbe/common/t4_hw.c
+8-0sys/dev/cxgbe/t4_main.c
+3-1sys/dev/cxgbe/common/common.h
+13-103 files

FreeBSD/src 480ff89sys/dev/cxgbe t4_main.c adapter.h, sys/dev/cxgbe/common t4_hw.c

cxgbe(4): Rename rx_c_chan to rx_chan.

It is the equivalent of tx_chan but for receive so rx_chan is a better
name.  Initialize both using helper functions and make sure both are
displayed in the sysctl MIB.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+10-2sys/dev/cxgbe/common/t4_hw.c
+4-2sys/dev/cxgbe/t4_main.c
+2-2sys/dev/cxgbe/adapter.h
+1-1sys/dev/cxgbe/crypto/t4_crypto.c
+17-74 files

FreeBSD/src 2c18289. .clang-format

clang-format: Minor tweaks

Invert KeepEmptyLinesAtTheStartOfBlocks.  We used to require an empty
line at the beginning of functions with no local variables, which I
believe is the reason for this setting.  Now it is discouraged in new
code.

Tell clang-format to align consecutive macros, since we tend to do that.
clang-format's output isn't quite what we want here.  Typically we have
a tab after a #define for some reason, and clang-format doesn't appear
to have an option for that.  clang-format will also use a mix of tabs
and spaces to minimize indentation, which is also against our
convention.  However, the result looks better with this setting than
without.

Reviewed by:    emaste
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D29870
DeltaFile
+3-1.clang-format
+3-11 files

FreeBSD/src 4a5e2ddsys/arm/include armreg.h

arm: Remove duplicate definitions in armreg.h

No functional change intended.

MFC after:      1 week
DeltaFile
+0-2sys/arm/include/armreg.h
+0-21 files

FreeBSD/src 46b606cstand/userboot/test test.c

userboot: support environment and symlinks in test application

Pass the environment on to the loader.
Also define USERBOOT=1 in the environment varables.

Add support for symlinks in the test application open callback.

stat the root directory when opening file
Without this, running "ls" command on the root directory encounters
issues getting the directory listing.

Reviewed by:    jhb
Obtained from:  Juniper Networks, Inc.
Differential Revision:  https://reviews.freebsd.org/D44625
DeltaFile
+168-42stand/userboot/test/test.c
+168-421 files

FreeBSD/src 2cb4909sys/kern kern_cons.c subr_boot.c, sys/sys cons.h reboot.h

cons: Add boot option to mute boot messages after banner

This is useful for embedded systems, where it provides feedback that the
kernel has booted, but avoids printing the probe messages.  If both
mutemsgs and verbose are set, verbose cancels the mute.

Additionally, this unmutes the console on panic, so a user can see what
happened leading up to the panic.

Obtained from:  Juniper Networks, Inc.
DeltaFile
+13-1sys/kern/kern_cons.c
+4-2sys/kern/subr_boot.c
+3-0sys/kern/kern_shutdown.c
+2-0sys/sys/cons.h
+1-0sys/sys/reboot.h
+23-35 files

FreeBSD/src 21aba39sys/dev/cxgbe t4_main.c

cxgbe(4): Minor tweaks to comments.

No functional change intended.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+7-5sys/dev/cxgbe/t4_main.c
+7-51 files