'resume guest state when a host is booted.'

def resume_state_on_host_boot(self, context, instance, network_info, block_device_info=None):

    state = vm_util.get_vm_state(self._session, instance)
    ignored_states = [power_state.RUNNING, power_state.SUSPENDED]
    if (state in ignored_states):
        return
    self.reboot(context, instance, network_info, 'hard', block_device_info)
