Re: [Qemu-devel] [very-WIP 3/4] slirp: VMStatify sbuf

2016-10-18 Thread Halil Pasic
On 10/17/2016 09:06 PM, Dr. David Alan Gilbert wrote: >> OK, memory was allocated at #2 >> > It is a bit confusing though (for a novice like me) that we have a non >> > ALLOC VBUFFER >> > whose pointer is NULL after post_load. > I don't think this pointer can be NULL; the sbreserve at #2 causes

Re: [Qemu-devel] [very-WIP 3/4] slirp: VMStatify sbuf

2016-10-17 Thread Dr. David Alan Gilbert
* Halil Pasic (pa...@linux.vnet.ibm.com) wrote: > > > On 10/17/2016 05:36 AM, David Gibson wrote: > > On Tue, Oct 11, 2016 at 06:18:32PM +0100, Dr. David Alan Gilbert (git) > > wrote: > >> From: "Dr. David Alan Gilbert" > >> > >> Convert the sbuf structure to a

Re: [Qemu-devel] [very-WIP 3/4] slirp: VMStatify sbuf

2016-10-17 Thread Halil Pasic
On 10/17/2016 05:36 AM, David Gibson wrote: > On Tue, Oct 11, 2016 at 06:18:32PM +0100, Dr. David Alan Gilbert (git) wrote: >> From: "Dr. David Alan Gilbert" >> >> Convert the sbuf structure to a VMStateDescription. >> Note this uses the VMSTATE_WITH_TMP mechanism to

Re: [Qemu-devel] [very-WIP 3/4] slirp: VMStatify sbuf

2016-10-16 Thread David Gibson
On Tue, Oct 11, 2016 at 06:18:32PM +0100, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Convert the sbuf structure to a VMStateDescription. > Note this uses the VMSTATE_WITH_TMP mechanism to calculate > and reload the offsets based on the pointers.

[Qemu-devel] [very-WIP 3/4] slirp: VMStatify sbuf

2016-10-11 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Convert the sbuf structure to a VMStateDescription. Note this uses the VMSTATE_WITH_TMP mechanism to calculate and reload the offsets based on the pointers. Signed-off-by: Dr. David Alan Gilbert --- slirp/sbuf.h | 4