Files
libvirt/tests
Roman Bogorodskiy 82b09f105a bhyve: support NUMA configuration for domains
Bhyve supports NUMA domains configuration using the '-n'
command line argument:

  -n id,size,cpus[,domain_policy]

Here, "id" is a numeric NUMA domain id, "size" is the total VM
memory size with units format similar to the "-m" switch,
"cpus" is a cpuset, and "domain_policy" is an optional
domainset(9) memory allocation policy. The "domain_policy"
is currently not used by the libvirt driver.

This argument is repeated for every NUMA domain to be configured, e.g.:

  bhyve \
  ...
  -n id=0,size=107,cpus=0-3
  -n id=1,size=107,cpus=4-7

To support that:

 * Add a corresponding capability; it is considered supported
   if the bhyve binary has the '-n' command line switch.

 * Generate command line arguments for NUMA from
   <cpu><numa>..</numa></cpu> domain configuration.

Additionally, validate that:

 * NUMA domains can be only configured with the UEFI loaders.
 * No more than 8 domains configured per VM as limited by bhyve.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2026-03-06 18:43:28 +01:00
..
2023-04-06 12:48:22 +02:00
2023-12-14 17:10:22 +01:00
2024-03-12 17:37:51 +01:00
2024-03-12 17:37:51 +01:00
2026-02-17 13:14:58 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2025-07-02 13:54:04 +02:00
2022-06-16 06:43:58 +02:00
2026-02-17 13:14:58 +01:00
2022-06-16 06:43:58 +02:00
…
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2026-02-24 11:29:07 +01:00
2023-04-06 12:48:22 +02:00
2025-07-02 13:54:04 +02:00
2022-06-16 06:43:58 +02:00
2025-07-02 13:54:04 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2024-03-14 15:17:48 +01:00
2024-09-24 08:24:00 +02:00
2022-06-16 06:43:58 +02:00
2023-03-13 13:29:07 +01:00
2025-07-02 13:54:04 +02:00
2025-07-02 13:54:04 +02:00
2025-07-02 13:54:04 +02:00
2025-11-20 15:09:10 +01:00
2022-06-16 06:43:58 +02:00