qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v4 2/2] QOM: object_property_add() performance i


From: Pavel Fedin
Subject: Re: [Qemu-devel] [PATCH v4 2/2] QOM: object_property_add() performance improvement
Date: Mon, 27 Jul 2015 18:19:17 +0300

 Hello!

> I'm just asking myself whether this is really necessary.  Is the
> automagic [*] really needed in this case?  

 In this particular case, perhaps, not. However, this automagic is used not 
only with GPIOs. It is used also with memory regions, as well as with some 
other places. Also, i thought that there could be some hard to notice problems, 
when, for example, we first add unnamed-gpio-in[0...1023], then add another 
1024 pins, where count again goes from 0 to 1023. And we would get collision 
and failure, unless we know, that we already have 1024 objects with this name. 
So, just for better safety, i decided to fix the mechanism itself instead of 
changing use cases.

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia





reply via email to

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