From: "Huang, Ying" <ying.huang@intel.com>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: nigel@nigel.suspend2.net,
Kexec Mailing List <kexec@lists.infradead.org>,
linux-kernel@vger.kernel.org, "Rafael J. Wysocki" <rjw@sisk.pl>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Pavel Machek <pavel@ucw.cz>,
Andrew Morton <akpm@linux-foundation.org>,
linux-pm@lists.linux-foundation.org,
Jeremy Maitin-Shepard <jbms@cmu.edu>
Subject: Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump
Date: Tue, 11 Dec 2007 08:55:45 +0000 [thread overview]
Message-ID: <1197363345.24045.96.camel@caritas-dev.intel.com> (raw)
In-Reply-To: <20071210223117.GC27124@redhat.com>
On Mon, 2007-12-10 at 17:31 -0500, Vivek Goyal wrote:
> [..]
> >
> > -#define KEXEC_ON_CRASH 0x00000001
> > -#define KEXEC_ARCH_MASK 0xffff0000
> > +#define KEXEC_ON_CRASH 0x00000001
> > +#define KEXEC_PRESERVE_CPU 0x00000002
> > +#define KEXEC_PRESERVE_CPU_EXT 0x00000004
> > +#define KEXEC_SINGLE_CPU 0x00000008
> > +#define KEXEC_PRESERVE_DEVICE 0x00000010
> > +#define KEXEC_PRESERVE_CONSOLE 0x00000020
>
> Hi,
>
> Why do we need so many different flags for preserving different types
> of state (CPU, CPU_EXT, Device, console) ? To keep things simple,
> can't we can create just one flag KEXEC_PRESERVE_CONTEXT, which will
> indicate any special action required for preserving the previous kernel's
> context so that one can swith back to old kernel?
Yes. There are too many flags, especially when we have no users of these
flags now. It is better to use one flag such as KEXEC_PRESERVE_CONTEXT
now, and create the others required flags when really needed.
Best Regards,
Huang Ying
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
WARNING: multiple messages have this Message-ID (diff)
From: "Huang, Ying" <ying.huang@intel.com>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
Pavel Machek <pavel@ucw.cz>,
nigel@nigel.suspend2.net, "Rafael J. Wysocki" <rjw@sisk.pl>,
Andrew Morton <akpm@linux-foundation.org>,
Jeremy Maitin-Shepard <jbms@cmu.edu>,
linux-pm@lists.linux-foundation.org,
Kexec Mailing List <kexec@lists.infradead.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump
Date: Tue, 11 Dec 2007 08:55:45 +0000 [thread overview]
Message-ID: <1197363345.24045.96.camel@caritas-dev.intel.com> (raw)
In-Reply-To: <20071210223117.GC27124@redhat.com>
On Mon, 2007-12-10 at 17:31 -0500, Vivek Goyal wrote:
> [..]
> >
> > -#define KEXEC_ON_CRASH 0x00000001
> > -#define KEXEC_ARCH_MASK 0xffff0000
> > +#define KEXEC_ON_CRASH 0x00000001
> > +#define KEXEC_PRESERVE_CPU 0x00000002
> > +#define KEXEC_PRESERVE_CPU_EXT 0x00000004
> > +#define KEXEC_SINGLE_CPU 0x00000008
> > +#define KEXEC_PRESERVE_DEVICE 0x00000010
> > +#define KEXEC_PRESERVE_CONSOLE 0x00000020
>
> Hi,
>
> Why do we need so many different flags for preserving different types
> of state (CPU, CPU_EXT, Device, console) ? To keep things simple,
> can't we can create just one flag KEXEC_PRESERVE_CONTEXT, which will
> indicate any special action required for preserving the previous kernel's
> context so that one can swith back to old kernel?
Yes. There are too many flags, especially when we have no users of these
flags now. It is better to use one flag such as KEXEC_PRESERVE_CONTEXT
now, and create the others required flags when really needed.
Best Regards,
Huang Ying
next prev parent reply other threads:[~2007-12-11 0:57 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-07 15:53 [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump Huang, Ying
2007-12-07 15:53 ` Huang, Ying
2007-12-08 23:53 ` Pavel Machek
2007-12-08 23:53 ` Pavel Machek
2007-12-08 23:53 ` Pavel Machek
2007-12-09 0:19 ` Rafael J. Wysocki
2007-12-09 0:19 ` Rafael J. Wysocki
2007-12-09 1:06 ` Eric W. Biederman
2007-12-09 1:06 ` Eric W. Biederman
2007-12-09 1:06 ` Eric W. Biederman
2007-12-09 0:19 ` Rafael J. Wysocki
2007-12-10 19:55 ` Vivek Goyal
2007-12-10 19:55 ` Vivek Goyal
2007-12-11 8:51 ` Huang, Ying
2007-12-11 8:51 ` Huang, Ying
2007-12-11 8:51 ` Huang, Ying
2007-12-10 19:55 ` Vivek Goyal
2007-12-10 22:31 ` Vivek Goyal
2007-12-10 22:31 ` Vivek Goyal
2007-12-10 22:31 ` Vivek Goyal
2007-12-11 8:55 ` Huang, Ying
2007-12-11 8:55 ` Huang, Ying [this message]
2007-12-11 8:55 ` Huang, Ying
2007-12-11 2:25 ` Eric W. Biederman
2007-12-11 2:25 ` Eric W. Biederman
2007-12-11 2:25 ` Eric W. Biederman
2007-12-11 15:50 ` Huang, Ying
2007-12-11 15:50 ` Huang, Ying
2007-12-11 15:50 ` Huang, Ying
2007-12-11 9:27 ` Eric W. Biederman
2007-12-11 9:27 ` Eric W. Biederman
2007-12-11 9:27 ` Eric W. Biederman
2007-12-12 6:27 ` Huang, Ying
2007-12-12 6:27 ` Huang, Ying
2007-12-12 6:27 ` Huang, Ying
2007-12-18 8:34 ` Huang, Ying
2007-12-18 8:34 ` Huang, Ying
2007-12-18 8:34 ` Huang, Ying
-- strict thread matches above, loose matches on Subject: below --
2007-12-07 15:53 Huang, Ying
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=1197363345.24045.96.camel@caritas-dev.intel.com \
--to=ying.huang@intel.com \
--cc=akpm@linux-foundation.org \
--cc=ebiederm@xmission.com \
--cc=jbms@cmu.edu \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=nigel@nigel.suspend2.net \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
--cc=vgoyal@redhat.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.