Re: [Qemu-devel] [PATCH] qmp: return err msg when powerdown a vm when it isn't in running state

2015-12-21 Thread Qinghua Jin
Thanks for your help, i'll resubmit the patch right away. At 2015-12-22 01:55:35, "P J P" <ppan...@redhat.com> wrote: >+-- On Mon, 21 Dec 2015, Qinghua Jin wrote --+ >| -void qmp_system_powerdown(Error **erp) >| +void qmp_system_powerdown(Error **errp) >| { >

[Qemu-devel] [PATCH v2] qmp: return err msg when powerdown a vm when it isn't in running state

2015-12-21 Thread Qinghua Jin
This is an update of patch previously show in msg: http://lists.gnu.org/archive/html/qemu-devel/2015-12/msg03817.html When send system_powerdown to QMP when the vm isn't in RUN_STATE_RUNNING, it will be ignored by system. So reply a err msg with the situation. Signed-off-by: Qinghua Jin

Re: [Qemu-devel] [PATCH v2] qmp: return err msg when powerdown a vm when it isn't in running state

2015-12-21 Thread Qinghua Jin
Thanks for helping me, i'll use the patch format suggested by you. At 2015-12-22 10:06:17, "Fam Zheng" <f...@redhat.com> wrote: >On Tue, 12/22 09:42, Qinghua Jin wrote: >> This is an update of patch previously show in msg: >> >> http://lists.gnu.org/arc

[Qemu-devel] [PATCH v3] qmp: return err msg when powerdown a vm when it isn't in running state

2015-12-21 Thread Qinghua Jin
When send system_powerdown to QMP when the vm isn't in RUN_STATE_RUNNING, it will be ignored by system. So reply a err msg with the situation. Signed-off-by: Qinghua Jin <qhjin_...@163.com> --- This is an update of the patch as per Fam Zheng's suggestion: http://lists.gnu.org/archive/htm

[Qemu-devel] [PATCH] qmp: return err msg when powerdown a vm when it isn't in running state

2015-12-21 Thread Qinghua Jin
When send system_powerdown to QMP when the vm isn't in RUN_STATE_RUNNING, it will be ignored by system. So reply a err msg with the situation. Signed-off-by: Qinghua Jin <qhjin_...@163.com> --- qmp.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qmp.c b/qmp.c

Re: [Qemu-devel] [Qemu-trivial][PATCH] trace: reflect the file name change

2015-12-15 Thread Qinghua Jin
Thanks for helping me, i'll use it next time. At 2015-12-15 11:03:12, "Stefan Hajnoczi" <stefa...@redhat.com> wrote: >On Fri, Dec 11, 2015 at 03:06:12PM +0800, Qinghua Jin wrote: >> Some functions was moved from block.c to block/io.c, so the trace-events >>

[Qemu-devel] [Qemu-trivial][PATCH] trace: reflect the file name change

2015-12-11 Thread Qinghua Jin
Some functions was moved from block.c to block/io.c, so the trace-events file should reflect that change. Signed-off-by: Qinghua Jin <qhjin_...@163.com> --- trace-events | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trace-events b/trace-events index 2fce98e..b

[Qemu-devel] [Bug 1524637] [NEW] system_powerdown/system_reset not working when exec stop on hmp

2015-12-10 Thread Qinghua Jin
Public bug reported: system_powerdown/system_reset stops working in qemu for centos kernels if KVM is enabled. qemu versioin: 2.4 linux kernel versioin: 4.2.5 How to reproduce: 1. qemu-system-x86_64 -enable-kvm -drive if=none,id=drive0,file=/media/sda5/image/fc21/fc21.raw -device