[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete |
Date: |
Wed, 13 Jun 2012 15:02:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
Il 13/06/2012 14:59, Andreas Färber ha scritto:
> Ouch! One can argue that's still not recursive, but what matters more
> this borks Anthony's in-place object_initialize() concept.
>
> Two solutions come to mind:
> * allocate the interfaces as part of object_new() beyond instance_size
That won't work if you initialize in place, because you cannot allocate
the room for the interface. It is possible to put Interface objects
explicitly in the class, and pass an offset when registering the type so
that they can be initialized in place.
But I still think we're fighting windmills...
Paolo
[Qemu-devel] [RFC v0 7/8] petalogix_ml605_mmu: fixed qdev create for dma, Peter A. G. Crosthwaite, 2012/06/13
[Qemu-devel] [RFC v0 8/8] axidma: renamed interconnect to axi-stream, Peter A. G. Crosthwaite, 2012/06/13
[Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Peter A. G. Crosthwaite, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Paolo Bonzini, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Andreas Färber, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Paolo Bonzini, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Andreas Färber, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete,
Paolo Bonzini <=
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Anthony Liguori, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Paolo Bonzini, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Anthony Liguori, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Paolo Bonzini, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Anthony Liguori, 2012/06/13
- Re: [Qemu-devel] [RFC v0 5/8] object: make interfaces concrete, Edgar E. Iglesias, 2012/06/13