All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Levon <levon@movementarian.org>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: SHUTDOWN_crash and vcpu deferrals
Date: Mon, 23 Feb 2009 11:54:09 -0500	[thread overview]
Message-ID: <20090223165409.GC13663@movementarian.org> (raw)
In-Reply-To: <18850.54270.292354.695330@mariner.uk.xensource.com>

On Mon, Feb 23, 2009 at 04:51:10PM +0000, Ian Jackson wrote:

> > (The comment being completely incorrect), but then the crash doesn't
> > work because of the bug I pointed out.
> 
> I wrote that comment.  I haven't been following this bit of xend.  Do
> you mean that nowadays if you say
>    on_crash = 'restart'
> and the domain immediately crashes on boot, you don't get an infinite
> restart loop ?  One of the most common causes of qemu `crashing' is

AFAIK this has been the case since forever:

        rst = self._readVm('xend/previous_restart_time')
        if rst:
            rst = float(rst)
            timeout = now - rst
            if timeout < MINIMUM_RESTART_TIME:
                log.error(
                    'VM %s restarting too fast (%f seconds since the last '
                    'restart).  Refusing to restart to avoid loops.',
                    self.info['name_label'], timeout)
                self.destroy()
                return

        self._writeVm('xend/previous_restart_time', str(now))

This is from 3.1.4. Perhaps it was broken when you tried it, but it
certainly seems to do its intended job on 3.3.2pre for me.

regards,
john

  reply	other threads:[~2009-02-23 16:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20 21:01 SHUTDOWN_crash and vcpu deferrals John Levon
2009-02-20 21:35 ` Keir Fraser
2009-02-20 22:03   ` John Levon
2009-02-21  9:01     ` Keir Fraser
2009-02-23 16:51     ` Ian Jackson
2009-02-23 16:54       ` John Levon [this message]
2009-02-23 16:58         ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090223165409.GC13663@movementarian.org \
    --to=levon@movementarian.org \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.