Re: [Qemu-devel] [PATCH v2 1/1] qmp.c: system_wakeup: adding RUN_STATE_SUSPENDED check before proceeding

2018-05-15 Thread Eric Blake
On 05/14/2018 04:50 PM, Daniel Henrique Barboza wrote: The qmp/hmp command 'system_wakeup' is simply a direct call to 'qemu_system_wakeup_request' from vl.c. This function verifies if runstate is SUSPENDED and if the wake up reason is valid before proceeding. However, no error or warning is

[Qemu-devel] [PATCH v2 1/1] qmp.c: system_wakeup: adding RUN_STATE_SUSPENDED check before proceeding

2018-05-14 Thread Daniel Henrique Barboza
The qmp/hmp command 'system_wakeup' is simply a direct call to 'qemu_system_wakeup_request' from vl.c. This function verifies if runstate is SUSPENDED and if the wake up reason is valid before proceeding. However, no error or warning is thrown if any of those pre-requirements isn't met. There is