Re: [Qemu-devel] [PATCH 2/5] migration/vmstate: split up vmstate_base_addr

2017-02-22 Thread Halil Pasic
On 02/21/2017 01:07 PM, Dr. David Alan Gilbert wrote: > * Halil Pasic (pa...@linux.vnet.ibm.com) wrote: >> Currently vmstate_base_addr does several things: it pinpoints the field >> within the struct, possibly allocates memory and possibly does the first >> pointer dereference. Obviously

Re: [Qemu-devel] [PATCH 2/5] migration/vmstate: split up vmstate_base_addr

2017-02-21 Thread Dr. David Alan Gilbert
* Halil Pasic (pa...@linux.vnet.ibm.com) wrote: > Currently vmstate_base_addr does several things: it pinpoints the field > within the struct, possibly allocates memory and possibly does the first > pointer dereference. Obviously allocation is needed only for load. > > Let us split up the

[Qemu-devel] [PATCH 2/5] migration/vmstate: split up vmstate_base_addr

2017-02-16 Thread Halil Pasic
Currently vmstate_base_addr does several things: it pinpoints the field within the struct, possibly allocates memory and possibly does the first pointer dereference. Obviously allocation is needed only for load. Let us split up the functionality in vmstate_base_addr and move the address