RE: [PATCH v2] MAINTAINERS: Change my email address

2021-12-14 Thread zhanghailiang
> -Original Message- > From: Philippe Mathieu-Daudé > Sent: Tuesday, December 14, 2021 6:18 PM > To: Daniel P. Berrangé > Cc: zhanghailiang ; qemu-devel@nongnu.org; > Gonglei ; Wen Congyang > ; dgilb...@redhat.com; quint...@redhat.com > Subject: Re: [PATCH v2

RE: [PATCH v2] MAINTAINERS: Change my email address

2021-12-14 Thread zhanghailiang
Yes. I'll tell Gonglei to help confirm this patch.  Thanks. -Original Message- From: Philippe Mathieu-Daudé Sent: Tuesday, December 14, 2021 5:04 PM To: zhanghailiang ; qemu-devel@nongnu.org; Gonglei ; Wen Congyang Cc: dgilb...@redhat.com; quint...@redhat.com Subject: Re: [PATCH v2

RE: [PATCH v3 00/18] Support Multifd for RDMA migration

2020-10-21 Thread Zhanghailiang
Hi zhengchuan, > -Original Message- > From: zhengchuan > Sent: Saturday, October 17, 2020 12:26 PM > To: quint...@redhat.com; dgilb...@redhat.com > Cc: Zhanghailiang ; Chenzhendong (alex) > ; Xiexiangyou ; wanghao > (O) ; yubihong ; > fengzhim...@huawei.co

RE: [PATCH v1 0/1] COLO: migrate dirty ram pages before colo checkpoint

2020-08-15 Thread Zhanghailiang
> -Original Message- > From: Derek Su [mailto:jwsu1...@gmail.com] > Sent: Thursday, August 13, 2020 6:28 PM > To: Lukas Straub > Cc: Derek Su ; qemu-devel@nongnu.org; Zhanghailiang > ; chy...@qnap.com; quint...@redhat.com; > dgilb...@redhat.com; ctch...@qnap.com >

RE: [PATCH v0 0/4] background snapshot

2020-08-04 Thread Zhanghailiang
To be accepted as quickly as possible. ;) Thanks, Hailiang > -Original Message- > From: Dr. David Alan Gilbert [mailto:dgilb...@redhat.com] > Sent: Tuesday, July 28, 2020 1:00 AM > To: Denis Plotnikov ; da...@redhat.com; > Zhanghailiang > Cc: qemu-devel@nongnu.org; pbonz...

RE: [PATCH v1 0/1] COLO: migrate dirty ram pages before colo checkpoint

2020-07-31 Thread Zhanghailiang
Hi Lukas Straub & Derek, Sorry for the late reply, too busy these days ;) > -Original Message- > From: Lukas Straub [mailto:lukasstra...@web.de] > Sent: Friday, July 31, 2020 3:52 PM > To: Derek Su > Cc: qemu-devel@nongnu.org; Zhanghailiang > ; chy...@qnap.com;

RE: [PATCH 08/22] qga: Plug unlikely memory leak in guest-set-memory-blocks

2020-06-23 Thread Zhanghailiang
Reviewed-by: zhanghailiang > -Original Message- > From: Markus Armbruster [mailto:arm...@redhat.com] > Sent: Monday, June 22, 2020 6:43 PM > To: qemu-devel@nongnu.org > Cc: Michael Roth ; Zhanghailiang > > Subject: [PATCH 08/22] qga: Plug unlikely memory leak

RE: Memory leak in transfer_memory_block()?

2020-06-18 Thread Zhanghailiang
> -Original Message- > From: Markus Armbruster [mailto:arm...@redhat.com] > Sent: Thursday, June 18, 2020 1:36 PM > To: Zhanghailiang > Cc: qemu-devel@nongnu.org; Michael Roth > Subject: Memory leak in transfer_memory_block()? > > We appear to l

RE: [PATCH 1/2] migration/colo: fix typo in the COLO Framework module

2020-06-15 Thread Zhanghailiang
Reviewed-by: zhanghailiang > -Original Message- > From: Like Xu [mailto:like...@linux.intel.com] > Sent: Sunday, June 14, 2020 4:45 PM > To: qemu-devel@nongnu.org > Cc: Like Xu ; Zhanghailiang > > Subject: [PATCH 1/2] migration/colo: fix typo in the COLO Frame

RE: [PATCH 1/2] migration/colo: fix typo in the COLO Framework module

2020-06-14 Thread Zhanghailiang
I have checked this patch in mail archive, it has no problem, It seems that my email setup has some problem. It didn't show the right newline In this patch. > -Original Message- > From: Like Xu [mailto:like...@linux.intel.com] > Sent: Monday, June 15, 2020 10:24 AM > To: Z

RE: [PATCH 1/2] migration/colo: fix typo in the COLO Framework module

2020-06-14 Thread Zhanghailiang
: qemu-devel@nongnu.org > Cc: Like Xu ; Zhanghailiang > > Subject: [PATCH 1/2] migration/colo: fix typo in the COLO Framework > module > > Cc: Hailiang Zhang > Signed-off-by: Like Xu > --- > docs/COLO-FT.txt | 8 > migration/colo.c | 2 +- > 2 files changed, 5

RE: [PATCH 3/3] migration/colo: Merge multi checkpoint request into one.

2020-06-03 Thread Zhanghailiang
> -Original Message- > From: Zhang, Chen [mailto:chen.zh...@intel.com] > Sent: Wednesday, June 3, 2020 5:11 PM > To: Zhanghailiang ; Dr . David Alan > Gilbert ; Juan Quintela ; > qemu-dev > Cc: Zhang Chen ; Jason Wang > > Subject: RE: [PATCH 3/3] migration/c

RE: [PATCH 3/3] migration/colo: Merge multi checkpoint request into one.

2020-06-02 Thread Zhanghailiang
> -Original Message- > From: Zhang Chen [mailto:chen.zh...@intel.com] > Sent: Friday, May 15, 2020 12:28 PM > To: Dr . David Alan Gilbert ; Juan Quintela > ; Zhanghailiang ; > qemu-dev > Cc: Zhang Chen ; Jason Wang > ; Zhang Chen > Subject: [PATCH 3/3]

RE: [PATCH 2/3] migration/colo: Update checkpoint time lately

2020-06-02 Thread Zhanghailiang
Reviewed-by: zhanghailiang Hmm, How much time it spends on preparing before COLO process ? > -Original Message- > From: Zhang Chen [mailto:chen.zh...@intel.com] > Sent: Friday, May 15, 2020 12:28 PM > To: Dr . David Alan Gilbert ; Juan Quintela > ; Zhanghailiang ; &

RE: [PATCH 1/3] migration/colo: Optimize COLO boot code path

2020-06-01 Thread Zhanghailiang
Reviewed-by: zhanghailiang > -Original Message- > From: Zhang Chen [mailto:chen.zh...@intel.com] > Sent: Friday, May 15, 2020 12:28 PM > To: Dr . David Alan Gilbert ; Juan Quintela > ; Zhanghailiang ; > qemu-dev > Cc: Zhang Chen ; Jason Wang > ; Zhang Che

RE: About migration/colo issue

2020-05-15 Thread Zhanghailiang
Hi, I can't reproduce this issue with the qemu upstream either, It works well. Did you use an old version ? Thanks, Hailiang > -Original Message- > From: Lukas Straub [mailto:lukasstra...@web.de] > Sent: Friday, May 15, 2020 3:12 PM > To: Zhang, Chen > Cc: Zhanghailia

RE: [PATCH 4/6] migration/colo.c: Relaunch failover even if there was an error

2020-05-15 Thread Zhanghailiang
Reviewed-by: zhanghailiang > -Original Message- > From: Lukas Straub [mailto:lukasstra...@web.de] > Sent: Monday, May 11, 2020 7:11 PM > To: qemu-devel > Cc: Zhanghailiang ; Juan Quintela > ; Dr. David Alan Gilbert > Subject: [PATCH 4/6] migration/colo.c: R

RE: About migration/colo issue

2020-05-14 Thread Zhanghailiang
Hi Zhang Chen, >From your tracing log, it seems to be hanged in colo_flush_ram_cache()? Does it come across a dead loop there ? I'll test it by using the new qemu. Thanks, Hailiang From: Zhang, Chen [mailto:chen.zh...@intel.com] Sent: Friday, May 15, 2020 11:16 AM To: Zhanghailiang ; Dr . Da

RE: [PATCH 6/6] migration/colo.c: Move colo_notify_compares_event to the right place

2020-05-14 Thread Zhanghailiang
Reviewed-by: zhanghailiang > -Original Message- > From: Lukas Straub [mailto:lukasstra...@web.de] > Sent: Monday, May 11, 2020 7:11 PM > To: qemu-devel > Cc: Zhanghailiang ; Juan Quintela > ; Dr. David Alan Gilbert > Subject: [PATCH 6/6] m

RE: [PATCH 6/6] migration/colo.c: Move colo_notify_compares_event to the right place

2020-05-14 Thread Zhanghailiang
> -Original Message- > From: Lukas Straub [mailto:lukasstra...@web.de] > Sent: Thursday, May 14, 2020 10:31 PM > To: Zhanghailiang > Cc: qemu-devel ; Zhang Chen > ; Juan Quintela ; Dr. David > Alan Gilbert > Subject: Re: [PATCH 6/6] migration/colo.c: Move >

答复: [PATCH 6/6] migration/colo.c: Move colo_notify_compares_event to the right place

2020-05-14 Thread Zhanghailiang
Cc: Zhang Chen > > If the secondary has to failover during checkpointing, it still is in the old > state > (i.e. different state than primary). Thus we can't expose the primary state > until after the checkpoint is sent. > Hmm, do you mean we should not flush the net packages to client

答复: [PATCH 5/6] migration/qemu-file.c: Don't ratelimit a shutdown fd

2020-05-14 Thread Zhanghailiang
> This causes the migration thread to hang if we failover during checkpoint. A > shutdown fd won't cause network traffic anyway. > I'm not quite sure if this modification can take side effect on normal migration process or not, There are several places calling it. Maybe Juan and Dave can help

答复: [PATCH 3/6] migration/colo.c: Flush ram cache only after receiving device state

2020-05-14 Thread Zhanghailiang
Reviewed-by: zhanghailiang > > If we suceed in receiving ram state, but fail receiving the device state, > there > will be a mismatch between the two. > > Fix this by flushing the ram cache only after the vmstate has been received. > > Signed-off-by: Lukas Straub &

答复: [PATCH 1/6] migration/colo.c: Use event instead of semaphore

2020-05-13 Thread Zhanghailiang
> If multiple packets miscompare in a short timeframe, the semaphore value > will be increased multiple times. This causes multiple checkpoints even if one > would be sufficient. > You right, good catch ;) Reviewed-by: zhanghailiang > Fix this by using a event instead

RE: [PATCH 11/11] migration/colo: Fix qmp_xen_colo_do_checkpoint() error handling

2020-04-20 Thread Zhanghailiang
Reviewed-by: zhanghailiang > -Original Message- > From: Markus Armbruster [mailto:arm...@redhat.com] > Sent: Monday, April 20, 2020 4:33 PM > To: qemu-devel@nongnu.org > Cc: Zhang Chen ; Zhanghailiang > > Subject: [PATCH 11/11] migration/colo: Fix qmp_xen_colo_do

答复: colo: qemu 4.2.0 vs. qemu 5.0.0-rc2 performance regression

2020-04-12 Thread Zhanghailiang
s ram, so it should be double amount. Thanks, Hailiang -邮件原件- 发件人: Lukas Straub [mailto:lukasstra...@web.de] 发送时间: 2020年4月12日 1:17 收件人: qemu-devel@nongnu.org 抄送: dgilb...@redhat.com; quint...@redhat.com; Zhanghailiang ; Zhang Chen 主题: colo: qemu 4.2.0 vs. qemu 5.0.0-rc2 performance

RE: [PATCH V2 4/8] COLO: Optimize memory back-up process

2020-02-24 Thread Zhanghailiang
Hi, > -Original Message- > From: Daniel Cho [mailto:daniel...@qnap.com] > Sent: Tuesday, February 25, 2020 10:53 AM > To: Zhanghailiang > Cc: qemu-devel@nongnu.org; quint...@redhat.com; Dr. David Alan Gilbert > > Subject: Re: [PATCH V2 4/8] COLO: Optimize memory ba

RE: [PATCH V2 7/8] COLO: Migrate dirty pages during the gap of checkpointing

2020-02-24 Thread Zhanghailiang
> -Original Message- > From: Eric Blake [mailto:ebl...@redhat.com] > Sent: Monday, February 24, 2020 11:19 PM > To: Zhanghailiang ; > qemu-devel@nongnu.org > Cc: daniel...@qnap.com; dgilb...@redhat.com; quint...@redhat.com > Subject: Re: [PATCH V2 7/8] COLO: Migra

RE: The issues about architecture of the COLO checkpoint

2020-02-23 Thread Zhanghailiang
Hi Daniel, I have fixed this problem, and send V2, please refer to that series. Thanks, From: Daniel Cho [mailto:daniel...@qnap.com] Sent: Thursday, February 20, 2020 11:52 AM To: Zhang, Chen Cc: Dr. David Alan Gilbert ; Zhanghailiang ; qemu-devel@nongnu.org; Jason Wang Subject: Re

[PATCH V2 7/8] COLO: Migrate dirty pages during the gap of checkpointing

2020-02-23 Thread zhanghailiang
We can migrate some dirty pages during the gap of checkpointing, by this way, we can reduce the amount of ram migrated during checkpointing. Signed-off-by: zhanghailiang --- migration/colo.c | 73 -- migration/migration.h | 1 + migration/trace

[PATCH V2 8/8] migration/colo: Only flush ram cache while do checkpoint

2020-02-23 Thread zhanghailiang
After add migrating ram backgroud, we will call ram_load for this process, but we should not flush ram cache during this process. Move the flush action to the right place. Signed-off-by: zhanghailiang --- migration/colo.c | 1 + migration/ram.c | 5 + migration/ram.h | 1 + 3 files

[PATCH V2 4/8] COLO: Optimize memory back-up process

2020-02-23 Thread zhanghailiang
, though it affects the speed of the migration, but it obviously reduce the downtime of back-up all SVM'S memory in COLO preparing stage. Signed-off-by: zhanghailiang --- migration/colo.c | 3 +++ migration/ram.c | 68 +++- migration/ram.h | 1 + 3 files

[PATCH V2 3/8] savevm: Don't call colo_init_ram_cache twice

2020-02-23 Thread zhanghailiang
This helper has been called twice which is wrong. Left the one where called while get COLO enable message from source side. Signed-off-by: zhanghailiang --- migration/migration.c | 5 - 1 file changed, 5 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index

[PATCH V2 2/8] migration/colo: wrap incoming checkpoint process into new helper

2020-02-23 Thread zhanghailiang
Split checkpoint incoming process into a helper. Signed-off-by: zhanghailiang Reviewed-by: Dr. David Alan Gilbert --- migration/colo.c | 260 --- 1 file changed, 133 insertions(+), 127 deletions(-) diff --git a/migration/colo.c b/migration/colo.c

[PATCH V2 0/8] Optimize VM's downtime while do checkpoint in COLO

2020-02-23 Thread zhanghailiang
This series try to tries to reduce VM's pause time while do checkpoint in COLO state. Here, we use two methods to reduce the downtime during COLO stage: The first one is to reduce the time of backup PVM's memory into cache, Instread of doing this once time backup all PVM's memory when VM is

[PATCH V2 1/8] migration: fix COLO broken caused by a previous commit

2020-02-23 Thread zhanghailiang
ess as an exception, Maybe we need a better way to fix it. Cc: Juan Quintela Signed-off-by: zhanghailiang --- migration/migration.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index 8fb68795dc..06d1ff9d56 100644 --- a/migration/migratio

[PATCH V2 6/8] migration: recognize COLO as part of activating process

2020-02-23 Thread zhanghailiang
We will migrate parts of dirty pages backgroud lively during the gap time of two checkpoints, without this modification, it will not work because ram_save_iterate() will check it before send RAM_SAVE_FLAG_EOS at the end of it. Signed-off-by: zhanghailiang --- migration/migration.c | 1 + 1 file

[PATCH V2 5/8] ram/colo: only record bitmap of dirty pages in COLO stage

2020-02-23 Thread zhanghailiang
It is only need to record bitmap of dirty pages while goes into COLO stage. Signed-off-by: zhanghailiang --- migration/ram.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index ebf9e6ba51..1b3f423351 100644 --- a/migration/ram.c

RE: [PATCH 3/3] COLO: Optimize memory back-up process

2020-02-23 Thread Zhanghailiang
Hi Dave, > -Original Message- > From: Dr. David Alan Gilbert [mailto:dgilb...@redhat.com] > Sent: Friday, February 21, 2020 2:25 AM > To: Zhanghailiang > Cc: qemu-devel@nongnu.org; quint...@redhat.com; chen.zh...@intel.com; > daniel...@qnap.com > Subject: Re: [PATC

RE: [PATCH 2/3] COLO: Migrate dirty pages during the gap of checkpointing

2020-02-23 Thread Zhanghailiang
> -Original Message- > From: Dr. David Alan Gilbert [mailto:dgilb...@redhat.com] > Sent: Thursday, February 20, 2020 2:51 AM > To: Zhanghailiang > Cc: qemu-devel@nongnu.org; quint...@redhat.com; chen.zh...@intel.com; > daniel...@qnap.com > Subject: Re: [PATCH 2/3

RE: The issues about architecture of the COLO checkpoint

2020-02-16 Thread Zhanghailiang
15, 2020 11:36 AM To: Dr. David Alan Gilbert Cc: Zhang, Chen ; Zhanghailiang ; qemu-devel@nongnu.org; Jason Wang Subject: Re: The issues about architecture of the COLO checkpoint Hi Dave, Yes, I agree with you, it does need a timeout. Hi Hailiang, We base on qemu-4.1.0 for using COLO feature

RE: The issues about architecture of the COLO checkpoint

2020-02-12 Thread Zhanghailiang
and SVM’s to compare before send this packets to client. It depends on this to decide whether or not PVM and SVM are in same state. Thanks, hailiang From: Daniel Cho [mailto:daniel...@qnap.com] Sent: Wednesday, February 12, 2020 4:37 PM To: Zhang, Chen Cc: Zhanghailiang ; Dr. David Alan Gilbert ; qemu

RE: The issues about architecture of the COLO checkpoint

2020-02-12 Thread Zhanghailiang
Hi Zhang Chen, > -Original Message- > From: Zhang, Chen [mailto:chen.zh...@intel.com] > Sent: Wednesday, February 12, 2020 1:45 PM > To: Zhanghailiang ; Dr. David Alan > Gilbert ; Daniel Cho > Cc: qemu-devel@nongnu.org > Subject: RE: The issues about architecture o

RE: The issues about architecture of the COLO checkpoint

2020-02-11 Thread Zhanghailiang
Hi, Thank you Dave, I'll reply here directly. -Original Message- From: Dr. David Alan Gilbert [mailto:dgilb...@redhat.com] Sent: Wednesday, February 12, 2020 1:48 AM To: Daniel Cho ; chen.zh...@intel.com; Zhanghailiang Cc: qemu-devel@nongnu.org Subject: Re: The issues about

[Qemu-devel] [BUG] Windows 7 got stuck easily while run PCMark10 application

2017-12-01 Thread Zhanghailiang
Hi, We hit a bug in our test while run PCMark 10 in a windows 7 VM, The VM got stuck and the wallclock was hang after several minutes running PCMark 10 in it. It is quite easily to reproduce the bug with the upstream KVM and Qemu. We found that KVM can not inject any RTC irq to VM after it was

[Qemu-devel] [PATCH RESEND v2 17/18] filter-rewriter: handle checkpoint and failover event

2017-04-22 Thread zhanghailiang
<jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- net/filter-rewriter.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/net/filter-rewriter.c b/net/filter-rewriter.c index c9a6d43..0a90b11 100644 ---

[Qemu-devel] [PATCH RESEND v2 16/18] filter: Add handle_event method for NetFilterClass

2017-04-22 Thread zhanghailiang
Filter needs to process the event of checkpoint/failover or other event passed by COLO frame. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- include/net/filter.h | 5 + net/filter.c | 16 +++

[Qemu-devel] [PATCH RESEND v2 09/18] COLO: Flush memory data from ram cache

2017-04-22 Thread zhanghailiang
ed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- include/migration/migration.h | 1 + migration/ram.c | 40 +

[Qemu-devel] [PATCH RESEND v2 15/18] COLO: flush host dirty ram from cache

2017-04-22 Thread zhanghailiang
Don't need to flush all VM's ram from cache, only flush the dirty pages since last checkpoint Cc: Juan Quintela <quint...@redhat.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Signed-off-by: Zhang Chen <zhangchen.f...@cn.fujitsu.com> Signed-off-by: zhanghailiang

[Qemu-devel] [PATCH RESEND v2 10/18] qmp event: Add COLO_EXIT event to notify users while exited COLO

2017-04-22 Thread zhanghailiang
that we exited COLO mode. Cc: Markus Armbruster <arm...@redhat.com> Cc: Michael Roth <mdr...@linux.vnet.ibm.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-by: Eric Blake <ebl...@redhat.com&

[Qemu-devel] [PATCH RESEND v2 06/18] COLO: Add block replication into colo process

2017-04-22 Thread zhanghailiang
Make sure master start block replication after slave's block replication started. Besides, we need to activate VM's blocks before goes into COLO state. Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Cc: Stefan Haj

[Qemu-devel] [PATCH RESEND v2 02/18] colo-compare: implement the process of checkpoint

2017-04-22 Thread zhanghailiang
While do checkpoint, we need to flush all the unhandled packets, By using the filter notifier mechanism, we can easily to notify every compare object to do this process, which runs inside of compare threads as a coroutine. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: zhangha

[Qemu-devel] [PATCH RESEND v2 07/18] COLO: Load dirty pages into SVM's RAM cache firstly

2017-04-22 Thread zhanghailiang
Gilbert <dgilb...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- v2: - Move colo_init_ram_cache() and colo_release_ram_cache() out of incoming thread since both of them need the globa

[Qemu-devel] [PATCH RESEND v2 18/18] COLO: notify net filters about checkpoint/failover event

2017-04-22 Thread zhanghailiang
Notify all net filters about the checkpoint and failover event. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- migration/colo.c | 13 + 1 file changed, 13 insertions(+) diff --git a/migration/colo.c b/migration/

[Qemu-devel] [PATCH RESEND v2 08/18] ram/COLO: Record the dirty pages that SVM received

2017-04-22 Thread zhanghailiang
the dirty pages caused by PVM and SVM, we only flush those dirty pages from RAM cache while do checkpoint. Cc: Juan Quintela <quint...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- mi

[Qemu-devel] [PATCH RESEND v2 00/18] COLO: integrate colo frame with block replication and net compare

2017-04-22 Thread zhanghailiang
unhong <yunhong.ji...@intel.com> Cc: Xu Quan <xuqu...@huawei.com> Cc: Jason Wang <jasow...@redhat.com> zhanghailiang (18): net/colo: Add notifier/callback related helpers for filter colo-compare: implement the process of checkpoint colo-compare: use notifier to notify packets

[Qemu-devel] [PATCH RESEND v2 04/18] COLO: integrate colo compare with colo frame

2017-04-22 Thread zhanghailiang
Wang <jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- migration/colo.c | 42 -- migration/migration.c | 2 +- 2 files changed, 41 insertio

[Qemu-devel] [PATCH RESEND v2 03/18] colo-compare: use notifier to notify packets comparing result

2017-04-22 Thread zhanghailiang
It's a good idea to use notifier to notify COLO frame of inconsistent packets comparing. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: Zhang Chen <zhangchen.f...@cn.fujitsu.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- net/c

[Qemu-devel] [PATCH v2 03/18] colo-compare: use notifier to notify packets comparing result

2017-04-22 Thread zhanghailiang
It's a good idea to use notifier to notify COLO frame of inconsistent packets comparing. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: Zhang Chen <zhangchen.f...@cn.fujitsu.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- net/c

[Qemu-devel] [PATCH v2 05/18] COLO: Handle shutdown command for VM in COLO state

2017-04-22 Thread zhanghailiang
onz...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- include/migration/colo.h | 1 + include/sysemu/sysemu.h | 3 +++ migra

[Qemu-devel] [PATCH RESEND v2 14/18] COLO: Split qemu_savevm_state_begin out of checkpoint process

2017-04-22 Thread zhanghailiang
these data transferring in the subsequent checkpoint. Cc: Juan Quintela <quint...@redhat.com> Sgned-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --

[Qemu-devel] [PATCH RESEND v2 12/18] savevm: split the process of different stages for loadvm/savevm

2017-04-22 Thread zhanghailiang
() and qemu_save_device_state() public, and simplify the codes of qemu_save_device_state() by calling the wrapper qemu_savevm_state_header(). Cc: Juan Quintela <quint...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...

[Qemu-devel] [PATCH v2 10/18] qmp event: Add COLO_EXIT event to notify users while exited COLO

2017-04-22 Thread zhanghailiang
that we exited COLO mode. Cc: Markus Armbruster <arm...@redhat.com> Cc: Michael Roth <mdr...@linux.vnet.ibm.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-by: Eric Blake <ebl...@redhat.com&

[Qemu-devel] [PATCH v2 18/18] COLO: notify net filters about checkpoint/failover event

2017-04-22 Thread zhanghailiang
Notify all net filters about the checkpoint and failover event. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- migration/colo.c | 13 + 1 file changed, 13 insertions(+) diff --git a/migration/colo.c b/migration/

[Qemu-devel] [PATCH RESEND v2 11/18] savevm: split save/find loadvm_handlers entry into two helper functions

2017-04-22 Thread zhanghailiang
Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- migration/savevm.c | 55 +++--- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/migration/savevm.c b/

[Qemu-devel] [PATCH RESEND v2 13/18] COLO: Separate the process of saving/loading ram and device state

2017-04-22 Thread zhanghailiang
was used during checkpoint. Besides, we move the colo_flush_ram_cache to the proper position after the above change. Cc: Juan Quintela <quint...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-

[Qemu-devel] [PATCH v2 16/18] filter: Add handle_event method for NetFilterClass

2017-04-22 Thread zhanghailiang
Filter needs to process the event of checkpoint/failover or other event passed by COLO frame. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- include/net/filter.h | 5 + net/filter.c | 16 +++

[Qemu-devel] [PATCH v2 07/18] COLO: Load dirty pages into SVM's RAM cache firstly

2017-04-22 Thread zhanghailiang
Gilbert <dgilb...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- v2: - Move colo_init_ram_cache() and colo_release_ram_cache() out of incoming thread since both of them need the globa

[Qemu-devel] [PATCH RESEND v2 05/18] COLO: Handle shutdown command for VM in COLO state

2017-04-22 Thread zhanghailiang
onz...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- include/migration/colo.h | 1 + include/sysemu/sysemu.h | 3 +++ migra

[Qemu-devel] [PATCH RESEND v2 01/18] net/colo: Add notifier/callback related helpers for filter

2017-04-22 Thread zhanghailiang
We will use this notifier to help COLO to notify filter object to do something, like do checkpoint, or process failover event. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Zhang Chen <zhangchen.f...@cn.fujitsu.

[Qemu-devel] [PATCH v2 01/18] net/colo: Add notifier/callback related helpers for filter

2017-04-22 Thread zhanghailiang
We will use this notifier to help COLO to notify filter object to do something, like do checkpoint, or process failover event. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Zhang Chen <zhangchen.f...@cn.fujitsu.

[Qemu-devel] [PATCH v2 17/18] filter-rewriter: handle checkpoint and failover event

2017-04-22 Thread zhanghailiang
<jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- net/filter-rewriter.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/net/filter-rewriter.c b/net/filter-rewriter.c index c9a6d43..0a90b11 100644 ---

[Qemu-devel] [PATCH v2 02/18] colo-compare: implement the process of checkpoint

2017-04-22 Thread zhanghailiang
While do checkpoint, we need to flush all the unhandled packets, By using the filter notifier mechanism, we can easily to notify every compare object to do this process, which runs inside of compare threads as a coroutine. Cc: Jason Wang <jasow...@redhat.com> Signed-off-by: zhangha

[Qemu-devel] [PATCH v2 15/18] COLO: flush host dirty ram from cache

2017-04-22 Thread zhanghailiang
Don't need to flush all VM's ram from cache, only flush the dirty pages since last checkpoint Cc: Juan Quintela <quint...@redhat.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Signed-off-by: Zhang Chen <zhangchen.f...@cn.fujitsu.com> Signed-off-by: zhanghailiang

[Qemu-devel] [PATCH v2 13/18] COLO: Separate the process of saving/loading ram and device state

2017-04-22 Thread zhanghailiang
was used during checkpoint. Besides, we move the colo_flush_ram_cache to the proper position after the above change. Cc: Juan Quintela <quint...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-

[Qemu-devel] [PATCH v2 06/18] COLO: Add block replication into colo process

2017-04-22 Thread zhanghailiang
Make sure master start block replication after slave's block replication started. Besides, we need to activate VM's blocks before goes into COLO state. Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Cc: Stefan Haj

[Qemu-devel] [PATCH v2 14/18] COLO: Split qemu_savevm_state_begin out of checkpoint process

2017-04-22 Thread zhanghailiang
these data transferring in the subsequent checkpoint. Cc: Juan Quintela <quint...@redhat.com> Sgned-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --

[Qemu-devel] [PATCH v2 11/18] savevm: split save/find loadvm_handlers entry into two helper functions

2017-04-22 Thread zhanghailiang
Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- migration/savevm.c | 55 +++--- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/migration/savevm.c b/

[Qemu-devel] [PATCH v2 12/18] savevm: split the process of different stages for loadvm/savevm

2017-04-22 Thread zhanghailiang
() and qemu_save_device_state() public, and simplify the codes of qemu_save_device_state() by calling the wrapper qemu_savevm_state_header(). Cc: Juan Quintela <quint...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...

[Qemu-devel] [PATCH v2 09/18] COLO: Flush memory data from ram cache

2017-04-22 Thread zhanghailiang
ed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- include/migration/migration.h | 1 + migration/ram.c | 40 +

[Qemu-devel] [PATCH v2 00/18] COLO: integrate colo frame with block replication and net compare

2017-04-22 Thread zhanghailiang
gt; Cc: Jason Wang <jasow...@redhat.com> zhanghailiang (18): net/colo: Add notifier/callback related helpers for filter colo-compare: implement the process of checkpoint colo-compare: use notifier to notify packets comparing result COLO: integrate colo compare with colo frame COLO:

[Qemu-devel] [PATCH v2 08/18] ram/COLO: Record the dirty pages that SVM received

2017-04-22 Thread zhanghailiang
the dirty pages caused by PVM and SVM, we only flush those dirty pages from RAM cache while do checkpoint. Cc: Juan Quintela <quint...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- mi

[Qemu-devel] [PATCH v2 04/18] COLO: integrate colo compare with colo frame

2017-04-22 Thread zhanghailiang
Wang <jasow...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> --- migration/colo.c | 42 -- migration/migration.c | 2 +- 2 files changed, 41 insertio

[Qemu-devel] [PATCH 0/3] colo-compare: fix three bugs

2017-04-20 Thread zhanghailiang
Hi, This series fixes three bugs found in our test, please review. Thanks. zhanghailiang (3): colo-compare: serialize compare thread's initialization with main thread colo-compare: Check main_loop value before call g_main_loop_quit colo-compare: fix a memory leak net/colo-compare.c

[Qemu-devel] [PATCH 3/3] colo-compare: fix a memory leak

2017-04-20 Thread zhanghailiang
(). Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- net/colo-compare.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/colo-compare.c b/net/colo-compare.c index d6a5e4c..97bf0e5 100644 --- a/net/colo-compare.c +++ b/net/colo-compare.c @@ -562,7 +562,9 @@ stati

[Qemu-devel] [PATCH 1/3] colo-compare: serialize compare thread's initialization with main thread

2017-04-20 Thread zhanghailiang
->src == ((void *)0)' failed." Fix it by serializing compare thread's initialization with main thread. Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- net/colo-compare.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/net/colo-compare.c b/net/colo-comp

[Qemu-devel] [PATCH 2/3] colo-compare: Check main_loop value before call g_main_loop_quit

2017-04-20 Thread zhanghailiang
!= NULL' failed". We need to check if main_loop is NULL or not before call g_main_loop_quit(). Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- net/colo-compare.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/colo-compare.c b/net/colo-comp

[Qemu-devel] [PATCH v3] char: Fix removing wrong GSource that be found by fd_in_tag

2017-04-18 Thread zhanghailiang
the related codes in commit b43decb015a6efeb9e3cdbdb80f6547ad7248a4c, but it didn't fix the bug completely, because we still have some codes didn't pass *right* context parameter for remove_fd_in_watch(). Let's fix it by record the GSource directly instead of fd_in_tag. Signed-off-by: zhanghailiang

[Qemu-devel] [PATCH v2] char: Fix removing wrong GSource that be found by fd_in_tag

2017-04-17 Thread zhanghailiang
the related codes in commit b43dec, but it didn't fix the bug completely, because we still have some codes didn't pass *right* context parameter for remove_fd_in_watch(). Let's fix it by record the GSource directly instead of fd_in_tag. Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com>

[Qemu-devel] [PATCH] char: Fix removing wrong GSource that be found by fd_in_tag

2017-04-13 Thread zhanghailiang
the related codes in commit b43dec, but it didn't fix the bug completely, because we still have some codes didn't pass *right* context parameter for remove_fd_in_watch(). Let's fix it by record the GSource directly instead of fd_in_tag. Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.

[Qemu-devel] 答复: [PATCH 0/5] mc146818rtc: fix Windows VM clock faster

2017-04-13 Thread Zhanghailiang
Hi, -邮件原件- 发件人: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] 代表 Xiao Guangrong 发送时间: 2017年4月13日 16:53 收件人: Paolo Bonzini; m...@redhat.com; mtosa...@redhat.com 抄送: qemu-devel@nongnu.org; k...@vger.kernel.org; yunfang...@tencent.com; Xiao Guangrong 主题: Re: [PATCH 0/5]

[Qemu-devel] [PATCH v4 0/6] COLO block replication supports shared disk case

2017-04-12 Thread zhanghailiang
atch 2 (Stefan) - Call bdrv_invalidate_cache() while do checkpoint for shared disk in patch 5 v3: - Fix some comments from Stefan and Eric v2: - Drop the patch which add a blk_root() helper - Fix some comments from Changlong zhanghailiang (6): docs/block-replication: Add description for share

[Qemu-devel] [PATCH v4 3/6] replication: Split out backup_do_checkpoint() from secondary_do_checkpoint()

2017-04-12 Thread zhanghailiang
. Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com> Reviewed-by: Changlong Xie <xiecl.f...@cn.fujitsu.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- block/replication.c | 36 +++- 1 file changed, 19 insertions(+), 17 deleti

[Qemu-devel] [PATCH v4 4/6] replication: fix code logic with the new shared_disk option

2017-04-12 Thread zhanghailiang
Some code logic only be needed in non-shared disk, here we adjust these codes to prepare for shared disk scenario. Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- block/replic

[Qemu-devel] [PATCH v4 1/6] docs/block-replication: Add description for shared-disk case

2017-04-12 Thread zhanghailiang
Introuduce the scenario of shared-disk block replication and how to use it. Reviewed-by: Changlong Xie <xiecl.f...@cn.fujitsu.com> Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Wen Congyang <

[Qemu-devel] [PATCH v4 6/6] nbd/replication: implement .bdrv_get_info() for nbd and replication driver

2017-04-12 Thread zhanghailiang
m> Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Wen Congyang <we...@cn.fujitsu.com> --- block/nbd.c | 12 block/replication.c | 6 ++ 2 files changed, 18 insertions(+) diff --git a/block/nbd.c b/block/nbd.c index 814ab26d..fceb

[Qemu-devel] [PATCH v4 5/6] replication: Implement block replication for shared disk case

2017-04-12 Thread zhanghailiang
active disk and it will overwrite the existing sector content in the buffer. Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Wen Congyang <we...@cn.fujitsu.com> Signed-off-by: Zhang Chen <zhangchen.f...@cn.fujitsu.com> --- v4: - Call bdrv_invalida

[Qemu-devel] [PATCH v4 2/6] replication: add shared-disk and shared-disk-id options

2017-04-12 Thread zhanghailiang
We use these two options to identify which disk is shared Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> Signed-off-by: Wen Congyang <we...@cn.fujitsu.com> Signed-off-by: Zhang Chen <zhangchen.f...@cn.fujitsu.com> --- v4: - Add proper comment for primary_disk (

[Qemu-devel] [PATCH] virtio-serial-bus: Delete timer from list before free it

2017-03-05 Thread zhanghailiang
Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> --- hw/char/virtio-serial-bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index d544cd9..d797a67 100644 --- a/hw/char/virtio-serial-bus.c +++ b/hw/char/virtio-

[Qemu-devel] [PATCH v3 1/2] net/colo: fix memory double free error

2017-02-27 Thread zhanghailiang
The 'primary_list' and 'secondary_list' members of struct Connection is not allocated through dynamically g_queue_new(), but we free it by using g_queue_free(), which will lead to a double-free bug. Reviewed-by: Zhang Chen <zhangchen.f...@cn.fujitsu.com> Signed-off-by: zhangha

  1   2   3   4   5   6   7   8   9   10   >