[Qemu-devel] [PATCH] savevm: create snapshot failed when id_str already exits

2015-01-11 Thread Yi Wang
>From b119164ba6715f53594facfc4d1022c198852e9d Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Mon, 12 Jan 2015 00:05:40 +0800 Subject: [PATCH] savevm: create snapshot failed when id_str already exits Create snapshot failed in this case: 1) vm has two or more qcow2 disks; 2) the first disk

Re: [Qemu-devel] [PATCH] savevm: create snapshot failed when id_str already exits

2015-03-05 Thread Yi Wang
; 2015-02-25 17:41 GMT+08:00 Stefan Hajnoczi : > On Mon, Jan 12, 2015 at 01:12:41AM +0800, Yi Wang wrote: >> From b119164ba6715f53594facfc4d1022c198852e9d Mon Sep 17 00:00:00 2001 >> From: Yi Wang >> Date: Mon, 12 Jan 2015 00:05:40 +0800 >> Subject: [PATCH] savevm: cre

Re: [Qemu-devel] [PATCH] savevm: create snapshot failed when id_str already exits

2015-03-06 Thread Yi Wang
ng snapshot on '%s'\n", 2015-03-06 1:40 GMT+08:00 Stefan Hajnoczi : > On Thu, Mar 05, 2015 at 09:05:52PM +0800, Yi Wang wrote: >> Thanks for your reply and Happy Lantern Festival! >> I am afraid you misunderstood what I mean, maybe I didn't express >>

Re: [Qemu-devel] [PATCH] savevm: create snapshot failed when id_str already exits

2015-03-09 Thread Yi Wang
ot list: ID TAG VM SIZE DATE VM CLOCK 1 s2 0 2015-03-05 10:29:21 00:00:00.000 # virsh snapshot-create-as win7 s1 error: operation failed: Failed to take snapshot: Error while creating snapshot on 'drive-virtio-disk1' 2015-03-06 23:50 GMT+08:00 Stefan Hajnoczi : > On Fri, Mar 06, 2015 at

Re: [Qemu-devel] [PATCH] savevm: create snapshot failed when id_str already exits

2015-03-12 Thread Yi Wang
How about this? >From 913cf2cd04167b7f6b892ac1ab405a617d886b97 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Thu, 12 Mar 2015 22:54:42 +0800 Subject: [PATCH] savevm: create snapshot failed when id_str already exists The command "virsh create" will fail in such condition: vm has t

[Qemu-devel] creating vm fails if maxMemory equals to memory, but hotplug same will success

2015-10-07 Thread Yi Wang
would be happy to work on a patch to fix this. Please tell me how this designs if this is not a bug. Thanks a lot. -- Best Regards Yi Wang

[PATCH] net/vhost-user: Save ack_features to net_clients during vhost_user_start

2022-04-12 Thread Yi Wang
From: Liu Xiangyu During vhost_user_start, if openvswitch.service restart, cause the final features not expected. Because qemu not save the ack_features promptly. Signed-off-by: Liu Xiangyu Signed-off-by: Yi Wang --- net/vhost-user.c | 4 1 file changed, 4 insertions(+) diff --git a

[PATCH] mirror: Avoid assertion failed in mirror_run

2021-12-07 Thread Yi Wang
uest and maybe pending I/O during this flush. Just likes in bdrv_close fuction, bdrv_drain(bs) followed by bdrv_flush(bs), we should add bdrv_drain fuction to handle pending I/O after mirror_flush. Signed-off-by: Long YunJian Signed-off-by: Yi Wang --- block/mirror.c | 2 ++ 1 file changed, 2 insert

[Qemu-devel] [PATCH v2] hmp: allow cpu index for "info lapic"

2017-07-18 Thread Yi Wang
Add [vcpu] index support for hmp command "info lapic", which is useful when debugging ipi and so on. Current behavior is not changed when the parameter isn't specified. Signed-off-by: Yi Wang Signed-off-by: Yun Liu --- hmp-commands-info.hx | 6 +++--- target/i386/monitor.c

[Qemu-devel] [PATCH 0/2] hmp: support querying lapic through

2017-07-21 Thread Yi Wang
This series add support querying local apic through apic-id for 'info lapic'. As cpu_index will not be used afterwards, so extend 'info registers' firstly to get apic-id through monitor commands. Yi Wang (2): hmp: dump ids including socket-id, core-id and so on for 'inf

[Qemu-devel] [PATCH 1/2] [PATCH] hmp: dump ids including socket-id, core-id and so on for 'info registers'

2017-07-21 Thread Yi Wang
This patch add output of CPUs' socket-id, core-id, thread-id and apic-id for 'info registers', which can be used for querying other hmp commands. Signed-off-by: Yi Wang Signed-off-by: Yun Liu --- include/qom/cpu.h| 12 monitor.c| 1 + qom/cpu.c

[Qemu-devel] [PATCH 2/2] [PATCH] hmp: allow apic-id for "info lapic"

2017-07-21 Thread Yi Wang
Add [apic-id] support for hmp command "info lapic", which is useful when debugging ipi and so on. Current behavior is not changed when the parameter isn't specified. Signed-off-by: Yi Wang Signed-off-by: Yun Liu --- hmp-commands-info.hx | 6 +++--- target/i386

[Qemu-devel] [PATCH v2 1/2] hmp: dump ids including socket-id, core-id and so on for 'info registers'

2017-07-25 Thread Yi Wang
This patch add output of CPUs' socket-id, core-id, thread-id and apic-id for 'info registers', which can be used for querying other hmp commands. Signed-off-by: Yi Wang Signed-off-by: Yun Liu --- target/i386/helper.c | 8 1 file changed, 8 insertions(+) diff --gi

[Qemu-devel] [PATCH v2 0/2] hmp: support querying lapic through apic-id for 'info lapic'

2017-07-25 Thread Yi Wang
arch_id() to obtain CPU [Eduardo] Yi Wang (2): hmp: dump ids including socket-id, core-id and so on for 'info registers' hmp: allow apic-id for "info lapic" hmp-commands-info.hx | 7 --- include/qom/cpu.h | 10 ++ qom/cpu.c | 11 ---

[Qemu-devel] [PATCH v2 2/2] hmp: allow apic-id for "info lapic"

2017-07-25 Thread Yi Wang
Add [apic-id] support for hmp command "info lapic", which is useful when debugging ipi and so on. Current behavior is not changed when the parameter isn't specified. Signed-off-by: Yi Wang Signed-off-by: Yun Liu Signed-off-by: Eduardo Habkost --- hmp-commands-info.hx | 7 +

[PATCH] tcg/riscv: Remove superfluous breaks

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang --- tcg/riscv/tcg-target.inc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tcg/riscv/tcg-target.inc.c b/tcg/riscv/tcg-target.inc.c index 2bc0ba7..3c11ab8 100644 --- a/tcg/ri

[PATCH] virtfs-proxy-helper: Remove the superfluous break

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove the superfluous break, as there is a "return" before it. Signed-off-by: Liao Pingfang --- fsdev/virtfs-proxy-helper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index de061a8..e68acc1 100644 --- a/fsde

[PATCH] vnc: Remove the superfluous break

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove the superfluous break, as there is a "return" before. Signed-off-by: Liao Pingfang --- ui/vnc-enc-tight.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 1e08518..cebd358 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-en

[PATCH] target/cris: Remove superfluous breaks

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang --- target/cris/translate.c | 7 +++ target/cris/translate_v10.inc.c | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/target/cris/translate.c b/targ

[PATCH] migration/migration.c: Remove superfluous breaks

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang --- migration/migration.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 92e44e0..2fd5fbb 100644 --- a/migration/migration.c

[PATCH] target/arm/kvm: Remove superfluous break

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous break. Signed-off-by: Liao Pingfang --- target/arm/kvm64.c | 1 - 1 file changed, 1 deletion(-) diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index 1169237..ef1e960 100644 --- a/target/arm/kvm64.c +++ b/target/arm/kvm64.c @@ -330,7 +330,6 @@ int k

[PATCH] block/vmdk: Remove superfluous breaks

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang --- block/vmdk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 28cec50..8f222e3 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -1053,14 +10

[PATCH] scsi: Remove superfluous breaks

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang --- scsi/utils.c | 4 1 file changed, 4 deletions(-) diff --git a/scsi/utils.c b/scsi/utils.c index c50e81f..b37c283 100644 --- a/scsi/utils.c +++ b/scsi/utils.c @@ -32,17 +32,

[PATCH] target/sh4: Remove superfluous breaks

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang --- target/sh4/translate.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 6192d83..60c863d 100644 --- a/target/sh4/transl

[PATCH] target/ppc: Remove superfluous breaks

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang --- target/ppc/misc_helper.c | 5 - 1 file changed, 5 deletions(-) diff --git a/target/ppc/misc_helper.c b/target/ppc/misc_helper.c index 55b68d1..e43a3b4 100644 --- a/target/pp

[PATCH] hw: Remove superfluous breaks

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang --- hw/block/pflash_cfi01.c | 1 - hw/display/cirrus_vga.c | 1 - hw/display/qxl-logger.c | 2 -- hw/gpio/max7310.c | 3 --- hw/i386/intel_iommu.c |

[PATCH] target/openrisc: Remove superfluous breaks

2020-07-12 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang --- target/openrisc/sys_helper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/openrisc/sys_helper.c b/target/openrisc/sys_helper.c index d9fe6c5..d9691d0 100644 --- a/

[PATCH 01/12] target/arm/kvm: Remove superfluous break

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous break. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- target/arm/kvm64.c | 1 - 1 file changed, 1 deletion(-) diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index 1169237..ef1e960 100644 --- a/target

[PATCH 03/12] tcg/riscv: Remove superfluous breaks

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- tcg/riscv/tcg-target.inc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tcg/riscv/tcg-target.i

[PATCH 05/12] virtfs-proxy-helper: Remove the superfluous break

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove the superfluous break, as there is a "return" before it. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- fsdev/virtfs-proxy-helper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fsdev/virtfs-proxy-helper

[PATCH 04/12] scsi: Remove superfluous breaks

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- scsi/utils.c | 4 1 file changed, 4 deletions(-) diff --git a/scsi/utils.c b/scsi/utils.c ind

[PATCH 02/12] target/ppc: Remove superfluous breaks

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- target/ppc/misc_helper.c | 5 - 1 file changed, 5 deletions(-) diff --git a/target/ppc/misc_helper.

[PATCH 06/12] migration/migration.c: Remove superfluous breaks

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- migration/migration.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/migration/migration.c b

[PATCH 08/12] block/vmdk: Remove superfluous breaks

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- block/vmdk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c ind

[PATCH 09/12] hw: Remove superfluous breaks

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 1 - hw/display/cirrus_vga.c | 1 - hw/display/qxl-logger.c | 2 -

[PATCH 11/12] target/sh4: Remove superfluous breaks

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- target/sh4/translate.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/target/sh4/translate.c b/

[PATCH 07/12] vnc: Remove the superfluous break

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove the superfluous break, as there is a "return" before. Signed-off-by: Liao Pingfang a Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- ui/vnc-enc-tight.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tig

[PATCH 12/12] target/cris: Remove superfluous breaks

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- target/cris/translate.c | 7 +++ target/cris/translate_v10.inc.c | 2 -- 2 files changed, 3

[PATCH 10/12] target/openrisc: Remove superfluous breaks

2020-07-13 Thread Yi Wang
From: Liao Pingfang Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang Signed-off-by: Yi Wang Reviewed-by: Philippe Mathieu-Daudé --- target/openrisc/sys_helper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/openrisc/sys_

[PATCH] block: Change write_threshold to uint64 in BlockDeviceInfo

2021-03-01 Thread Yi Wang
lock-nodes" }' |grep threshold "write_threshold": -9223372036854775805, Fixes: e2462113b200 "block: add event when disk usage exceeds threshold" Signed-off-by: Ren Lei Signed-off-by: Yi Wang --- qapi/block-core.json | 2 +- 1 file changed, 1 insertion

[PATCH] virtio: add check for inconsistent VQ in virtio_save()

2019-10-30 Thread Yi Wang
From: Cheng Lin In a case, we have an not enabled VQ (virtio-net) which desc is NULL and get a last_avail_idx is not 0 from dpdk. As a result, it is successed to create a snapshot, but failed to revert it. Because in virtio_load(), there is an inconsistent check for VQ. (call virtio_load() in re

[PATCH] Makefile: Install qemu-[qmp/ga]-ref.* into the directory "interop"

2020-06-08 Thread Yi Wang
From: Liao Pingfang We need install qemu-[qmp/ga]-ref.* files into the subdirectory of qemu docs: interop. If we visit the following address and click the link to qemu-qmp-ref.html: https://www.qemu.org/docs/master/interop/bitmaps.html#basic-qmp-usage It will report following error: " Not Foun

[PATCH] qga: fix a memory leak in qmp_guest_exec_status()

2021-06-30 Thread Yi Wang
has the same problem. Signed-off-by: Yechao Wang Signed-off-by: Yi Wang --- qga/commands.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qga/commands.c b/qga/commands.c index d3fec80..58d4da9 100644 --- a/qga/commands.c +++ b/qga/commands.c @@ -214,17 +214,21

[PATCH v2] qga: fix a memory leak in qmp_guest_exec_status()

2021-06-30 Thread Yi Wang
From: Wang Yechao In some case, $GuestExecInfo.out.length maybe zero and the memory is leaked in qmp_guest_exec_status(). Call g_free() on the fileds directly to fix memory leak (NULL is ignored). $GuestExecInfo.err.data has the same problem. Signed-off-by: Yechao Wang Signed-off-by: Yi Wang

[Qemu-devel] [PATCH] migration: update comments of migration bitmap

2019-04-14 Thread Yi Wang
Since the ram bitmap and the unsent bitmap are split by RAMBlock in commit 6b6712e, it's better to update the comments about them. Signed-off-by: Yi Wang --- migration/ram.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 1c