All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Keir Fraser <keir@xen.org>
Cc: xen-devel@lists.xensource.com
Subject: xenstore index reset in xb_init_comms breaks domU kdump
Date: Wed, 26 Jan 2011 15:00:44 +0100	[thread overview]
Message-ID: <20110126140043.GA27631@aepfle.de> (raw)


Keir,

in the commit below a reset of the rsp_cons/rsp_prod index was added.
http://xenbits.xen.org/staging/xen-unstable.hg?rev/1ec0d322402e

Is this reset really required for save/restore? I have not tried it, but
I would assume a restored guest would get an empty page to work with.
Also:
Could a guest be saved when its in the middle of a xenstore operation?

The reset breaks the xenstore interface in a crashed domU kernel. If the
crash kernel boots, it tries to operate on the new rsp_* index. But this
contains garbage, process_msg() tries to use the data as 'struct
xsd_sockmsg', and kmalloc() fails.
If I remove the rsp_cons/rsp_prod reset in xb_init_comms(), the PV
drivers in the crash kernel can connect to xenstore.

Should the fixup code be removed, or is it essential for save/restore?


Olaf

             reply	other threads:[~2011-01-26 14:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 14:00 Olaf Hering [this message]
2011-01-26 14:21 ` xenstore index reset in xb_init_comms breaks domU kdump Keir Fraser
2011-01-26 14:30   ` Olaf Hering

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=20110126140043.GA27631@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=keir@xen.org \
    --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.