mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-29 00:55:22 +00:00
40a162f83e
In v6.0.0-rc1~439 (and friends) we tried to cache NUMA
capabilities because we assumed they are immutable. And to some
extent they are (NUMA hotplug is not a thing, is it). However,
our capabilities contain also some runtime info that can change,
e.g. hugepages pool allocation sizes or total amount of memory
per node (host side memory hotplug might change the value).
Because of the caching we might not be reporting the correct
runtime info in 'virsh capabilities'.
The NUMA caps are used in three places:
1) 'virsh capabilities'
2) domain startup, when parsing numad reply
3) parsing domain private data XML
In cases 2) and 3) we need NUMA caps to construct list of
physical CPUs that belong to NUMA nodes from numad reply. And
while this may seem static, it's not really because of possible
CPU hotplug on physical host.
There are two possible approaches:
1) build a validation mechanism that would invalidate the
cached NUMA caps, or
2) drop the caching and construct NUMA caps from scratch on
each use.
In this commit, the latter approach is implemented, because it's
easier.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1819058
Fixes:
|
||
---|---|---|
.. | ||
EVENTHANDLERS.txt | ||
libvirt_qemu_probes.d | ||
libvirtd_qemu.aug | ||
meson.build | ||
MIGRATION.txt | ||
qemu_agent.c | ||
qemu_agent.h | ||
qemu_alias.c | ||
qemu_alias.h | ||
qemu_backup.c | ||
qemu_backup.h | ||
qemu_block.c | ||
qemu_block.h | ||
qemu_blockjob.c | ||
qemu_blockjob.h | ||
qemu_capabilities.c | ||
qemu_capabilities.h | ||
qemu_capspriv.h | ||
qemu_cgroup.c | ||
qemu_cgroup.h | ||
qemu_checkpoint.c | ||
qemu_checkpoint.h | ||
qemu_command.c | ||
qemu_command.h | ||
qemu_conf.c | ||
qemu_conf.h | ||
qemu_dbus.c | ||
qemu_dbus.h | ||
qemu_domain_address.c | ||
qemu_domain_address.h | ||
qemu_domain.c | ||
qemu_domain.h | ||
qemu_domainjob.c | ||
qemu_domainjob.h | ||
qemu_driver.c | ||
qemu_driver.h | ||
qemu_extdevice.c | ||
qemu_extdevice.h | ||
qemu_firmware.c | ||
qemu_firmware.h | ||
qemu_hostdev.c | ||
qemu_hostdev.h | ||
qemu_hotplug.c | ||
qemu_hotplug.h | ||
qemu_interface.c | ||
qemu_interface.h | ||
qemu_interop_config.c | ||
qemu_interop_config.h | ||
qemu_migration_cookie.c | ||
qemu_migration_cookie.h | ||
qemu_migration_params.c | ||
qemu_migration_params.h | ||
qemu_migration_paramspriv.h | ||
qemu_migration.c | ||
qemu_migration.h | ||
qemu_monitor_json.c | ||
qemu_monitor_json.h | ||
qemu_monitor_priv.h | ||
qemu_monitor_text.c | ||
qemu_monitor_text.h | ||
qemu_monitor.c | ||
qemu_monitor.h | ||
qemu_namespace.c | ||
qemu_namespace.h | ||
qemu_process.c | ||
qemu_process.h | ||
qemu_processpriv.h | ||
qemu_qapi.c | ||
qemu_qapi.h | ||
qemu_saveimage.c | ||
qemu_saveimage.h | ||
qemu_security.c | ||
qemu_security.h | ||
qemu_shim.c | ||
qemu_slirp.c | ||
qemu_slirp.h | ||
qemu_snapshot.c | ||
qemu_snapshot.h | ||
qemu_tpm.c | ||
qemu_tpm.h | ||
qemu_validate.c | ||
qemu_validate.h | ||
qemu_vhost_user_gpu.c | ||
qemu_vhost_user_gpu.h | ||
qemu_vhost_user.c | ||
qemu_vhost_user.h | ||
qemu_virtiofs.c | ||
qemu_virtiofs.h | ||
qemu.conf | ||
test_libvirtd_qemu.aug.in | ||
THREADS.txt | ||
virtqemud.init.in | ||
virtqemud.service.in | ||
virtqemud.sysconf |