Re: [PATCH v2 1/1] plugins: fix race condition with scoreboards

2024-08-13 Thread Richard Henderson
On 8/13/24 08:07, Pierrick Bouvier wrote: A deadlock can be created if a new vcpu (a) triggers a scoreboard reallocation, and another vcpu (b) wants to create a new scoreboard at the same time. In this case, (a) holds the plugin lock, and starts an exclusive section, waiting for (b). But at the

Re: [PATCH v2 1/1] plugins: fix race condition with scoreboards

2024-08-13 Thread Alex Bennée
Pierrick Bouvier writes: > A deadlock can be created if a new vcpu (a) triggers a scoreboard > reallocation, and another vcpu (b) wants to create a new scoreboard at > the same time. > > In this case, (a) holds the plugin lock, and starts an exclusive > section, waiting for (b). But at the same t

[PATCH v2 1/1] plugins: fix race condition with scoreboards

2024-08-12 Thread Pierrick Bouvier
A deadlock can be created if a new vcpu (a) triggers a scoreboard reallocation, and another vcpu (b) wants to create a new scoreboard at the same time. In this case, (a) holds the plugin lock, and starts an exclusive section, waiting for (b). But at the same time, (b) is waiting for plugin lock.