HomeFreeBSD

xen/acpi: only evaluate Processor objects matching online CPUs

Description

xen/acpi: only evaluate Processor objects matching online CPUs

Current Xen Processor driver will evaluate any Processor object on the
ACPI tables regardless of whether the processor is online or not.
Avoid doing so for processors that are not online, as evaluating
methods of processors that are not online could lead to accesses to
invalid memory, and in any case the data that the driver fetches from
the Processor ACPI object only makes sense for processors that are
online.

Note the CPU related data fetched from Xen using XENPF_get_cpuinfo
hypercall could be cached, I leave that as a future optimization.

Sponsored by: Citrix Systems R&D
Fixes: b93f47eaeef7 ('xen/acpi: upload Cx and Px data to Xen')

Details

Provenance
roygerAuthored on Nov 29 2022, 3:21 PM
Parents
rGbad602850e56: bsdinstall: Fix local_unbound option default on revisit
Branches
Unknown
Tags
Unknown