All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] xenstored: allow guests to reintroduce themselves
Date: Tue, 9 Aug 2011 11:17:14 +0200	[thread overview]
Message-ID: <20110809091714.GA6436@aepfle.de> (raw)
In-Reply-To: <1312880369.26263.33.camel@zakaz.uk.xensource.com>

On Tue, Aug 09, Ian Campbell wrote:

> On Mon, 2011-08-01 at 13:38 +0100, Olaf Hering wrote:
> > # HG changeset patch
> > # User Olaf Hering <olaf@aepfle.de>
> > # Date 1312202176 -7200
> > # Node ID edb96c34f4a638e8ba97933b6bd76ff72836353e
> > # Parent  0f36c2eec2e1576b4db6538b5f22d625587c1a15
> > xenstored: allow guests to reintroduce themselves
> > 
> > During kexec all old watches have to be removed, otherwise the new
> > kernel will receive unexpected events. Allow a guest to introduce itself
> > and cleanup all of its watches.
> 
> Just out of interest what happens if a guest tries to use this operation
> on an older xenstored which does not support it? I guess it gets an
> enosys type response?

It does, conn->id is not zero and the modified function returns early.

> Is there any way we can arrange to probe for this feature in order to
> fail to register for kexec/kdump early on rather than failing at the
> point where we attempt to actually kexec (where failure might come as
> rather an unpleasant surprise). I don't think we've historically had a
> mechanism for negotiating features with xenstored itself so I'm not sure
> what would be best here. Perhaps xenstored itself should
> expose /xenstored/feature-FOO nodes?

This patch is only for kexec boots, with kdump the crash in the kdump
kernel may happen as well but so far I have not seen it. Maybe because
the kdump kernel runs in its own memory range.

If you prefer, kexec can be modified to check for certain xenstored
properties.

Olaf

  reply	other threads:[~2011-08-09  9:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-01 12:38 [PATCH] xenstored: allow guests to reintroduce themselves Olaf Hering
2011-08-09  8:59 ` Ian Campbell
2011-08-09  9:17   ` Olaf Hering [this message]
2011-08-09  9:25     ` Ian Campbell
2011-08-09  9:34       ` Olaf Hering
2011-08-09 10:08 ` Vincent Hanquez
2011-08-09 10:14   ` Keir Fraser
2011-08-09 10:50     ` Vincent Hanquez
2011-08-09 11:00       ` Keir Fraser
2011-08-09 11:18         ` Vincent Hanquez
2011-08-09 11:31           ` Keir Fraser
2011-08-09 12:33             ` Vincent Hanquez
2011-08-09 11:07     ` Vincent Hanquez
2011-08-09 10:49   ` Olaf Hering
2011-08-09 16:34 ` Ian Jackson
2011-08-09 16:38   ` Ian Jackson
2011-08-09 16:49 ` 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=20110809091714.GA6436@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=Ian.Campbell@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.