Re: [PATCH 3/3] qemu_capabilities: Reword domain caps cache

2020-01-24 Thread Peter Krempa
On Fri, Jan 24, 2020 at 11:27:18 +0100, Michal Privoznik wrote: > Since v5.6.0-48-g270583ed98 we try to cache domain capabilities, > i.e. store filled virDomainCaps in a hash table in virQEMUCaps > for future use. However, there's a race condition in the way it's > implemented. We use

[PATCH 3/3] qemu_capabilities: Reword domain caps cache

2020-01-24 Thread Michal Privoznik
Since v5.6.0-48-g270583ed98 we try to cache domain capabilities, i.e. store filled virDomainCaps in a hash table in virQEMUCaps for future use. However, there's a race condition in the way it's implemented. We use virQEMUCapsGetDomainCapsCache() to obtain the pointer to the hash table, then we