qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 35/41] migration: use QEMUFile for writing outgo


From: Juan Quintela
Subject: Re: [Qemu-devel] [PATCH 35/41] migration: use QEMUFile for writing outgoing migration data
Date: Fri, 22 Feb 2013 12:55:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Juan Quintela <address@hidden> wrote:
> Paolo Bonzini <address@hidden> wrote:
>> Second, drop the file descriptor indirection, and write directly to the
>> QEMUFile.
>>
>> Signed-off-by: Paolo Bonzini <address@hidden>
>
>> +    qemu_put_buffer(s->migration_file, buf, size);
>> +    if (qemu_file_get_error(s->migration_file)) {
>> +        return qemu_file_get_error(s->migration_file);
>
> Rest of patch is really, really nice.
>
> But here, please, use a local variable.
>
>     qemu_put_buffer(s->migration_file, buf, size);
>     ret = qemu_file_get_error(s->migration_file);
>     if (ret) {
>        return ret;
>     }

This chunk is removed in a later patch, so don't care about changing it.

Reviewed-by: Juan Quintela <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]