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
---
This is an update of the patch as per Fam Zheng's suggestion:
http://lists.gnu.org/archive/html/qemu-dev
Thanks for helping me, i'll use the patch format suggested by you.
At 2015-12-22 10:06:17, "Fam Zheng" wrote:
>On Tue, 12/22 09:42, Qinghua Jin wrote:
>> This is an update of patch previously show in msg:
>>
>> http://lists.gnu.org/archive/html/qemu-deve
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: Qinghu
Thanks for your help, i'll resubmit the patch right away.
At 2015-12-22 01:55:35, "P J P" wrote:
>+-- On Mon, 21 Dec 2015, Qinghua Jin wrote --+
>| -void qmp_system_powerdown(Error **erp)
>| +void qmp_system_powerdown(Error **errp)
>| {
>|
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
---
qmp.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/qmp.c b/qmp.c
index 0a1fa19..8e
Thanks for helping me, i'll use it next time.
At 2015-12-15 11:03:12, "Stefan Hajnoczi" 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
>> file should reflect
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
---
trace-events | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/trace-events b/trace-events
index 2fce98e..bec1aa1 100644
--- a/trace
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
virtio-blk-p