Hi,

I'd like to propose two new operations on virtual machines: suspend and resume:

Suspend
----------

From libvirt.org: Suspend an active domain, the process is frozen without further access to CPU resources and I/O but the memory used by the domain at the hypervisor level will stay allocated.

REST syntax:
POST /vms/<vm-name>/suspend

Return status:
200: OK
4xx: error

Return data:
None

Resume
----------

From libvirt.org: Resume a suspended domain, the process is restarted from the state where it was frozen by calling "suspend".

REST syntax:
POST /vms/<vm-name>/resume

Return status:
200: OK
4xx: error

Return data:
None

--------------------

This feature has been partially implemented in previous patches ("[PATCH 0/3] VM suspend/resume", from Jan 21st), and its progress should be resumed soon. The UI will have to be updated accordingly by adding buttons to suspend and resume a VM, somewhat like the buttons which start and stop a VM.

Any feedback will be very welcome.

Best regards,
Crístian.