[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v11 13/15] rdma: allow state transitions between
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH v11 13/15] rdma: allow state transitions between other states besides ACTIVE |
Date: |
Tue, 25 Jun 2013 11:40:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
address@hidden wrote:
> From: "Michael R. Hines" <address@hidden>
>
> This patch is in preparation for the next ones: Until now the MIG_STATE_SETUP
> state was not really a 'formal' state. It has been used as a 'zero' state
> and QEMU has been unconditionally transitioning into this state when
> the QMP migrate command was called. In preparation for timing this state,
> we have to make this state a a 'real' state which actually gets transitioned
> from later in the migration_thread() from SETUP => ACTIVE, rather than just
> automatically dropping into this state at the beginninig of the migration.
>
> This means that the state transition function (migration_finish_set_state())
> needs to be capable of transitioning from valid states _other_ than just
> MIG_STATE_ACTIVE.
>
> The function is in fact already capable of doing that, but was not allowing
> the
> old state to be a parameter specified as an input.
>
> This patch fixes that and only makes the transition if the current state
> matches the old state that the caller intended to transition from.
>
> Tested-by: Michael R. Hines <address@hidden>
> Signed-off-by: Michael R. Hines <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
- [Qemu-devel] [PATCH v11 10/15] rdma: introduce capability x-rdma-pin-all, (continued)
- [Qemu-devel] [PATCH v11 10/15] rdma: introduce capability x-rdma-pin-all, mrhines, 2013/06/24
- [Qemu-devel] [PATCH v11 01/15] rdma: add documentation, mrhines, 2013/06/24
- [Qemu-devel] [PATCH v11 11/15] rdma: core logic, mrhines, 2013/06/24
- [Qemu-devel] [PATCH v11 03/15] rdma: export yield_until_fd_readable(), mrhines, 2013/06/24
- [Qemu-devel] [PATCH v11 07/15] rdma: introduce ram_handle_compressed(), mrhines, 2013/06/24
- [Qemu-devel] [PATCH v11 08/15] rdma: introduce qemu_ram_foreach_block(), mrhines, 2013/06/24
- [Qemu-devel] [PATCH v11 13/15] rdma: allow state transitions between other states besides ACTIVE, mrhines, 2013/06/24
- Re: [Qemu-devel] [PATCH v11 13/15] rdma: allow state transitions between other states besides ACTIVE,
Juan Quintela <=