Only do checkpoint, when the PVM's and SVM's output net packets are
inconsistent,
We also limit the min time between two continuous checkpoint action, to
give VM a change to run.
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 2 ++
migrat
ke
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 23 +++
include/net/net.h | 2 ++
net/tap.c | 26 +++---
qapi-schema.json | 8 +++-
qemu-options.hx| 7 +
Implement colo nic device interface configure()
add a script to configure nic devices:
${QEMU_SCRIPT_DIR}/colo-proxy-script.sh
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/tap.h| 17
net/colo-nic.c
.
Signed-off-by: zhanghailiang
---
include/net/colo-nic.h | 2 ++
net/colo-nic.c | 52 ++-
net/tap.c| 4 +++
scripts/colo-proxy-script.sh | 65
4 files changed, 116 insertions(+), 7
For Secondary VM, we forbid it shutdown directly when in COLO mode,
FOR Primary VM's shutdown, we should do some work to ensure the consistent
action
between PVM and SVM.
Cc: Paolo Bonzini
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/sysemu/sysemu.h | 3 +++
migr
however the --enable-colo/disable-colo on the source/destination;
Signed-off-by: zhanghailiang
---
migration/colo-comm.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/migration/colo-comm.c b/migration/colo-comm.c
index 2b1d70c..4330bd8 100644
--- a/migration/colo-comm.c
+++ b/migration
When in colo mode, call colo nic init/destroy function.
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 3 +++
migration/colo.c | 14 ++
net/colo-nic.c | 69
xit.
So if users choose secondary VM to take over work, please make sure that
Primary VM is dead, or there will be 'split-brain' problem.
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/migration/colo.h | 4 ++
include/migration/failover.h | 1 +
migration/colo
We should not do failover work while the main thread is loading
VM's state, otherwise it will destroy the consistent of VM's memory and
device state.
Here we add a new failover status 'RELAUNCH' which means we should
relaunch the process of failover.
Signed-off-by: zhanghai
We also change the parameters of launch_script().
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/tap.h | 2 ++
net/tap.c | 31 ++-
2 files changed, 20 insertions(+), 13 deletions(-)
diff --git a
When go into COLO mode, we need to some init work for all VM's nics.
Here we use a list to record these nic, and for now we only support
the 'tap' nic backend.
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h
We can know if VM in destination should go into COLO mode by refer to
the info that been migrated from PVM.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
---
include/migration/colo.h | 2 ++
migration/Makefile.objs | 1 +
migration/colo-comm.c| 49
we will use this dirty bitmap together with VM's cache RAM dirty bitmap
to decide which page in cache should be flushed into VM's RAM.
Signed-off-by: zhanghailiang
---
migration/ram.c | 16
1 file changed, 16 insertions(+)
diff --git a/migration/ram.c b/migration/r
l necessary to notify users that we exit COLO mode.
Cc: Markus Armbruster
Cc: Michael Roth
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
docs/qmp/qmp-events.txt | 16
migration/colo.c| 11 ++-
qapi/event.json | 15 +++
3 files ch
d of PVM in the startup
process.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
Reviewed-by: Dr. David Alan Gilbert
---
include/migration/migration.h | 1 +
migration/colo.c | 50 ---
2 files changed, 48 ins
Add a migrate state: MIGRATION_STATUS_COLO, enter this migration state
after the first live migration successfully finished.
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
Signed-off-by: Gonglei
---
include/migration/colo.h | 3 +++
migration/colo.c | 58
COLO mode, and takeover,
if to Secondary, Secondary will do failover work and at last takeover server.
Cc: Luiz Capitulino
Cc: Eric Blake
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
Signed-off-by: Yang Hongyang
---
hmp-commands.hx | 15
set the value.
Signed-off-by: zhanghailiang
---
include/migration/failover.h | 10 ++
migration/colo-failover.c| 29 +
migration/colo.c | 3 +++
trace-events | 1 +
4 files changed, 43 insertions(+)
diff --git a/include
#x27;atomic_set' 'atomic_xchg'.
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
net/colo-nic.c | 42 ++
1 file changed, 42 insertions(+)
diff --git a/net/colo-nic.c b/net/colo-nic.c
index c8e7734..49380
m the file into
qsb, this is used to get VM state from socket into a buffer.
Signed-off-by: Yang Hongyang
Signed-off-by: zhanghailiang
Reviewed-by: Dr. David Alan Gilbert
---
include/migration/qemu-file.h | 3 ++-
migration/qemu-file-buf.c | 58 ++
_incoming_co' records the original migration incoming coroutine.
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
Signed-off-by: Yang Hongyang
---
include/migration/colo.h | 8
include/migration/migration.h | 7 +++
migration/colo-comm.c | 1
e).
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Li Zhijian
Signed-off-by: Gonglei
---
include/exec/cpu-all.h | 1 +
include/migration/colo.h | 3 ++
migration/colo.c | 32 ++---
migration/ram.
imize colo_flush_ram_cache()
- Add migration state for incoming side, we use the state to verify if migration
incoming side is in COLO state or not (Patch 5).
- Drop the patch 'COLO: Disable qdev hotplug when VM is in COLO mode', since it
is not correct.
zhanghailiang (34):
confi
Guest will enter this state when paused to save/restore VM state
under colo checkpoint.
Cc: Eric Blake
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
Signed-off-by: Gonglei
Reviewed-by: Dr. David Alan Gilbert
---
qapi-schema.json | 5 -
vl.c
hing all content of SVM's RAM cache into SVM's MEMORY,
we do this in a more efficient way:
Only flush any page that dirtied by PVM or SVM since last checkpoint.
In this way, we ensure SVM's memory same with PVM's.
Besides, we must ensure flush RAM cache before load device state.
ned-off-by: zhanghailiang
---
include/migration/migration.h | 3 +++
migration/migration.c | 38 +++---
2 files changed, 26 insertions(+), 15 deletions(-)
diff --git a/include/migration/migration.h b/include/migration/migration.h
index 5fd61a3..6fde8df 100644
---
ynchronization is required, a opposite direction
sync-point should be added.
3) Since sync-points are single direction, the remote side may
go forward a lot when this side just receives the sync-point.
Signed-off-by: Yang Hongyang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
ff-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
Signed-off-by: Li Zhijian
---
include/migration/migration.h | 7 +
migration/colo.c | 60 ---
migration/ram.c | 46 +
migr
configure --enable-colo/--disable-colo to switch COLO
support on/off.
COLO support is off by default.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
---
configure | 11 +++
1 file changed, 11 insertions(+)
diff --git a/configure b/configure
index
:00 zhanghailiang :
Agreed, besides, it is seemed that slirp is not supporting ipv6, we also
have to supplement it.
patch for ipv6 slirp support some times ago sended to qemu list, but i
don't know why in not accepted.
I think no one reviewed it but there was no objection against IPv6
su
=f0
Which is a little verbose for 'netdev' option.
We'd better come to an agreement on the command line style for net filter :)
Cc: Daniel P. Berrange
Thanks,
zhanghailiang
NOTE:
You can attach multiple plugins to the filter, dynamically add/remove
filter and filter-.
The netb
On 2015/7/20 23:01, Stefan Hajnoczi wrote:
On Mon, Jul 20, 2015 at 2:12 PM, Vasiliy Tolstov wrote:
2015-07-20 14:55 GMT+03:00 zhanghailiang :
Agreed, besides, it is seemed that slirp is not supporting ipv6, we also
have to supplement it.
patch for ipv6 slirp support some times ago sended
at slirp is not supporting ipv6, we also
have to supplement it.
Thanks,
zhanghailiang
On 2015/7/18 1:07, Dr. David Alan Gilbert wrote:
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote:
For older machine types, we skip the colo info section when do
migration, in this way, we can migrate successfully between older mainchine and
the new one.
We also skip this section if colo
secondary VM.
- Rename migration-colo.h to colo.h, migration-failover.h to failover.h
zhanghailiang (34):
configure: Add parameter for configure to enable/disable COLO support
migration: Introduce capability 'colo' to migration
COLO: migrate colo related info to slave
colo-comm/migr
When go into COLO mode, we need to some init work for all VM's nics.
Here we use a list to record these nic, and for now we only support
the 'tap' nic backend.
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h
tefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
configure | 22 +++-
net/colo-nic.c | 160 +
2 files changed, 180 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index a2
We should not do failover work while the main thread is loading
VM's state, otherwise it will destroy the consistent of VM's memory and
device state.
Here we add a new failover status 'RELAUNCH' which means we should
relaunch the process of failover.
Signed-off-by: zhanghai
#x27;atomic_set' 'atomic_xchg'.
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
net/colo-nic.c | 42 ++
1 file changed, 42 insertions(+)
diff --git a/net/colo-nic.c b/net/colo-nic.c
index c8e7734..49380
however the --enable-colo/disable-colo on the source/destination;
Signed-off-by: zhanghailiang
---
hw/i386/pc_piix.c | 1 +
hw/i386/pc_q35.c | 1 +
hw/ppc/spapr.c| 1 +
include/migration/migration.h | 1 +
migration/colo-comm.c | 13
Only do checkpoint, when the PVM's and SVM's output net packets are
inconsistent,
We also limit the min time between two continuous checkpoint action, to
give VM a change to run.
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 2 ++
migrat
ke
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 23 +++
include/net/net.h | 2 ++
net/tap.c | 26 +++---
qapi-schema.json | 8 +++-
qemu-options.hx| 7 +
Make sure master start block replication after slave's block replication
started.
Signed-off-by: zhanghailiang
Signed-off-by: Wen Congyang
Signed-off-by: Yang Hongyang
Signed-off-by: Li Zhijian
---
migration/colo.c | 71 +---
trace-e
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 2 ++
migration/colo.c | 21 ++---
net/colo-nic.c | 23 +++
3 files changed, 43 insertions(+), 3 deletions(-)
diff --git a/include/net/colo-nic.h b/include/net
l necessary to notify users that we exit COLO mode.
Cc: Markus Armbruster
Cc: Michael Roth
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
docs/qmp/qmp-events.txt | 16
migration/colo.c| 10 +-
qapi/event.json | 15 +++
3 files ch
.
Signed-off-by: zhanghailiang
---
include/net/colo-nic.h | 2 ++
net/colo-nic.c | 52 ++-
net/tap.c| 4 +++
scripts/colo-proxy-script.sh | 65
4 files changed, 116 insertions(+), 7
set the value.
Signed-off-by: zhanghailiang
---
include/migration/failover.h | 9 +
migration/colo-failover.c| 24
trace-events | 1 +
3 files changed, 34 insertions(+)
diff --git a/include/migration/failover.h b/include/migration/failover.h
Implement colo nic device interface configure()
add a script to configure nic devices:
${QEMU_SCRIPT_DIR}/colo-proxy-script.sh
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/tap.h| 17
net/colo-nic.c
xit.
So if users choose secondary VM to take over work, please make sure that
Primary VM is dead, or there will be 'split-brain' problem.
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
Signed-off-by: Lai Jiangshan
---
include/migration/colo.h | 4 ++
include/migrat
With this command, we can control the period of checkpoint, if
there is no comparison of net packets.
Cc: Luiz Capitulino
Cc: Eric Blake
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
hmp-commands.hx| 15 +++
hmp.c | 7
We can know if VM in destination should go into COLO mode by refer to
the info that been migrated from PVM.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Lai Jiangshan
Signed-off-by: Gonglei
---
include/migration/colo.h | 2 ++
migration/Makefile.objs | 1
configure --enable-colo/--disable-colo to switch COLO
support on/off.
COLO support is off by default.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
Signed-off-by: Lai Jiangshan
---
configure | 11 +++
1 file changed, 11 insertions(+)
diff --git a
When in colo mode, call colo nic init/destroy function.
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 3 +++
migration/colo.c | 15 +++
net/colo-nic.c | 69
we will use this dirty bitmap together with VM's cache RAM dirty bitmap
to decide which page in cache should be flushed into VM's RAM.
Signed-off-by: zhanghailiang
---
migration/ram.c | 16
1 file changed, 16 insertions(+)
diff --git a/migration/ram.c b/migration/r
For Secondary VM, we forbid it shutdown directly when in COLO mode,
FOR Primary VM's shutdown, we should do some work to ensure the consistent
action
between PVM and SVM.
Cc: Paolo Bonzini
Signed-off-by: zhanghailiang
Signed-off-by: Lai Jiangshan
Signed-off-by: Li Zhijian
---
include/s
d of PVM in the startup
process.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
Reviewed-by: Dr. David Alan Gilbert
---
migration/colo.c | 53 ++---
1 file changed, 50 insertions(+), 3 deletions(-)
diff --g
hing all content of SVM's RAM cache into SVM's MEMORY,
we do this in a more efficient way:
Only flush any page that dirtied by PVM or SVM since last checkpoint.
In this way, we ensure SVM's memory same with PVM's.
Besides, we must ensure flush RAM cache before load device state.
e).
Signed-off-by: zhanghailiang
Signed-off-by: Gonglei
Signed-off-by: Yang Hongyang
Signed-off-by: Lai Jiangshan
Signed-off-by: Li Zhijian
---
include/exec/cpu-all.h | 1 +
include/migration/colo.h | 3 ++
migration/colo.c | 31 +---
migration/ram.
m the file into
qsb, this is used to get VM state from socket into a buffer.
Signed-off-by: Yang Hongyang
Signed-off-by: zhanghailiang
Reviewed-by: Dr. David Alan Gilbert
---
include/migration/qemu-file.h | 3 ++-
migration/qemu-file-buf.c | 58 ++
stent).
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
---
migration/colo.c | 29 +
1 file changed, 21 insertions(+), 8 deletions(-)
diff --git a/migration/colo.c b/migration/colo.c
index 815f2ab..64862dc 100644
--- a/migration/colo.c
+++ b/migration/c
Guest will enter this state when paused to save/restore VM state
under colo checkpoint.
Cc: Eric Blake
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Gonglei
Signed-off-by: Lai Jiangshan
Reviewed-by: Dr. David Alan Gilbert
---
qapi-schema.json | 5 -
vl.c
COLO do not support qdev hotplug migration, disable it.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
---
migration/colo.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/migration/colo.c b/migration/colo.c
index 3dc7eee..f5bad95 100644
--- a/migration/colo.c
+++ b
ynchronization is required, a opposite direction
sync-point should be added.
3) Since sync-points are single direction, the remote side may
go forward a lot when this side just receives the sync-point.
Signed-off-by: Yang Hongyang
Signed-off-by: Lai Jiangshan
Signed-off-by: zhanghailia
Add a migrate state: MIGRATION_STATUS_COLO, enter this migration state
after the first live migration successfully finished.
Signed-off-by: zhanghailiang
Signed-off-by: Gonglei
Signed-off-by: Lai Jiangshan
---
include/migration/colo.h | 3 +++
include/migration/migration.h | 2
Switch from normal migration loadvm process into COLO checkpoint process if
COLO mode is enabled.
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
Signed-off-by: Lai Jiangshan
Signed-off-by: Yang Hongyang
---
include/migration/colo.h | 13 +
migration/colo-comm.c| 10
earn if colo is supported.
Cc: Juan Quintela
Cc: Amit Shah
Cc: Eric Blake
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
Signed-off-by: Lai Jiangshan
---
include/migration/colo.h | 20
include/migration
We also change the parameters of launch_script().
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/tap.h | 2 ++
net/tap.c | 31 ++-
2 files changed, 20 insertions(+), 13 deletions(-)
diff --git a
COLO mode, and takeover,
if to Secondary, Secondary will do failover work and at last takeover server.
Cc: Luiz Capitulino
Cc: Eric Blake
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
Signed-off-by: Lai Jiangshan
Signed-off-by: Yang Hongyang
---
hmp-c
ff-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
Signed-off-by: Lai Jiangshan
Signed-off-by: Li Zhijian
---
migration/colo.c | 61 +++---
migration/ram.c| 47 -
migration/savevm.c | 2
On 2015/7/8 19:06, Juan Quintela wrote:
zhanghailiang wrote:
Hi,
If testing migration with '-S' for qemu command line, (migrate
directly without executing 'cont' command),
qemu process in the destination will abort with the follow message:
ERROR: invalid runstate tr
{ RUN_STATE_INMIGRATE, RUN_STATE_PRELAUNCH },
{ RUN_STATE_INTERNAL_ERROR, RUN_STATE_PAUSED },
{ RUN_STATE_INTERNAL_ERROR, RUN_STATE_FINISH_MIGRATE },
Thanks,
zhanghailiang
On 2015/7/7 21:08, Juan Quintela wrote:
Next commit would allow to move from incoming migration to error happening on
On 2015/7/7 20:21, Igor Mammedov wrote:
On Tue, 7 Jul 2015 19:43:35 +0800
zhanghailiang wrote:
On 2015/7/7 19:23, Igor Mammedov wrote:
On Mon, 6 Jul 2015 17:59:10 +0800
zhanghailiang wrote:
On 2015/7/6 16:45, Paolo Bonzini wrote:
On 06/07/2015 09:54, zhanghailiang wrote:
From host
On 2015/7/7 19:23, Igor Mammedov wrote:
On Mon, 6 Jul 2015 17:59:10 +0800
zhanghailiang wrote:
On 2015/7/6 16:45, Paolo Bonzini wrote:
On 06/07/2015 09:54, zhanghailiang wrote:
From host, we found that QEMU vcpu1 thread and vcpu7 thread were not
consuming any cpu (Should be in idle
On 2015/7/6 16:45, Paolo Bonzini wrote:
On 06/07/2015 09:54, zhanghailiang wrote:
From host, we found that QEMU vcpu1 thread and vcpu7 thread were not
consuming any cpu (Should be in idle state),
All of VCPUs' stacks in host is like bellow:
[] kvm_vcpu_block+0x65/0xa0 [kvm]
[] __vcp
On 2015/7/6 16:29, Dr. David Alan Gilbert wrote:
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote:
On 2015/7/4 2:03, Dr. David Alan Gilbert wrote:
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote:
We can know if VM in destination should go into COLO mode by refer to
the info that
roduce this problem, we are not quite sure.
Is there any possible that the cupid emulation in kvm/qemu has some bug ?
Has anyone come across these problem before? Or any idea?
Thanks,
zhanghailiang
On 2015/7/4 2:03, Dr. David Alan Gilbert wrote:
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote:
We can know if VM in destination should go into COLO mode by refer to
the info that has been migrated from PVM.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Lai
On 2015/7/4 1:51, Dr. David Alan Gilbert wrote:
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote:
configure --enable-colo/--disable-colo to switch COLO
support on/off.
COLO support is off by default.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
s, we will look into them ...
Thanks,
zhanghailiang
It would be good to find a way to detect this failure reliably.
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote:
This is the 6th version of COLO, here is only COLO frame part, include: VM
checkpoint,
failover, proxy API, block repli
On 2015/6/26 14:46, Yang Hongyang wrote:
Hi Dave,
On 06/16/2015 06:26 PM, Dr. David Alan Gilbert (git) wrote:
From: "Dr. David Alan Gilbert"
[...]
+= Postcopy =
+'Postcopy' migration is a way to deal with migrations that refuse to converge;
+its plus side is that there is an upper bound on
On 2015/6/23 15:50, Markus Armbruster wrote:
zhanghailiang writes:
On 2015/6/19 16:11, Markus Armbruster wrote:
[...]
To avoid the ugliness, we could change the QAPI generator. Currently,
{ 'command': 'migrate-set-parameters',
'data': 'Mi
On 2015/6/19 16:11, Markus Armbruster wrote:
zhanghailiang writes:
Hi,
Is there any news about this discussion?
Is anyone working on it? ;)
Since the 'hard feature freeze' time is closer, we'd better to fix it in 2.4
before libvirt uses it.
I have sent a RFC patch "
With this command, we can control the period of checkpoint, if
there is no comparison of net packets.
Cc: Luiz Capitulino
Cc: Eric Blake
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
hmp-commands.hx| 15 +++
hmp.c | 7
For Secondary VM, we forbid it shutdown directly when in COLO mode,
FOR Primary VM's shutdown, we should do some work to ensure the consistent
action
between PVM and SVM.
Cc: Paolo Bonzini
Signed-off-by: zhanghailiang
Signed-off-by: Lai Jiangshan
Signed-off-by: Li Zhijian
---
include/s
When in colo mode, call colo nic init/destroy function.
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 4 +++
migration/colo.c | 15 +++
net/colo-nic.c | 71
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 2 ++
migration/colo.c | 21 ++---
net/colo-nic.c | 23 +++
3 files changed, 43 insertions(+), 3 deletions(-)
diff --git a/include/net/colo-nic.h b/include/net
ke
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 23 +++
include/net/net.h | 2 ++
net/tap.c | 27 ---
qapi-schema.json | 8 +++-
qemu-options.hx| 7 +
l necessary to notify users that we exit COLO mode.
Cc: Markus Armbruster
Cc: Michael Roth
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
docs/qmp/qmp-events.txt | 16
migration/colo.c| 12 ++--
qapi/event.json | 15 +++
3
We also change the parameters of launch_script().
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/tap.h | 2 ++
net/tap.c | 31 ++-
2 files changed, 20 insertions(+), 13 deletions(-)
diff --git a
Only do checkpoint, when the PVM's and SVM's output net packets are
inconsistent,
We also limit the min time between two continuous checkpoint action, to
give VM a change to run.
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 2 ++
migrat
COLO do not support qdev hotplug migration, disable it.
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
---
migration/colo.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/migration/colo.c b/migration/colo.c
index 0fcadcd..8d6d166 100644
--- a/migration/colo.c
+++ b
stent).
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
---
migration/colo.c | 29 +
1 file changed, 21 insertions(+), 8 deletions(-)
diff --git a/migration/colo.c b/migration/colo.c
index cf7a6e1..b11ed7b 100644
--- a/migration/colo.c
+++ b/migration/c
tefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
configure | 22 +++-
net/colo-nic.c | 160 +
2 files changed, 180 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 8b
Implement colo nic device interface configure()
add a script to configure nic devices:
${QEMU_SCRIPT_DIR}/colo-proxy-script.sh
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/tap.h| 17 +
net/colo-nic.c
When COLO mode, we do some init work for nic that will be used for COLO.
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
include/net/colo-nic.h | 3 +++
net/Makefile.objs | 1 +
net/colo-nic.c | 70
Make sure master start block replication after slave's block replication
started.
Signed-off-by: zhanghailiang
Signed-off-by: Wen Congyang
Signed-off-by: Yang Hongyang
Signed-off-by: Li Zhijian
---
migration/colo.c | 139 ++-
trace-e
m the file into
qsb, this is used to get VM state from socket into a buffer.
Signed-off-by: Yang Hongyang
Signed-off-by: zhanghailiang
Reviewed-by: Dr. David Alan Gilbert
---
include/migration/qemu-file.h | 3 ++-
migration/qemu-file-buf.c | 58 ++
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
Signed-off-by: Lai Jiangshan
---
migration/colo.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/migration/colo.c b/migration/colo.c
index a65f9ea..76bdd44 100644
--- a/migration/colo.c
+++ b/migration/colo.c
@@ -53,6
#x27;atomic_set' 'atomic_xchg'.
Cc: Stefan Hajnoczi
Cc: Jason Wang
Signed-off-by: zhanghailiang
Signed-off-by: Li Zhijian
---
net/colo-nic.c | 42 ++
trace-events | 1 +
2 files changed, 43 insertions(+)
diff --git a/net/colo-nic.c b/net/col
earn if colo is supported.
Cc: Juan Quintela
Cc: Amit Shah
Cc: Eric Blake
Cc: Markus Armbruster
Signed-off-by: zhanghailiang
Signed-off-by: Yang Hongyang
Signed-off-by: Gonglei
Signed-off-by: Lai Jiangshan
---
include/migration/migration-colo.h | 20
include/migration/migr
801 - 900 of 1429 matches
Mail list logo