[Qemu-devel] [PATCH 01/12] migration: unify stdio-based QEMUFile operations

2012-11-02 Thread Paolo Bonzini
Now that qemu_fseek does not exist anymore, there is no reason to do an fseek before fread/fwrite when operating on an stdio file. Thus, unify the get/put_buffer callbacks used by qemu_fopen with those used for pipes. Reviewed-by: Orit Wasserman Signed-off-by: Paolo Bonzini --- savevm.c | 19 ++

Re: [Qemu-devel] [PATCH 01/12] migration: unify stdio-based QEMUFile operations

2012-10-30 Thread Juan Quintela
Paolo Bonzini wrote: > Now that qemu_fseek does not exist anymore, there is no reason to do > an fseek before fread/fwrite when operating on an stdio file. > Thus, unify the get/put_buffer callbacks used by qemu_fopen > with those used for pipes. As far as I know, the pos parameter was only used

Re: [Qemu-devel] [PATCH 01/12] migration: unify stdio-based QEMUFile operations

2012-10-28 Thread Orit Wasserman
On 10/18/2012 12:22 PM, Paolo Bonzini wrote: > Now that qemu_fseek does not exist anymore, there is no reason to do > an fseek before fread/fwrite when operating on an stdio file. > Thus, unify the get/put_buffer callbacks used by qemu_fopen > with those used for pipes. > > Signed-off-by: Paolo Bo

[Qemu-devel] [PATCH 01/12] migration: unify stdio-based QEMUFile operations

2012-10-18 Thread Paolo Bonzini
Now that qemu_fseek does not exist anymore, there is no reason to do an fseek before fread/fwrite when operating on an stdio file. Thus, unify the get/put_buffer callbacks used by qemu_fopen with those used for pipes. Signed-off-by: Paolo Bonzini --- savevm.c | 19 ++- 1 file mod