Files
libvirt/tests
Michal Privoznik b98d29e022 qemu: Treat memory device source nodemask as strict NUMA policy
A memory device can have <nodemask/> which specifies which host
NUMA nodes the memory should be allocated from (currently
supported for dimm, virtio-mem and sgx-epc models).
But when generating corresponding command line for the device,
the NUMA policy is taken from the guest NUMA node that
corresponds to the memory device (as defined by target/node) or
overall domain NUMA policy (as defined by <numatune/>).

This may lead to memory being allocated from unexpected NUMA
node. For instance, if the memory device has
<nodemask>0</nodemask> and domain has <numatune> <memory
mode='preferred' nodeset='1'/> </numatune> then the cmd line for
the memory device also has just "policy":"preferred".

Treat <nodemask/> as mode='strict'.

But I agree that this is kind of nonsense configuration. Why
would somebody want to prefer one NUMA node but then configure
memory device to allocate NUMA from the other?

Resolves: https://issues.redhat.com/browse/RHEL-114415
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2025-12-09 15:28:02 +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
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
2021-09-09 18:06:13 +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
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02: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
2021-09-09 18:06:13 +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
2021-09-09 18:06:13 +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
2021-09-09 18:06:13 +02:00
2025-11-20 15:09:10 +01:00
2022-06-16 06:43:58 +02:00