All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: James Harper <james.harper@bendigoit.com.au>,
	xen-devel@lists.xensource.com
Subject: Re: domains not shutting down properly - theproblemisback again
Date: Fri, 02 Jan 2009 10:28:50 +0000	[thread overview]
Message-ID: <C5839CE2.20ABF%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D01550171@trantor>

On 02/01/2009 10:11, "James Harper" <james.harper@bendigoit.com.au> wrote:

>> xenstored will not auto-connect to any domain. So since it holds no
>> resources of the domU, it won't impede the domU's destruction.
> 
> Even a domain I create subsequent to restarting xenstored & xend? 'xm
> console' doesn't work in that case so I'm guessing not.

No. I'd be a bit surprised if you could create a domain without a wotrking
dom0 ring connection to xenstored though.

> I have previously logged xenstored_domain.c:domain_cleanup() - it never
> gets called during the domain crashing or being shut down. I think the
> action of creating another domain (or an explicit 'xm destroy') results
> in domain_cleanup() getting called somewhere along the way, which mostly
> cleans up the domain but obviously leaves a few pages and an event
> channel lying around (as revealed by 'xm debug q' and 'lsevtchn').

As long as domain_cleanup() gets called at some point it should see the
dying domU has dominfo.dying and then release resources.

> I guess I'll start adding some logs to domain.c...

Good idea. Maybe something is going wrong in domain_kill(). That will be
called by the DOMCTL_destroydomain hypercall, which should be triggered by
'xm destroy'. Note the hypercall is preemptable, requiring a loop on EAGAIN
in libxenctrl, to make sure it completes its work. The notification on
VIRQ_DOM_EXC is near the end of the function.

 -- Keir

  reply	other threads:[~2009-01-02 10:28 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-01 13:03 domains not shutting down properly - the problem is back again James Harper
2009-01-01 13:09 ` domains not shutting down properly - the problem isback again James Harper
2009-01-01 14:08   ` Keir Fraser
2009-01-01 14:34     ` Venefax
2009-01-01 14:41       ` Keir Fraser
2009-01-01 23:52     ` James Harper
2009-01-02  2:38     ` James Harper
2009-01-02  3:40     ` James Harper
2009-01-02  4:15       ` domains not shutting down properly - the problemisback again James Harper
2009-01-02  4:48         ` James Harper
2009-01-02  9:11           ` domains not shutting down properly - theproblemisback again James Harper
2009-01-02  9:55             ` Keir Fraser
2009-01-02 10:11               ` James Harper
2009-01-02 10:28                 ` Keir Fraser [this message]
2009-01-02 10:28               ` James Harper
2009-01-02 10:41                 ` Keir Fraser
2009-01-02 10:48                   ` James Harper
2009-01-02 11:47                     ` domains not shutting down properly - theproblemisbackagain James Harper
2009-01-02 12:34                       ` Keir Fraser
2009-01-02 13:27                         ` domains not shutting down properly -theproblemisbackagain James Harper
2009-01-02 15:31                           ` Keir Fraser
2009-01-03  0:57                             ` James Harper
2009-01-03  2:25                               ` domains not shutting down properly-theproblemisbackagain James Harper
2009-01-03  5:12                             ` domains not shutting down properly -theproblemisbackagain James Harper
2009-01-03  5:36                               ` domains not shutting down properly-theproblemisbackagain James Harper
2009-01-03  6:29                                 ` bug in evtchn_cpu_notify (was domains not shutting down properly-theproblemisbackagain) James Harper
2009-01-03  7:04                                   ` James Harper
2009-01-03  8:52                                     ` Keir Fraser
2009-01-02 12:52                       ` domains not shutting down properly -theproblemisbackagain James Harper
2009-01-02 11:15                   ` domains not shutting down properly - theproblemisback again James Harper

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=C5839CE2.20ABF%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=james.harper@bendigoit.com.au \
    --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.