Re: [Qemu-devel] [RFC 06/10] qdev: add stubs for vmstate register/unregister functions

2012-12-04 Thread Eduardo Habkost
On Mon, Dec 03, 2012 at 10:49:56PM +0100, Igor Mammedov wrote: > On Fri, 30 Nov 2012 17:27:18 -0200 > Eduardo Habkost wrote: > > > Add vmstate stub functions, so that qdev.o can be used without savevm.o > > when vmstate support is not necessary (i.e. by *-user). > > > > Signed-off-by: Eduardo Ha

Re: [Qemu-devel] [RFC 06/10] qdev: add stubs for vmstate register/unregister functions

2012-12-04 Thread Paolo Bonzini
Il 04/12/2012 13:49, Eduardo Habkost ha scritto: > Well, the commit description says that "if you place each function in a > separate source file, object files for unused functions will not be > taken in", I don't see it as a requirement. In this case, pulling both > stubs is a feature: if a binary

Re: [Qemu-devel] [RFC 06/10] qdev: add stubs for vmstate register/unregister functions

2012-12-03 Thread Igor Mammedov
On Fri, 30 Nov 2012 17:27:18 -0200 Eduardo Habkost wrote: > Add vmstate stub functions, so that qdev.o can be used without savevm.o > when vmstate support is not necessary (i.e. by *-user). > > Signed-off-by: Eduardo Habkost > --- > Originally submitted as: > Subject: qdev-core: isolate vmsta

[Qemu-devel] [RFC 06/10] qdev: add stubs for vmstate register/unregister functions

2012-11-30 Thread Eduardo Habkost
Add vmstate stub functions, so that qdev.o can be used without savevm.o when vmstate support is not necessary (i.e. by *-user). Signed-off-by: Eduardo Habkost --- Originally submitted as: Subject: qdev-core: isolate vmstate handling into separate functions Changes v1 -> v2: - Add GCC_WEAK_DEC