[Qemu-devel] [PATCH] replication: Fix replication open fail

2017-10-24 Thread Wang Guang
replication_child_perm request write permissions for all child which will lead bdrv_check_perm fail. replication_child_perm() should request write permissions only if it is writable itself. Signed-off-by: Wang Guang Signed-off-by: Wang Yong --- block/replication.c | 11 +++ 1 file

[Qemu-devel] [PATCH] COLO: use condtion variable instead of semaphore in colo_checkpoint_notify

2017-07-24 Thread Wang guang
instead. Signed-off-by: Wang Guang Signed-off-by: Wang Yong --- migration/colo.c | 19 --- migration/migration.h | 7 +-- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/migration/colo.c b/migration/colo.c index a425543..617ef23 100644 --- a/migration/colo.c

[Qemu-devel] [PATCH] Set QIO_CHANNEL_FEATURE_SHUTDOWN in colo_process_incoming_thread

2017-04-07 Thread Wang guang
From: Guang Wang Due to Signed-off-by: Wang guang --- migration/socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/migration/socket.c b/migration/socket.c index 13966f1..193ed22 100644 --- a/migration/socket.c +++ b/migration/socket.c @@ -149,6 +149,7 @@ static gboolean

[Qemu-devel] [PATCH] vhost: skip RAM device memory sections

2017-04-07 Thread Wang guang
From: ZhiPeng Lu A RAM device represents a mapping to a physical device, such as to a PCI * MMIO BAR of an vfio-pci assigned device. Vhost listens to this region,and increases the region's reference count while passthrough?for?network adapters (Physical Function, PF or Virtual Function, VF). Aft

[Qemu-devel] [Resend PATCH] migration: Fix colo hang in socket_accept_incoming_migration

2017-03-22 Thread Wang Guang
QIO_CHANNEL_FEATURE_SHUTDOWN already. Signed-off-by: Wang Guang Signed-off-by: zhanghailiang --- io/channel-socket.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/io/channel-socket.c b/io/channel-socket.c index f546c68..8344da4 100644 --- a/io/channel-socket.c +++ b/io/channel-socket.c

[Qemu-devel] [PATCH] Fix colo hang in socket_accept_incoming_migration

2017-03-22 Thread Wang Guang
QIO_CHANNEL_FEATURE_SHUTDOWN already. Signed-off-by: Wang Guang Signed-off-by: zhanghailiang --- io/channel-socket.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/io/channel-socket.c b/io/channel-socket.c index f546c68..8344da4 100644 --- a/io/channel-socket.c +++ b/io/channel-socket.c