Re: [PATCH] plugins: fix race condition with scoreboards

2024-08-12 Thread Pierrick Bouvier
On 7/28/24 20:30, Richard Henderson wrote: On 7/23/24 09:23, 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 exc

Re: [PATCH] plugins: fix race condition with scoreboards

2024-07-28 Thread Richard Henderson
On 7/23/24 09:23, 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] plugins: fix race condition with scoreboards

2024-07-22 Thread Pierrick Bouvier
@Alex: If possible, this patch should be included for the release to come. On 7/22/24 16:23, 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 th

[PATCH] plugins: fix race condition with scoreboards

2024-07-22 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.