[Qemu-devel] about qemu-img info on block dev

2017-11-06 Thread wang.guang55
hello if we create a qcow2 file on a block dev. we can,t get the right disk size by qemu-img info。 [root@host-120-79 qemu]# ./qemu-img create -f qcow2 /dev/zs/lvol0 1G Formatting '/dev/zs/lvol0', fmt=qcow2 size=1073741824 cluster_size=65536 lazy_refcounts=off refcount_bits=16

[Qemu-devel] 答复: [PATCH v2 05/18] COLO: Handle shutdown command for VMin COLO state

2017-05-03 Thread wang.guang55
hi The patch may cause qemu_system_reset_request call qemu_notify_event() twice. old: void qemu_system_reset_request(void) { if (no_reboot) { shutdown_requested = 1 } else { reset_requested = 1 } cpu_stop_current() qemu_notify_event() } new:

[Qemu-devel] 答复: Re: 答复: Re: 答复: Re: 答复: Re: [BUG]COLO failover hang

2017-03-22 Thread wang.guang55
hi: yes.it is better. And should we delete #ifdef WIN32 QIO_CHANNEL(cioc)->event = CreateEvent(NULL, FALSE, FALSE, NULL) #endif in qio_channel_socket_accept? qio_channel_socket_new already have it. 原始邮件 发件人: <zhang.zhanghaili...@huawei.com> 收件人:王广10165992 抄送人:

[Qemu-devel] 答复: Re: 答复: Re: 答复: Re: [BUG]COLO failover hang

2017-03-21 Thread wang.guang55
diff --git a/migration/socket.c b/migration/socket.c index 13966f1..d65a0ea 100644 --- a/migration/socket.c +++ b/migration/socket.c @@ -147,8 +147,9 @@ static gboolean socket_accept_incoming_migration(QIOChannel *ioc, } trace_migration_socket_incoming_accepted()

[Qemu-devel] 答复: Re: 答复: Re: 答复: Re: [BUG]COLO failover hang

2017-03-21 Thread wang.guang55
amost like wiki,but panic in Primary Node. setp: 1 Primary Node. x86_64-softmmu/qemu-system-x86_64 -enable-kvm -boot c -m 2048 -smp 2 -qmp stdio -vnc :7 -name primary -cpu qemu64,+kvmclock -device piix3-usb-uhci -usb -usbdevice tablet\ -drive

[Qemu-devel] 答复: Re: 答复: Re: [BUG]COLO failover hang

2017-03-21 Thread wang.guang55
Thank you。 I have test aready。 When the Primary Node panic,the Secondary Node qemu hang at the same place。 Incorrding http://wiki.qemu-project.org/Features/COLO ,kill Primary Node qemu will not produce the problem,but Primary Node panic can。 I think due to the feature of channel does not

[Qemu-devel] 答复: Re: [BUG]COLO failover hang

2017-03-21 Thread wang.guang55
hi. I test the git qemu master have the same problem. (gdb) bt #0 qio_channel_socket_readv (ioc=0x7f65911b4e50, iov=0x7f64ef3fd880, niov=1, fds=0x0, nfds=0x0, errp=0x0) at io/channel-socket.c:461 #1 0x7f658e4aa0c2 in qio_channel_read (ioc=ioc@entry=0x7f65911b4e50,

[Qemu-devel]   [PATCHV2] COLO: COLO-FT.txt err

2017-03-17 Thread wang.guang55
This is an error in COLO-FT.txt. secondeary-disk0 should be secondary-disk0. Signed-off-by: Guang Wang<wang.guan...@zte.com.cn> diff --git a/docs/COLO-FT.txt b/docs/COLO-FT.txt index e289be2..754efda 100644 --- a/docs/COLO-FT.txt +++ b/docs/COLO-FT.txt @@ -139,7 +139,7 @@ Secondary:

[Qemu-devel] [PATCH] COLO: COLO-FT.txt err

2017-03-17 Thread wang.guang55
This is an error in COLO-FT.txt. secondeary-disk0 should be secondary-disk0. Signed-off-by: Guang Wang<wang.guan...@zte.com.cn> diff --git a/docs/COLO-FT.txt b/docs/COLO-FT.txt index e289be2..754efda 100644 --- a/docs/COLO-FT.txt +++ b/docs/COLO-FT.txt @@ -139,7 +139,7 @@ Secondary: {

[Qemu-devel] 答复: Re: COLO :ailover hang

2017-03-16 Thread wang.guang55
hi. I test the git qemu master have the same problem. (gdb) bt #0 qio_channel_socket_readv (ioc=0x7f65911b4e50, iov=0x7f64ef3fd880, niov=1, fds=0x0, nfds=0x0, errp=0x0) at io/channel-socket.c:461 #1 0x7f658e4aa0c2 in qio_channel_read (ioc=ioc@entry=0x7f65911b4e50,

[Qemu-devel] colo doc problem

2017-03-16 Thread wang.guang55
hi http://git.qemu-project.org/?p=qemu.gita=blobf=docs/COLO-FT.txth=e289be2f419578645475b36861e4303ff624cb0fhb=HEAD docs/COLO-FT 138 {'execute':'qmp_capabilities'} 139 { 'execute': 'nbd-server-start', 140 'arguments': {'addr': {'type': 'inet', 'data': {'host': 'xx.xx.xx.xx',