freebsd-dev/sys/dev/xen
Roger Pau Monné b93f47eaee xen/acpi: upload Cx and Px data to Xen
When FreeBSD is running as dom0 (initial domain) on a Xen system it
has access to the native ACPI tables and is the OSPM. However the
hypervisor is the entity in charge of the CPU idle and frequency
states, and in order to perform this duty it requires information
found the ACPI dynamic tables that can only be parsed by the OSPM.

Introduce a new Xen specific ACPI driver to fetch the Processor
related information and upload it to Xen. Note that this driver needs
to take precedence over the generic ACPI CPU driver when running as
dom0, so downgrade the probe score of the native driver to
BUS_PROBE_DEFAULT in order for the Xen specific driver to use
BUS_PROBE_SPECIFIC.

Tested on an Intel NUC to successfully parse and upload both the Cx and
Px states to Xen.

Sponsored by: Citrix Systems R&D
Reviewed by: jhb kib
Differential revision: https://reviews.freebsd.org/D34841
2022-04-12 10:03:26 +02:00
..
balloon xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
blkback vfs: NDFREE(&nd, NDF_ONLY_PNBUF) -> NDFREE_PNBUF(&nd) 2022-03-24 10:20:51 +00:00
blkfront xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
bus xen: use correct cache attributes for Xen specific memory regions 2021-08-12 09:18:32 +02:00
console xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
control xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
cpu xen/acpi: upload Cx and Px data to Xen 2022-04-12 10:03:26 +02:00
debug stack_zero is not needed before stack_save 2022-03-25 20:10:38 -05:00
efi xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
evtchn xen/devices: purge uses of intr_machdep.h 2021-10-21 09:39:16 +02:00
gntdev Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-10-19 21:22:56 -04:00
grant_table xen/grant-table: remove explicit linear mapping additions 2022-02-07 10:06:27 +01:00
netback xen netback: Remove write-only variables. 2022-04-06 16:45:27 -07:00
netfront xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
privcmd xen: plug some of set-but-not-used vars 2021-12-15 13:46:17 +00:00
timer xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
xenpci
xenstore xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00