[Qemu-devel] [PATCH] block/mirror: Fix passing wrong argument to trace_mirror_yield

2016-11-28 Thread Yang Wei
mirror_yield is defined in block/trace-event, just like the following: mirror_yield(void *s, int64_t cnt, int buf_free_count, int in_flight) so we should exchange arguement 2 and 4 while invoking it. Signed-off-by: Yang Wei --- block/mirror.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[Qemu-devel] [PATCH] block/mirror: enable detect zeroes when driving mirror

2016-11-20 Thread Yang Wei
In order to preserve sparse disk image, detect_zeroes should also be enabled when bdrv_get_block_status_above() returns BDRV_BLOCK_DATA Signed-off-by: Yang Wei --- block/mirror.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/block/mirror.c b/block/mirror.c index b2c1fb8..8b20b7a

[Qemu-devel] [PATCH v2] scripts/gdb: Fix a python exception in mtree.py

2015-12-05 Thread Yang Wei
The following exception is threw: Python Exception name 'long' is not defined: Error occurred in Python command: name 'long' is not defined Python 2.4+, int()/long() have been unified, so replace long with int. Signed-off-by: Yang Wei --- scripts/qemugdb/mtree.py | 1

[Qemu-devel] [PATCH v2] scripts/gdb: Fix a python exception in mtree.py

2015-12-04 Thread Yang Wei
The following exception is threw: Python Exception name 'long' is not defined: Error occurred in Python command: name 'long' is not defined Python 2.4+, int()/long() have been unified, so replace long with int. Signed-off-by: Yang Wei --- scripts/qemugdb/mtree.py | 1

[Qemu-devel] scripts/gdb: Fix a python exception in mtree.py

2015-12-01 Thread Yang Wei
The following exception is threw: Python Exception name 'long' is not defined: Error occurred in Python command: name 'long' is not defined In python3, long is rename to int Signed-off-by: Yang Wei --- scripts/qemugdb/mtree.py | 17 - 1 file changed,