Re: [Qemu-devel] [PATCH v3 2/3] qdev: interface for SysBusDevice to change property on requirement

2013-09-01 Thread liu ping fan
On Fri, Aug 30, 2013 at 8:32 PM, Andreas Färber wrote: > Am 30.08.2013 10:17, schrieb Paolo Bonzini: >> Il 30/08/2013 09:53, Liu Ping Fan ha scritto: >>> qdev's property can not be set after realized, but there is a >>> requirement of adjusting device's behavior on different mother >>> boards. So

Re: [Qemu-devel] [PATCH v3 2/3] qdev: interface for SysBusDevice to change property on requirement

2013-09-01 Thread liu ping fan
On Fri, Aug 30, 2013 at 4:17 PM, Paolo Bonzini wrote: > Il 30/08/2013 09:53, Liu Ping Fan ha scritto: >> qdev's property can not be set after realized, but there is a >> requirement of adjusting device's behavior on different mother >> boards. So introducing a callback in sysbus_try_create_simple

Re: [Qemu-devel] [PATCH v3 2/3] qdev: interface for SysBusDevice to change property on requirement

2013-08-30 Thread Andreas Färber
Am 30.08.2013 10:17, schrieb Paolo Bonzini: > Il 30/08/2013 09:53, Liu Ping Fan ha scritto: >> qdev's property can not be set after realized, but there is a >> requirement of adjusting device's behavior on different mother >> boards. So introducing a callback in sysbus_try_create_simple() >> to ad

Re: [Qemu-devel] [PATCH v3 2/3] qdev: interface for SysBusDevice to change property on requirement

2013-08-30 Thread Peter Maydell
On 30 August 2013 08:53, Liu Ping Fan wrote: > qdev's property can not be set after realized, but there is a > requirement of adjusting device's behavior on different mother > boards. So introducing a callback in sysbus_try_create_simple() > to adjust device's property on board's demand. The sys

Re: [Qemu-devel] [PATCH v3 2/3] qdev: interface for SysBusDevice to change property on requirement

2013-08-30 Thread Paolo Bonzini
Il 30/08/2013 09:53, Liu Ping Fan ha scritto: > qdev's property can not be set after realized, but there is a > requirement of adjusting device's behavior on different mother > boards. So introducing a callback in sysbus_try_create_simple() > to adjust device's property on board's demand. > > (Th

[Qemu-devel] [PATCH v3 2/3] qdev: interface for SysBusDevice to change property on requirement

2013-08-30 Thread Liu Ping Fan
qdev's property can not be set after realized, but there is a requirement of adjusting device's behavior on different mother boards. So introducing a callback in sysbus_try_create_simple() to adjust device's property on board's demand. (This patch is needed by the later one which changes hpet's i