qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH RFC 0/2] QMP command qom-new


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH RFC 0/2] QMP command qom-new
Date: Thu, 24 May 2012 09:10:48 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 05/24/2012 08:18 AM, Peter Maydell wrote:
On 24 May 2012 14:06, Anthony Liguori<address@hidden>  wrote:
There are very few places where errors can be handled gracefully.  They are
exceptions and can be treated as such.

I think it's far better for the QOM infrastructure to assert when it detects
something bad because 99% of the users of QOM do not even attempt to handle
errors gracefully

Last time I was trying to argue for keeping the "create, set properties,
realize" interface for devices/objects as simple as possible you wanted
it to have an error-return interface rather than asserting...

You need to be more specific than that I'm afraid..

Regards,

Anthony Liguori


-- PMM




reply via email to

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