All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Xen devel list <xen-devel@lists.xensource.com>
Subject: Re: [patch 5/6] frontend device shutdown
Date: Mon, 21 Aug 2006 16:11:25 +0200	[thread overview]
Message-ID: <44E9BF0D.3090705@suse.de> (raw)
In-Reply-To: <C10CC1B1.81E%Keir.Fraser@cl.cam.ac.uk>

> I really don't like that distinction very much (moving to Initialising
> instead of Closed). The problem is really in the backend, which incorrectly
> interprets XenbusStateClosed as a request to completely unregister the
> device. The reason it does this is because the control tools signal that
> destruction should take place by deleting the frontend directory in
> xenstore. This results in xenbus_read_driver_state() returning
> XenbusStateClosed, hence the backend drivers have interpreted that state
> value as a destruction request from the tools.

Ok, that should work fine for the backend side.

But there is another problem on the frontend side:  xenbus_probe_node()
ignores devices which are not in Initializing state, so it doesn't
reprobe devices which are about to disappear.  The next kernel should
probe them, but the frontend state is still Closing (or Closed) ...

I think that was the initial reason to do the jumpback to Initializing
(so the new kexec'ed kernel finds an environment identical to the direct
boot).  That was also the reason to introduce the shutdown_in_progress
flag, so I have some way to avoid re-initializing of the device by the
old kernel.

cheers,
  Gerd

-- 
Gerd Hoffmann <kraxel@suse.de>
http://www.suse.de/~kraxel/julika-dora.jpeg

  parent reply	other threads:[~2006-08-21 14:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17 14:03 [patch 5/6] frontend device shutdown Gerd Hoffmann
2006-08-19 12:25 ` Keir Fraser
2006-08-19 12:29   ` Keir Fraser
2006-08-21 14:11   ` Gerd Hoffmann [this message]
2006-08-21 16:11     ` Keir Fraser
2006-08-22  8:04       ` Gerd Hoffmann
2006-08-22  8:30         ` Keir Fraser
2006-08-22  8:40           ` Keir Fraser
2006-08-22  9:12           ` Gerd Hoffmann
2006-08-22 10:22             ` Gerd Hoffmann
2006-08-19 12:52 ` Keir Fraser
2006-08-21  6:48   ` Gerd Hoffmann

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=44E9BF0D.3090705@suse.de \
    --to=kraxel@suse.de \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --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.