code: def suspend(self):
          
  
          if self.is_running():
              vm_status = yield from self._get_vm_status()
              if vm_status is None:
                  raise QemuError("Suspending a QEMU VM is not supported")
              elif vm_status == "running" or vm_status == "prelaunch":
                  yield from self._control_vm("stop")
                  self.status = "suspended"
                  log.debug("QEMU VM has been suspended")
              else:
                  log.info("QEMU VM is not running to be suspended, current status is {}".format(vm_status))
docs: Suspends this QEMU VM.