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.xen.org" <xen-devel@lists.xen.org>
Subject: Re: how to properly reset event channel in PVonHVM after kexec boot
Date: Wed, 14 Mar 2012 12:05:24 +0100	[thread overview]
Message-ID: <20120314110524.GA25099@aepfle.de> (raw)
In-Reply-To: <1331722619.23971.397.camel@zakaz.uk.xensource.com>

On Wed, Mar 14, Ian Campbell wrote:

> On Wed, 2012-03-14 at 10:52 +0000, Olaf Hering wrote:
> > What is the best way to reset all registered event channels after an
> > kexec boot in a PVonHVM guest? Right now repeated kexec boots will fail
> > after 1300 iterations because no more event channels can be registered.
> > 
> > EVTCHNOP_reset can not be used because it expects the domid, which the guest
> > does not know.
> 
> It appears that it accepts DOMID_SELF. It calls
> rcu_lock_target_domain_by_id which handles it explicitly.

Oh, I will see how it works then. It was not obvious to me that
DOMID_SELF is handled.

>From reading the code it appears that it could also reset
EVTCHNSTAT_interdomain, which would hang the guest. Thats why my patch
skips this state.

Olaf

  reply	other threads:[~2012-03-14 11:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-14 10:52 how to properly reset event channel in PVonHVM after kexec boot Olaf Hering
2012-03-14 10:56 ` Ian Campbell
2012-03-14 11:05   ` Olaf Hering [this message]
2012-03-14 18:01     ` 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=20120314110524.GA25099@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=Ian.Campbell@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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.