[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] RFC: -object vs -chardev creation order
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] RFC: -object vs -chardev creation order |
Date: |
Wed, 18 Mar 2015 08:32:05 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 17/03/2015 20:08, Daniel P. Berrange wrote:
> A third option is to not process -object args in one go, instead process
> each type of object at a time. eg we'd first create all the
> -object tls-credential instances, then create the -chardev instances,
> then create the -object rng-egd instances. This is probably the least
> amount of work in short term, but not all that scalable, unless we do
> a catch-all default case, so we only need code up hacks for a few
> particular object types.
>
> Thus my gut feeling is to do option 3, but I'd like other opinions before
> embarking on this....
Yes, for now it is the best.
Another idea is to build objects lazily. This requires adding a
"missing property" interface and making /objects implement it. We can
think about it later.
Paolo