[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v8 24/54] Add wrappers and handlers for sending/
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH v8 24/54] Add wrappers and handlers for sending/receiving the postcopy-ram migration messages. |
Date: |
Tue, 20 Oct 2015 13:50:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
"Dr. David Alan Gilbert (git)" <address@hidden> wrote:
> From: "Dr. David Alan Gilbert" <address@hidden>
>
> The state of the postcopy process is managed via a series of messages;
> * Add wrappers and handlers for sending/receiving these messages
> * Add state variable that track the current state of postcopy
>
> Signed-off-by: Dr. David Alan Gilbert <address@hidden>
> Reviewed-by: Amit Shah <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
> + tmp[0] = cpu_to_be64(getpagesize());
> + tmp[1] = cpu_to_be64(1ul << qemu_target_page_bits());
we don't have a qemu_target_pagesize()?
#fail
> + qemu_savevm_command_send(f, MIG_CMD_POSTCOPY_LISTEN, 0, NULL);
Should we create a macro
qemu_savevm_command_noargs_send(f, MIG_CMD_POSTCOPY_LISTEN);
It is a "bit" clear, but saves a "whole" byte. Not convinced one way or
other :-p
> +
> + case MIG_CMD_POSTCOPY_ADVISE:
> + tmp64a = qemu_get_be64(f); /* hps */
> + tmp64b = qemu_get_be64(f); /* tps */
> + return loadvm_postcopy_handle_advise(mis, tmp64a, tmp64b);
In the rest of the commands, you read the arguments inside the
loadvm_postocpy_handle_*(), I think you should do the same here.
Later, Juan.
- [Qemu-devel] [PATCH v8 20/54] Return path: Send responses from destination to source, (continued)
- [Qemu-devel] [PATCH v8 24/54] Add wrappers and handlers for sending/receiving the postcopy-ram migration messages., Dr. David Alan Gilbert (git), 2015/10/01
- Re: [Qemu-devel] [PATCH v8 24/54] Add wrappers and handlers for sending/receiving the postcopy-ram migration messages.,
Juan Quintela <=
- [Qemu-devel] [PATCH v8 25/54] MIG_CMD_PACKAGED: Send a packaged chunk of migration stream, Dr. David Alan Gilbert (git), 2015/10/01
- [Qemu-devel] [PATCH v8 26/54] Modify save_live_pending for postcopy, Dr. David Alan Gilbert (git), 2015/10/01
- [Qemu-devel] [PATCH v8 27/54] postcopy: OS support test, Dr. David Alan Gilbert (git), 2015/10/01
- [Qemu-devel] [PATCH v8 28/54] migrate_start_postcopy: Command to trigger transition to postcopy, Dr. David Alan Gilbert (git), 2015/10/01