FreeBSD/src 5d32d1c — lib/libvmmapi vmmapi.h, lib/libvmmapi/amd64 vmmapi_machdep.c

libvmmapi/amd64: Add support for CPUID ioctls to libvmmapi

libvmmapi needs wrapper functions for the new vmm/amd64 CPUID ioctls.

Reviewed by:            corvink, markj
MFC after:              1 month
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D51554
DeltaFile
+33-0lib/libvmmapi/amd64/vmmapi_machdep.c
+3-1lib/libvmmapi/vmmapi.h
+36-12 files

FreeBSD/src 29d54c2 — sys/amd64/vmm x86.h vmm_cpuid.c, sys/amd64/vmm/io vlapic.c vlapic.h

vmm/amd64: Bhyve should keep guest CPUID updated when using explicit CPUID settings

This is a port of the following bhyve improvement from illumos:

  16647 bhyve should keep guest CPUID updated when using explicit CPUID settings
  https://www.illumos.org/issues/16647

Some bits of information returned by the CPUID instruction depend on the
values system software previously set in the CPU's control registers.
These include
 - Leaf 1 ecx: bit 27 changes depending on whether XSAVE support is
   enabled in cr4
 - Leaf 1 edx: bit 9 changes depending on whether the APIC is enabled
   in MSR 0x1B
 - Leaf D subleaf 0/subleaf 1 ebx: values change depending on the bits
   set in xcr0

bhyve should ensure that VMs with explicitly-provided CPUID values
account for the guest's current CR/MSR values before returning the

    [8 lines not shown]
DeltaFile
+184-65sys/amd64/vmm/vmm_cpuid.c
+5-0sys/amd64/vmm/x86.h
+1-1sys/amd64/vmm/io/vlapic.c
+2-0sys/amd64/vmm/io/vlapic.h
+192-664 files

FreeBSD/src 03c3c44 — sys/amd64/vmm x86.h vmm_cpuid.c

vmm/amd64: support CPUID functions 0x40000100 and above

CPUID functions 0x40000100 and above mirror the original contents of
the hypervisor CPUID functions at 0x40000000. This allows a guest to
query the real hypervisor signature and features when the the default
hypervisor functions at 0x40000000 have been overridden to identify
as something else, such as KVM or HyperV.

Reviewed by:            chuck, markj
MFC after:              1 month
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60122
DeltaFile
+6-1sys/amd64/vmm/vmm_cpuid.c
+2-0sys/amd64/vmm/x86.h
+8-12 files

FreeBSD/src a3ec6dc — sys/amd64/vmm vmm_dev_machdep.c

vmm/amd64: VM_SET_CPUID ioctl should refuse zero-entry non-legacy cpuid cfg

The kernel shouldn't accept a cpuid configuration that has no entries
without having the legacy flag set and just return EINVAL. A VCPU cpuid
configuration must either have zero cpuid entries and the legacy flag
set, or it must have the legacy flag clear and at least one cpuid entry.

Reviewed by:            markj
MFC after:              1 month
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D51553
DeltaFile
+7-0sys/amd64/vmm/vmm_dev_machdep.c
+7-01 files

FreeBSD/src 7336d1a — sys/amd64/include vmm_dev.h vmm.h, sys/amd64/vmm vmm_dev_machdep.c x86.c

vmm/amd64: Port bhyve CPUID control from illumos

This is a partial port of the following bhyve improvement in illumos:

  14485 bhyve needs better cpuid control
  https://www.illumos.org/issues/14485

This only adds vmm kernel support for overriding the CPUID information
for a guest. This does also not contain any libvmmapi/bhyve userspace
code to make this feature actually useful.

Reviewed by:            markj
MFC after:              1 month
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D51552
DeltaFile
+961-0sys/amd64/vmm/vmm_cpuid.c
+0-618sys/amd64/vmm/x86.c
+109-0sys/amd64/vmm/vmm_dev_machdep.c
+68-1sys/amd64/include/vmm.h
+28-0sys/amd64/include/vmm_dev.h
+6-12sys/amd64/vmm/intel/vmx.c
+1,172-6314 files not shown
+1,189-63810 files

FreeBSD/src 304e3de — lib/libvmmapi vmmapi.c, usr.sbin/bhyve bhyverun.c

bhyve: Drop copyright statements from several files

These were added in commit 91f03cde6604, but shouldn't have been, as the
code changes weren't significant enough to justify the addition of
copyright lines.  Remove them.

Fixes:  91f03cde6604 ("libvmmapi: Check for allocation failure in vm_vcpu_open()")
Reviewed by:    Hans Rosenfeld
MFC after:      1 week
DeltaFile
+0-1usr.sbin/bhyvectl/bhyvectl.c
+0-1usr.sbin/bhyve/bhyverun.c
+0-1lib/libvmmapi/vmmapi.c
+0-33 files

FreeBSD/src 13643df — sys/amd64/vmm vmm_cpuid.c

vmm/amd64: Bhyve returns bogus cpuid 8000_001D leaf

This is a port of this bhyve improvement coming from illumos:

  16223 bhyve returns bogus cpuid 8000_001D leaf
  https://www.illumos.org/issues/16223

This fixes an issue in the CPUID emulation discovered on AMD CPUs.

Reviewed by:            chuck, corvink, markj
MFC after:              1 month
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D53210
DeltaFile
+10-5sys/amd64/vmm/vmm_cpuid.c
+10-51 files

FreeBSD/src 87fac2e — contrib/atf/atf-c macros.h tc.c, contrib/atf/atf-c/detail fs_test.c process_test.c

contrib/atf: upgrade to 0.26.1

This is a bugfix release. Please see the related merge commit for more
details.

MFC after:      1 week
Merge commit 'bd8d548676ba2235320c105e0683a758ac742e8e'
DeltaFile
+273-282contrib/atf/atf-c/macros_test.c
+250-222contrib/atf/atf-c/tc.c
+177-171contrib/atf/atf-c/macros.h
+144-176contrib/atf/atf-c/detail/process_test.c
+190-122contrib/atf/atf-c/detail/fs_test.c
+147-157contrib/atf/atf-sh/atf-check.cpp
+1,181-1,13097 files not shown
+3,883-3,757103 files

FreeBSD/src bd8d548 — . configure, admin ltmain.sh

atf: import atf-0.26.1

This change adds atf atf-0.26.1 from [upstream][1].

The atf-0.26.1 artifact was been verified by [SHA256 checksum][3].

This release addresses a number of bugs in ATF that were present in 0.26[.0].
Most of these are Developer Workflow related, however, these changes deserve
special attention:

* The remaining [known] memory leak issues were resolved by @holmuk in #215.
* A key issue with how macros in atf-c(3) are evaluated was also resolved by des@ in #229.

More information about the release (from a high level) can be found in
the [release notes][4].

Updated via [`update_atf.sh`][4] `update_atf.sh 0.26.1 atf-0.26.1`.

[1]: https://github.com/freebsd/atf/releases/download/atf-0.26.1/atf-0.26.1.tar.gz

    [3 lines not shown]
DeltaFile
+601-159m4/libtool.m4
+455-284configure
+273-282atf-c/macros_test.c
+250-222atf-c/tc.c
+190-145atf-c/macros.h
+245-80admin/ltmain.sh
+2,014-1,172124 files not shown
+5,479-4,462130 files

FreeBSD/src c7cd7e7 — share/man/man4 inet6.4, sys/netinet6 nd6_rtr.c in6_src.c

nd6: Add support for Optimistic DAD (RFC 4429)

Implement optimistic address based on RFC 4429.

Relnotes:       yes
Differential Revision: https://reviews.freebsd.org/D55229
DeltaFile
+51-21sys/netinet6/in6.c
+48-21sys/netinet6/nd6_nbr.c
+8-7sys/netinet6/nd6.c
+10-1share/man/man4/inet6.4
+4-2sys/netinet6/in6_src.c
+3-2sys/netinet6/nd6_rtr.c
+124-547 files not shown
+145-5513 files

FreeBSD/src 276085c — sys/dev/acpica acpi_pxm.c

acpica: Fix SRAT memory region insertion sort

The SRAT table can list memory regions in any order, but we need them
sorted.  There is an insertion sort to accomplish this when building
the mem_info array, but instead of inserting the new region before
the *first* higher-base-address region, it was inserting the new
region before the *last* higher-base-address region; i.e. if the array
already held "1 3 4" then inserting "2" would produce "1 3 2 4".

Break out of the insertion-location-finding loop when we find the right
spot to insert the new memory region into the list, rather than looking
further.

Reviewed by:    jhb
Fixes:  dd540b46236b ("Add a parser for the ACPI SRAT table...")
MFC after:      1 day
Sponsored by:   Amazon
Tested on:      c5n.9xlarge, c6a.24xlarge, c6a.metal, c7a.metal-48xl
                c7i.metal-24xl, c7i.metal-48xl, c8a.metal-24xl

    [3 lines not shown]
DeltaFile
+1-0sys/dev/acpica/acpi_pxm.c
+1-01 files

FreeBSD/src 59e24c3 — sbin/ipfw ipfw.8

ipfw.8: document the skipto cache

Since 4a77657cbc01 the skipto cache can be turned on and off at run
time with "ipfw enable|disable skipto_cache", and its state is shown
by the read-only net.inet.ip.fw.skipto_cache sysctl.  The manual page
lists the keyword only in the SYNOPSIS, and the skipto action refers
to SYSCTL VARIABLES for details that are not there.

Describe the cache with the skipto action: what it speeds up, that it
is off by default and per VNET, and how much memory it takes.  Add
net.inet.ip.fw.skipto_cache to SYSCTL VARIABLES.

Reviewed by:    ae
Co-authored-by: Claude Opus 5.5
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D62029
DeltaFile
+41-6sbin/ipfw/ipfw.8
+41-61 files

FreeBSD/src 30836df — usr.sbin/bhyve pci_virtio_input.c

bhyve(8): Preserve const qualifier in pci_vtinput_legacy_config()

Signed-off-by: Amir Shakeri <amirmuhammadshk at gmail.com>

Reviewed by:    emaste
Pull request:   https://github.com/freebsd/freebsd-src/pull/2592
DeltaFile
+1-1usr.sbin/bhyve/pci_virtio_input.c
+1-11 files

FreeBSD/src af942da — sys/compat/linuxkpi/common/include/linux compat.h

LinuxKPI: Add in_compat_syscall()

Return true when the current process is a 32-bit process running on a
64-bit kernel, matching the Linux semantics.  On native 32-bit kernels
there is no compat ABI, so always return false.

Reviewed by:    wulf
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61900
DeltaFile
+15-0sys/compat/linuxkpi/common/include/linux/compat.h
+15-01 files

FreeBSD/src d87841f — sys/dev/usb usbdevs, sys/dev/usb/net if_smsc.c if_muge.c

usb: Disentangle SMC and SMSC

In the 1990s Standard Microsystems Corporation used the name SMC and
produced complete NICs like the SMC EtherEZ 8416BTA.  It appears this
part of the business became SMC Networks and was later acquired by
Accton Technology.

By the early 2000s Standard Microsystems Corporation sold network ICs
(not complete NICs) and exclusively used the short name SMSC.  SMSC was
acquired by Microchip in 2012.

We originally obtained usbdevs from NetBSD, and this update matches the
SMC / SMSC IDs currently in NetBSD.

Reviewed by:    bz, adrian
Differential Revision: https://reviews.freebsd.org/D61724
DeltaFile
+29-27sys/dev/usb/usbdevs
+1-1sys/dev/usb/net/if_smsc.c
+1-1sys/dev/usb/net/if_muge.c
+31-293 files

FreeBSD/src a65e23f — lib/libsys modstat.2 kldstat.2, sys/kern kern_linker.c

kern_linker: Fix struct version mismatch

The kldstat(2) syscall supports two different structures, identified by
their size, which the application stores in the version field before the
call.  Since one is a prefix of the other, instead of calling different
functions to fill each one in like modstat(2) does, we fill in the
larger of the two and simply don't copy out the extra fields if the
smaller one was requested.  As a side effect, we failed to fill out the
version field in either case.  This causes application code that sets
the version field once and calls kldstat(2) repeatedly to fail since the
version field is now incorrect for subsequent calls, whereas the same
pattern works fine for modstat(2) because it copies the same version
value back out.  Fix this by setting the version field immediately
before copying the struct out.

While here, amend the manual pages for both kldstat(2) and modstat(2) to
clarify that the version field is unchanged on return and remove bad
advice about rebuilding world if either syscall returns EINVAL.


    [3 lines not shown]
DeltaFile
+3-12lib/libsys/modstat.2
+3-12lib/libsys/kldstat.2
+3-1sys/kern/kern_linker.c
+9-253 files

FreeBSD/src 8b1d5cb — usr.bin/lockf/tests lockf_test.sh

usr.bin/lockf/tests: Add require.progs="kdump"

This test requires kdump to function today. kdump can be omitted from
the system though via the build knob `MK_KDUMP != 0.

Add the require.progs constraint to check for kdump, so catch this
particular scenario and react accordingly.

MFC after:      1 week
Revision URI:   https://reviews.freebsd.org/D62041
DeltaFile
+1-0usr.bin/lockf/tests/lockf_test.sh
+1-01 files

FreeBSD/src e02e3ae — sys/netpfil/ipfw ip_dummynet.c

dummynet: do not log when a listing fills the buffer

When userland lists a range of objects, dummynet_get() sizes the
buffer from the request, and ipfw(8) and dnctl(8) retry with a bigger
one if the reply may be truncated.  copy_obj() and copy_obj_q() still
log every stop as an error, so "ipfw queue N show" with many dynamic
queues prints "copy_obj_q ERROR ... have 16 need 96" although the
listing is complete.

Keep the error for a bad object and log the full buffer only at debug
level 3 and above.

PR:             290420
Reported by:    dimka at dz.dn.ua
Reviewed by:    kp
Sponsored by:   Advanced Micro Devices, Inc.
Signed-off-by:  Osvaldo Janeri Filho <ojanerif at amd.com>
Differential Revision:  https://reviews.freebsd.org/D61964
DeltaFile
+14-2sys/netpfil/ipfw/ip_dummynet.c
+14-21 files

FreeBSD/src a38bc03 — sys/netpfil/pf pf_ioctl.c

pf: protect against the ethernet rule going away during DIOCGETETHRULE

We release the rules lock during DIOCGETETHRULE, but wait to clear the
counters until after we've unlocked. This risks the rule being freed at
the point where we reset the counters. Move the counter clearing to be
covered by the lock.

Reported by:    llm-postcr
Fixes:          30087aa2e00a ("pf: Support clearing ether counters")
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+7-7sys/netpfil/pf/pf_ioctl.c
+7-71 files

FreeBSD/src 06b4369 — sys/netpfil/pf pf_ruleset.c pf_ioctl.c

pf: hold PF_RULES_xLOCK when calling pf_find_keth_ruleset()

The ethernet rules are protected entirely by the PF_RULES_LOCK, not by
epoch. Update DIOCGETETHRULESETS, DIOCGETETHRULESET, DIOCADDETHRULE and
DIOCGETETHRULES to account for this.

Fixes:          c5131afee39b ("pf: add anchor support for ether rules")
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+43-39sys/netpfil/pf/pf_ioctl.c
+2-0sys/netpfil/pf/pf_ruleset.c
+45-392 files

FreeBSD/src fab0d0e — sys/netpfil/pf pf_ioctl.c

pf: don't forget to CURVNET_RESTORE()

Reported by:    llm-postcr
Fixes:          96c545176df7 ("pf: don't allow any ioctl calls until we're fully initialised")
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+4-2sys/netpfil/pf/pf_ioctl.c
+4-21 files

FreeBSD/src d9f4536 — sys/dev/bnxt/bnxt_en if_bnxt.c

bnxt: fix an out-of-bounds write in bnxt_copy_maddr()

bnxt_copy_maddr() copies link-layer multicast addresses into the
BNXT_MAX_MC_ADDRS-entry list given to the firmware, but only skips the
copy when cnt == BNXT_MAX_MC_ADDRS.  The callback returns 1 for every
address, so with 18 or more addresses it writes past the end of the
list.  bnxt_multi_set() switches to ALL_MCAST when there are more than
BNXT_MAX_MC_ADDRS addresses, so the extra entries are never used, but
on amd64 the list sits at the start of a 4 KB allocation, and with 683
or more addresses the writes go past it.

Skip the copy for every cnt >= BNXT_MAX_MC_ADDRS.

Fixes:          dbf9bf044c6e ("Convert to if_foreach_llmaddr() KPI.")
MFC after:      2 weeks
Sponsored by:   E-CARD LTD.
Sponsored by:   Klara, Inc.

Reviewed by:    sef, gallatin
Differential Revision:  https://reviews.freebsd.org/D61950
DeltaFile
+1-1sys/dev/bnxt/bnxt_en/if_bnxt.c
+1-11 files

FreeBSD/src b1020d3 — sys/dev/bnxt/bnxt_en if_bnxt.c bnxt_hwrm.c

bnxt: don't fail init when out of VLAN L2 filters

bnxt_hwrm_set_filter() allocates an L2 filter for every configured
VLAN and fails the init if any allocation fails.  A port has a fixed
number of L2 filters (509 on a BCM57416), so with enough VLANs every
init fails with RESOURCE_ALLOC_ERROR and the port stays down until
VLANs are removed.

The port's MAC filter does not match on VLAN, so the per-VLAN filters
are not needed to receive tagged traffic ( VLANs added while the port
is running already work without one until the next init).  Treat
ENOMEM from the VLAN filter allocations as non-fatal (leave the
remaining tags without a filter and log their count, once per init).
Any other error still fails the init.

Append new tags in bnxt_vlan_register() instead of prepending them, so
the oldest VLANs keep their filters and the most recently added ones
beyond the ports capabilities do not get a filter.


    [7 lines not shown]
DeltaFile
+24-0sys/dev/bnxt/bnxt_en/bnxt_hwrm.c
+9-1sys/dev/bnxt/bnxt_en/if_bnxt.c
+33-12 files

FreeBSD/src 3e286f0 — sys/dev/bnxt/bnxt_en if_bnxt.c

bnxt: reset VLAN filter IDs in bnxt_clear_ids()

bnxt_clear_ids() resets the firmware IDs the driver caches, including
vnic_info.filter_id, but not the per-VLAN filter IDs added in
91fcacc35597.  On pre-P5 chips, bnxt_init_hw() and bnxt_stop() free
the filters in firmware with HWRM_FUNC_RESET and leave tag->filter_id
set.  Once the VLAN filters have been allocated, the next init (for
example from ifconfig down/up or an MTU change) fails in
bnxt_hwrm_set_filter() with "Attempt to re-allocate l2 ctx filter",
and the port stays down until its VLANs are removed.

Reset tag->filter_id along with vnic_info.filter_id.

Fixes:          91fcacc35597 ("if_bnxt: Add support for VLAN on Thor")
MFC after:      2 weeks
Sponsored by:   Klara, Inc.
Sponsored by:   E-CARD LTD.

Reviewed by:    sef
Differential Revision:  https://reviews.freebsd.org/D61945
DeltaFile
+3-0sys/dev/bnxt/bnxt_en/if_bnxt.c
+3-01 files

FreeBSD/src 884e1a0 — sys/arm64/arm64 elf_machdep.c, sys/kern imgact_elf.c

imgact_elf: Pass program headers to the sv_protect hook

We handle program headers beyond the first page of the file, but
arm64_exec_protect() wasn't updated to handle this.  Pass the program
header array directly to the sv_protect hook.

Also fix a pre-existing bug: imgp->et_dyn_addr isn't the right base
address to use for the SV_INTERP case.

Reported by:    alc
Reviewed by:    alc, kib
Fixes:          804daf166406 ("imgact_elf: read program headers if not contained in the first page")
Fixes:          670af174e27b ("arm64: Enable BTI in the kernel ELF loader")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61999
DeltaFile
+6-4sys/arm64/arm64/elf_machdep.c
+2-2sys/kern/imgact_elf.c
+2-1sys/sys/sysent.h
+10-73 files

FreeBSD/src 655407e — sys/netipsec ipsec_output.c, tests/sys/netipsec/tunnel bundle.sh

netipsec: Apply the rest of a bundle when the PMTU check finds no SA

ipsec{4,6}_check_pmtu() looks up the SA of the last request of a policy to
learn the path MTU.  When that request is at level "use" and no SA is
found for it, the lookup returns EJUSTRETURN, and ipsec4_common_output1()
and ipsec6_common_output() took that to mean that the packet needs no
IPsec processing.  That holds for a policy with one request.  For a bundle
it also skipped the requests before the last one, for example the ESP
tunnel request of "esp/tunnel/A-B/require ah/transport//use", and the
packet was sent without their transforms.

The lookup finds no SA when none is installed, and also when the last
request is a transport request that follows a tunnel request, as in the
example.  The lookup fills in the empty addresses of a transport request
from the packet as it is before any transform, while the transform applies
the request after the tunnel request, to the outer header, and the SA is
installed for the addresses of the tunnel.  So the bundle above was sent
without its transforms even with an AH SA from A to B in place.


    [21 lines not shown]
DeltaFile
+44-5tests/sys/netipsec/tunnel/bundle.sh
+24-14sys/netipsec/ipsec_output.c
+68-192 files

FreeBSD/src 5775048 — sys/dev/acpica/Osd OsdSchedule.c

acpi: Tasks: Ensure taskqueue is running before allowing to drain

In AcpiOsWaitEventsComplete(), fix the test controlling whether to call
taskqueue_drain_all(): That must happen only if threads to process the
taskqueue have been created.

In the initial code, there is a very small window where
'acpi_boot_tasks_nb' could be 0 but some task was concurrently enqueued
(e.g., by an interrupt), leading to a call to taskqueue_drain_all()
which would wait forever in the absence of threads processing the
taskqueue.

Reported by:    llm-postcr
Sponsored by:   The FreeBSD Foundation
DeltaFile
+5-8sys/dev/acpica/Osd/OsdSchedule.c
+5-81 files

FreeBSD/src b2467ef — sys/dev/acpica/Osd OsdSchedule.c

acpi: Tasks: Always enqueue in the taskqueue right away

There is no need for delaying enqueuing ACPI tasks until the taskqueue's
threads have started.  Taskqueues perfectly support that, as once
taskqueue threads are started, they will pick up enqueued tasks
naturally.

Remove this mechanism, which allows a number of simplifications:
- Remove the now-useless ACPI_TASK_ENQUEUED flag.
- Remove an atomic manipulation to set ACPI_TASK_ENQUEUED on each task
  enqueue in the common case.
- Simplify AcpiOsWaitEventsComplete() by using taskqueue_drain_all()
  directly, and make it print a warning when called before the taskqueue
  threads have started.

While here, use atomic functions to operate on 'acpi_taskq_started'.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61548
DeltaFile
+42-49sys/dev/acpica/Osd/OsdSchedule.c
+42-491 files

FreeBSD/src dd960a7 — sys/dev/acpica/Osd OsdSchedule.c

acpi: Tasks: Remove the now-redundant 'acpi_task_count'

That number is used only up to the moment when the ACPI taskqueue's
threads are started to print the number of tasks queued so far.  This is
now redundant with 'acpi_boot_tasks_nb'.  So use the latter and remove
it, with the benefit that no more useless updates are performed at task
creation and end, which could create contention.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61547
DeltaFile
+4-8sys/dev/acpica/Osd/OsdSchedule.c
+4-81 files

FreeBSD/src f4abec1 — sys/dev/acpica/Osd OsdSchedule.c

acpi: Tasks: Count task slots used during boot separately

During boot, tasks can be enqueued by drivers before the scheduler is up
and the ACPI taskqueue threads running.  Such tasks pile up in the task
queue until they can actually be processed.  This makes the number
reported by the 'debug.acpi.tasks_hiwater' sysctl(8) knob less useful,
as if it is representative of the maximum amount of storage needed, it
does not allow to understand the degree of task concurrency at run-time,
which itself can be useful to size the queue and/or the number of
processing threads.

Create a separate counter for tasks queued at boot, and update it
instead of the already existing one before the taskqueue starts being
processed.  Export it via the new 'debug.acpi.boot_tasks_nb' sysctl(8)
knob.  The existing counter is now updated only after this phase.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61546
DeltaFile
+16-6sys/dev/acpica/Osd/OsdSchedule.c
+16-61 files