Re: [PATCH] object: Improve documentation of interfaces

2019-12-12 Thread Paolo Bonzini
On 11/12/19 14:32, Greg Kurz wrote: > QOM interfaces allow a limited form of multiple inheritance, at the > condition of being stateless. That is, they cannot be instantiated > and a pointer to an interface shouldn't be dereferenceable in any way. > This is achieved by making the QOM instance type

Re: [PATCH] object: Improve documentation of interfaces

2019-12-11 Thread David Gibson
On Wed, Dec 11, 2019 at 02:32:41PM +0100, Greg Kurz wrote: > QOM interfaces allow a limited form of multiple inheritance, at the > condition of being stateless. That is, they cannot be instantiated > and a pointer to an interface shouldn't be dereferenceable in any way. > This is achieved by making

Re: [PATCH] object: Improve documentation of interfaces

2019-12-11 Thread Markus Armbruster
Greg Kurz writes: > QOM interfaces allow a limited form of multiple inheritance, at the > condition of being stateless. That is, they cannot be instantiated > and a pointer to an interface shouldn't be dereferenceable in any way. > This is achieved by making the QOM instance type an incomplete ty

Re: [PATCH] object: Improve documentation of interfaces

2019-12-11 Thread Marc-André Lureau
On Wed, Dec 11, 2019 at 5:33 PM Greg Kurz wrote: > > QOM interfaces allow a limited form of multiple inheritance, at the > condition of being stateless. That is, they cannot be instantiated > and a pointer to an interface shouldn't be dereferenceable in any way. > This is achieved by making the QO

[PATCH] object: Improve documentation of interfaces

2019-12-11 Thread Greg Kurz
QOM interfaces allow a limited form of multiple inheritance, at the condition of being stateless. That is, they cannot be instantiated and a pointer to an interface shouldn't be dereferenceable in any way. This is achieved by making the QOM instance type an incomplete type, which is, as mentioned b