Re: [PATCH v1 12/15] cpus-common: ensure auto-assigned cpu_indexes don't clash

2020-05-21 Thread Richard Henderson
On 5/20/20 7:05 AM, Alex Bennée wrote: > Basing the cpu_index on the number of currently allocated vCPUs fails > when vCPUs aren't removed in a LIFO manner. This is especially true > when we are allocating a cpu_index for each guest thread in > linux-user where there is no ordering constraint on th

[PATCH v1 12/15] cpus-common: ensure auto-assigned cpu_indexes don't clash

2020-05-20 Thread Alex Bennée
Basing the cpu_index on the number of currently allocated vCPUs fails when vCPUs aren't removed in a LIFO manner. This is especially true when we are allocating a cpu_index for each guest thread in linux-user where there is no ordering constraint on their allocation and de-allocation. [I've droppe