Am 02.12.2011 21:20, schrieb Anthony Liguori: > The full tree search was a bit unreasonable. > > Signed-off-by: Anthony Liguori <aligu...@us.ibm.com>
> diff --git a/hw/qdev.h b/hw/qdev.h > index 4351e2e..fdab848 100644 > --- a/hw/qdev.h > +++ b/hw/qdev.h > @@ -92,6 +92,10 @@ struct DeviceState { > uint32_t ref; > > QTAILQ_HEAD(, DeviceProperty) properties; > + > + /* Do not, under any circumstance, use this parent link below anywhere > + * outside of qdev.c. You have been warned. */ > + DeviceState *parent; > }; I would expect that a warning works better if it tells people _why_ their code will break if they do it anyway (it's not clear to me) Kevin