[libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

Eduardo Habkost ehabkost at redhat.com
Wed Aug 11 13:46:17 UTC 2021


On Wed, Aug 11, 2021 at 9:42 AM Daniel P. Berrangé <berrange at redhat.com> wrote:
> On Wed, Aug 11, 2021 at 09:33:08AM -0400, Eduardo Habkost wrote:
> > Wouldn't it be easier to simply invalidate the cache every time
> > libvirtd is restarted? If libvirtd keeps /dev/kvm open all the time,
> > this would also cover features affected by KVM module reloads.
>
> Invalidating the cache on every restart defeats the very purpose of
> having a cache in the first place. Probing for capabilities slows
> startup of the daemon and that is what required introduction of a
> cache.

Can't libvirtd query CPU capabilities only when clients ask for that
information the first time?

-- 
Eduardo





More information about the libvir-list mailing list