[Top][All Lists]

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

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

From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH RFC 0/2] QMP command qom-new
Date: Thu, 24 May 2012 14:18:38 +0100

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...

-- PMM

reply via email to

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