qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH RFC 1/7] qom: allow properties to be registered


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH RFC 1/7] qom: allow properties to be registered against classes
Date: Mon, 7 Sep 2015 14:54:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0


On 04/09/2015 08:56, Markus Armbruster wrote:
>> >
>> > Personally I'd prefer to see us focus on just solving the simple
>> > cases first, so we don't end up stuck arguing over the hard
>> > cases and holding up potential quick wins !
> That's a sensible approach when the solutions to the simple cases are
> likely to stand regardless of whether and how we later crack the hard
> cases.  I guess it's sensible here.  Let me explain.
> 
> I prefer defining properties in static data rather than code, because
> reasoning over static data is so much easier.  If we can find a way to
> do that even for the hard cases, lovely.  If we can't, then I'd still
> prefer the softer cases done in data.  Two mechanisms instead of one
> (bad), but the vast majority of cases becomes simpler (good).

I agree.  Plus, we already have two mechanisms anyway "thanks" to qdev
static properties, so it's a net improvement.

paolo



reply via email to

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