[Top][All Lists]

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

Re: [Qemu-devel] [PATCH 0/3] qom: refactor Interfaces

From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 0/3] qom: refactor Interfaces
Date: Thu, 14 Jun 2012 11:10:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0

Il 13/06/2012 22:54, Anthony Liguori ha scritto:
> The interface implementation was pretty busted.  The way it created Objects 
> for
> each interface was extremely clumbsy and brittle.
> This is a new implementation that does something quite a bit more natural.  It
> simply modifies classes such that they can affectively have more than one 
> super
> class.
> Interfaces never get instantiated.  Instead an object's class just refers to 
> its
> parent class and it's implemented interfaces.
> This should solve the issues Peter's run into and also eliminate the recursive
> call to object_new() (its no longer necessary to allocate anything when 
> creating
> an object).
> This also comes with a test case for object.

I gave it only a quick look, but the approach is much more sane.

Acked-by: Paolo Bonzini <address@hidden>


reply via email to

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