From: Don Zickus <dzickus@redhat.com>
To: Horms <horms@verge.net.au>
Cc: Magnus Damm <magnus@valinux.co.jp>, xen-devel@lists.xensource.com
Subject: Re: [PATCH]: kexec: framework and i386
Date: Fri, 7 Apr 2006 11:00:29 -0400 [thread overview]
Message-ID: <20060407150029.GF30208@redhat.com> (raw)
In-Reply-To: <20060407074234.GA19846@verge.net.au>
On Fri, Apr 07, 2006 at 04:42:36PM +0900, Horms wrote:
> kexec: framework and i386
>
> Here is a first cut of kexec for dom0/xen, which will actually
> kexec the physical machine from xen. The approach taken is
> to move the architecture-dependant kexec code into a new hypercall.
>
> Some notes:
> * machine_kexec_cleanup() and machine_kexec_prepare() don't do
> anything in i386. So while this patch adds a framework for them,
> I am not sure what parameters are needs at this stage.
> * Only works for UP, as machine_shutdown is not implemented yet
> * kexecing into xen does not seem to work, I think that
> kexec-tools needs updating, but I have not investigated yet
> * I don't believe that kdump works yet
> * This patch was prepared against xen-unstable.hg 9514
> As of today (9574) two new hypercalls have been added.
> I rediffed and moved the kexec hypercall to 33. However
> this exceedes hypercall_NR, which is currently 32.
> I tried increasing this, but the dom0 now crashes
> in entry.S on init. Even after rebuilding both xen and the kernel
> completely from scratch after a make distclean. Help!!
>
I was looking at doing the same but focusing more on kdump initially.
However, the more I understood kexec/kdump and the more I understood the
hypervisor and xend, I realized they both were solving the same problem in
two different ways.
Instead I was trying to focus on a domain0 failover/backup copy. By
utilizing xend to set up all the infrastructure of loading the
image/initrd, I all I had to do was set a flag in the hypervisor letting
it know this was a second copy of another domain0.
Upon reboot/crash, the hypervisor could then look to see if there is a
second copy of a domain0 and if so run that copy (which would perform the
same functionality as kexec AND kdump - minus the memory hole).
This has the advantage (if done correctly) of not having to reboot the
domainU kernels (which is a _huge_ win). The only penalty is dealing with
the couple of seconds when the domain0 switches block/net driver control
to the other domain0 and any dropped transactions.
The infrastructure in xen is there, I am slowing weeding through the lower
layers to set the right bits and such. Unfortunately, I can't commit all
my time to this little project but this is the direction I am trying to
head towards. (Any help would be great!)
Like I said, this is my 2cents. I just thought this approach would be a
better fit with xen, than trying to drag the whole kexec/kdump layer
inside the hypervisor. Opinions are welcomed.
Cheers,
Don
next prev parent reply other threads:[~2006-04-07 15:00 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-07 7:42 [PATCH]: kexec: framework and i386 Horms
2006-04-07 15:00 ` Don Zickus [this message]
2006-04-10 5:09 ` Hirokazu Takahashi
2006-04-10 15:38 ` Don Zickus
2006-04-11 1:44 ` Horms
2006-04-12 15:56 ` Don Zickus
2006-04-07 15:09 ` Gerd Hoffmann
2006-04-08 4:39 ` Horms
2006-04-12 9:12 ` Horms
2006-04-17 6:06 ` Horms
2006-04-21 1:28 ` [PATCH]: kexec: framework and i386 (Take IV) Horms
2006-04-21 6:10 ` Re: [PATCH]: kexec: framework and i386 Akio Takebe
2006-04-21 6:55 ` horms-home
2006-04-21 7:53 ` Akio Takebe
2006-04-23 14:45 ` Mark Williamson
2006-04-24 1:10 ` Akio Takebe
2006-04-24 1:53 ` Hypercall number assignment convension (was Re: Re: [PATCH]: kexec: framework and i386) Isaku Yamahata
2006-04-24 7:32 ` Keir Fraser
2006-04-24 11:20 ` Muli Ben-Yehuda
2006-04-25 0:11 ` Horms
2006-04-25 9:57 ` Keir Fraser
2006-04-26 6:08 ` [PATCH]: kexec: framework and i386 Take V Horms
2006-05-02 8:17 ` [PATCH]: kexec: framework and i386 (Take VI) Simon Horman [Horms]
2006-05-03 7:16 ` Akio Takebe
2006-05-05 1:03 ` horms
2006-05-06 8:46 ` Akio Takebe
2006-05-07 4:46 ` Horms
2006-05-07 9:45 ` Akio Takebe
2006-05-08 9:02 ` Ian Campbell
2006-05-11 11:35 ` horms
2006-05-15 8:29 ` Akio Takebe
2006-05-06 8:44 ` Akio Takebe
2006-05-07 4:45 ` Horms
2006-05-09 4:16 ` [PATCH]: kexec: framework and i386 (Take VII) Horms
2006-05-09 9:18 ` [PATCH]: kexec: framework and i386 (Take VIII) Horms
2006-05-09 13:28 ` Akio Takebe
2006-05-16 10:43 ` Akio Takebe
2006-05-16 10:44 ` Keir Fraser
2006-05-16 11:03 ` Akio Takebe
2006-05-16 12:39 ` Keir Fraser
2006-05-17 2:44 ` Horms
2006-05-17 4:53 ` Horms
2006-05-17 9:52 ` Re: [PATCH]: kexec: framework and i386 (Take IX) Horms
2006-05-17 10:10 ` Keir Fraser
2006-05-18 3:37 ` Horms
2006-05-25 7:20 ` [PATCH] kexec: framework and i386 (Take X) Horms
2006-06-05 2:53 ` Akio Takebe
2006-06-15 7:29 ` [PATCH] kexec: framework and i386 (Take XI) Horms
2006-07-11 3:39 ` [PATCH] kexec: framework and i386 (Take XII) Horms
2006-08-11 7:48 ` [PATCH] kexec: framework and i386 (Take XIII) Horms
2006-08-31 7:43 ` [PATCH] kexec: framework and i386 (Take XIV) Horms
2006-08-31 8:55 ` Akio Takebe
2006-09-01 2:56 ` Horms
2006-09-01 8:41 ` Akio Takebe
2006-09-01 8:45 ` Akio Takebe
2006-09-01 10:21 ` Horms
2006-09-04 21:45 ` Akio Takebe
2007-05-28 5:28 ` Horms
2007-05-28 6:25 ` [Xen-devel] " Akio Takebe
2007-05-29 1:05 ` Horms
2007-05-29 9:04 ` Ian Campbell
2007-05-31 10:43 ` [Xen-devel] " Akio Takebe
2007-05-31 10:49 ` Keir Fraser
2007-05-31 11:07 ` [Xen-devel] " Akio Takebe
2007-05-31 11:17 ` Akio Takebe
2006-09-05 11:43 ` [Xen-devel] " Kazuo Moriwaka
2006-09-05 13:06 ` Horms
2006-04-26 2:09 ` Hypercall number assignment convension (was Re: Re: [PATCH]: kexec: framework and i386) Isaku Yamahata
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=20060407150029.GF30208@redhat.com \
--to=dzickus@redhat.com \
--cc=horms@verge.net.au \
--cc=magnus@valinux.co.jp \
--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.