Re: [patch] remove vcpu_info array v5

"Glauber Costa" <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.kvm
Message-ID <[email protected]>
On Tue, Nov 4, 2008 at 12:40 PM, Avi Kivity <[email protected]> wrote:
> Glauber Costa wrote:
>>>
>>> There are simpler data structures.  An example is an array.  Since we
>>> have
>>> an upper limit on the number of cpus (->max_cpus) there are no issues
>>> with
>>> scaling (unlike with the algorithm above).
>>>
>>
>> Yes, but I believe the whole point of jes patches is to remove those
>> limits.
>>
>
> So we could linear search huge lists?  Or code hashes where arrays would do?
>  No, sir.
>
> An array of pointers statically sized at MAX_CPUS is fine.  If you insist,
> you can realloc() it on demand.

Yes, I agree. having MAX_CPUS is fine, and if we need to, we can increase that.
but again: then the direction of the flow is better be have qemu to
use a env array,
and then we can use the same method for kvm.

> --
> error compiling committee.c: too many arguments to function
>
>



-- 
Glauber  Costa.
"Free as in Freedom"
http://glommer.net

"The less confident you are, the more serious you have to act."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.