[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V7 RESEND 16/17] COLO: notify net filters about
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [Qemu-devel] [PATCH V7 RESEND 16/17] COLO: notify net filters about checkpoint/failover event |
Date: |
Thu, 17 May 2018 10:48:07 +0100 |
User-agent: |
Mutt/1.9.5 (2018-04-13) |
* Zhang Chen (address@hidden) wrote:
> From: zhanghailiang <address@hidden>
>
> Notify all net filters about the checkpoint and failover event.
>
> Signed-off-by: zhanghailiang <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
> ---
> migration/colo.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/migration/colo.c b/migration/colo.c
> index 3dfd84d897..15463e2823 100644
> --- a/migration/colo.c
> +++ b/migration/colo.c
> @@ -88,6 +88,11 @@ static void secondary_vm_do_failover(void)
> if (local_err) {
> error_report_err(local_err);
> }
> + /* Notify all filters of all NIC to do checkpoint */
> + colo_notify_filters_event(COLO_EVENT_FAILOVER, &local_err);
> + if (local_err) {
> + error_report_err(local_err);
> + }
>
> if (!autostart) {
> error_report("\"-S\" qemu option will be ignored in secondary side");
> @@ -799,6 +804,13 @@ void *colo_process_incoming_thread(void *opaque)
> goto out;
> }
>
> + /* Notify all filters of all NIC to do checkpoint */
> + colo_notify_filters_event(COLO_EVENT_CHECKPOINT, &local_err);
> + if (local_err) {
> + qemu_mutex_unlock_iothread();
> + goto out;
> + }
> +
> vmstate_loading = false;
> vm_start();
> trace_colo_vm_state_change("stop", "run");
> --
> 2.17.0
>
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK
- [Qemu-devel] [PATCH V7 RESEND 09/17] COLO: Flush memory data from ram cache, (continued)
- [Qemu-devel] [PATCH V7 RESEND 09/17] COLO: Flush memory data from ram cache, Zhang Chen, 2018/05/14
- [Qemu-devel] [PATCH V7 RESEND 10/17] qmp event: Add COLO_EXIT event to notify users while exited COLO, Zhang Chen, 2018/05/14
- [Qemu-devel] [PATCH V7 RESEND 11/17] qapi: Add new command to query colo status, Zhang Chen, 2018/05/14
- [Qemu-devel] [PATCH V7 RESEND 12/17] savevm: split the process of different stages for loadvm/savevm, Zhang Chen, 2018/05/14
- [Qemu-devel] [PATCH V7 RESEND 13/17] COLO: flush host dirty ram from cache, Zhang Chen, 2018/05/14
- [Qemu-devel] [PATCH V7 RESEND 14/17] filter: Add handle_event method for NetFilterClass, Zhang Chen, 2018/05/14
- [Qemu-devel] [PATCH V7 RESEND 16/17] COLO: notify net filters about checkpoint/failover event, Zhang Chen, 2018/05/14
- Re: [Qemu-devel] [PATCH V7 RESEND 16/17] COLO: notify net filters about checkpoint/failover event,
Dr. David Alan Gilbert <=
- [Qemu-devel] [PATCH V7 RESEND 15/17] filter-rewriter: handle checkpoint and failover event, Zhang Chen, 2018/05/14
- [Qemu-devel] [PATCH V7 RESEND 17/17] COLO: quick failover process by kick COLO thread, Zhang Chen, 2018/05/14
- Re: [Qemu-devel] [PATCH V7 RESEND 00/17] COLO: integrate colo frame with block replication and COLO proxy, Dr. David Alan Gilbert, 2018/05/16