qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 16/22] tcg: keep a list of TCGContext's


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 16/22] tcg: keep a list of TCGContext's
Date: Sun, 9 Jul 2017 10:43:12 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 07/08/2017 09:50 PM, Emilio G. Cota wrote:
Before we make TCGContext thread-local. Once that is done, iterating
over all TCG contexts will be quite useful; for instance we
will need it to gather profiling info from each TCGContext.

A possible alternative would be to keep an array of TCGContext pointers.
However this option however is not that trivial, because vCPUs are spawned in
parallel. So let's just keep it simple and use a list protected by a lock.

Do we not know the number of cpus? I would have thought that we did, via -smp. Even cpu-hotplug would still have some sort of bounds?

Which really suggests an array would be better.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]