+-- On Tue, 22 Dec 2015, Qinghua Jin wrote --+ | -void qmp_system_powerdown(Error **erp) | +void qmp_system_powerdown(Error **errp) | { | + if (!runstate_check(RUN_STATE_RUNNING)) { | + error_setg(errp, | + "Can not powerdown virtual machine as it is not running"); | + return; | + } | qemu_system_powerdown_request(); | }
Looks okay. -- Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F