Re: [Qemu-devel] [PATCH 02/16] qom: store object with correct type in interface links

2012-02-03 Thread Paolo Bonzini
On 02/02/2012 06:05 PM, Anthony Liguori wrote: On 02/02/2012 10:45 AM, Paolo Bonzini wrote: When a link property's type is an interface, the code expects the implementation object (not the parent object) to be stored in the variable. The parent object does not contain the right vtable.

[Qemu-devel] [PATCH 02/16] qom: store object with correct type in interface links

2012-02-02 Thread Paolo Bonzini
When a link property's type is an interface, the code expects the implementation object (not the parent object) to be stored in the variable. The parent object does not contain the right vtable. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qom/object.c |3 ++- 1 files changed, 2

Re: [Qemu-devel] [PATCH 02/16] qom: store object with correct type in interface links

2012-02-02 Thread Anthony Liguori
On 02/02/2012 10:45 AM, Paolo Bonzini wrote: When a link property's type is an interface, the code expects the implementation object (not the parent object) to be stored in the variable. The parent object does not contain the right vtable. Signed-off-by: Paolo Bonzinipbonz...@redhat.com ---