All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Jan Beulich <JBeulich@novell.com>
Cc: Ian Campbell <Ian.Campbell@eu.citrix.com>,
	Shriram Rajagopalan <rshriram@cs.ubc.ca>,
	"linux-pm@lists.linux-foundation.org"
	<linux-pm@lists.linux-foundation.org>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Pavel Machek <pavel@ucw.cz>
Subject: Re: Re: [PATCH] xen: fix XEN_SAVE_RESTORE Kconfig dependencies
Date: Fri, 25 Feb 2011 19:19:26 +0100	[thread overview]
Message-ID: <201102251919.26713.rjw@sisk.pl> (raw)
In-Reply-To: <4D677B260200007800033A60@vpn.id2.novell.com>

On Friday, February 25, 2011, Jan Beulich wrote:
> >>> On 23.02.11 at 12:10, Ian Campbell <Ian.Campbell@eu.citrix.com> wrote:
> > On Wed, 2011-02-23 at 10:58 +0000, Jan Beulich wrote:
> >> >>> On 23.02.11 at 10:08, Ian Campbell <Ian.Campbell@eu.citrix.com> wrote:
> >> > On Wed, 2011-02-23 at 07:27 +0000, Shriram Rajagopalan wrote:
> >> >> Make XEN_SAVE_RESTORE user visible and enable HIBERNATION and SWAP,
> >> >> if this option is enabled.
> >> > 
> >> > I was under the (perhaps mistaken?) impression that selecting user
> >> > visible Kconfig symbols was verboten since it has side-effects which
> >> > make it hard for users to figure out why something cannot be switched
> >> > off and/or how to turn things on etc.
> >> > 
> >> > In any case I think I preferred the "depends HIBERNATION" idea -- I
> >> > thought that was the consensus of the thread too?
> >> 
> >> Why HIBERNATION (and SWAP) instead of SUSPEND? Xen doesn't
> >> support the former (other than the latter)...
> > 
> > HIBERNATION provides the FREEZE, THAW and RESUME methods which we would
> > like to use to integrate save/restore/checkpoint with the PM core i.e.
> > choose THAW vs. RESUME based on whether the suspend was cancelled (aka a
> > checkpoint) or not. See Shriram's other recent patch for details.
> 
> But imo it's nevertheless wrong to select HIBERNATION (and bogus
> to select SWAP), as that'll create to user space the impression that
> the kernel is capable of doing hibernation, which is wrong. If you
> need the particular PM operations but no hibernation, then an
> intermediary option will need to be introduced.

I think we can introduce CONFIG_HIBERNATE_INTERFACE that will be user-visible
option instead of CONFIG_HIBERNATION and will select the latter.  Then,
CONFIG_XEN_SAVE_RESTORE will also be able to select CONFIG_HIBERNATION without
building the hibernate interface in, which will prevent user space from being
confused, but that will cause too much code to be built anyway.

Thanks,
Rafael

  parent reply	other threads:[~2011-02-25 18:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23  7:27 [PATCH] xen: fix XEN_SAVE_RESTORE Kconfig dependencies Shriram Rajagopalan
2011-02-23  9:08 ` Ian Campbell
2011-02-23  9:08 ` Ian Campbell
2011-02-23  9:48   ` Rafael J. Wysocki
2011-02-23  9:48   ` Rafael J. Wysocki
2011-02-23 10:58   ` [Xen-devel] " Jan Beulich
2011-02-23 11:10     ` Ian Campbell
2011-02-25  8:49       ` [Xen-devel] " Jan Beulich
2011-02-25  8:49       ` Jan Beulich
2011-02-25 18:19         ` [Xen-devel] " Rafael J. Wysocki
2011-02-25 18:19         ` Rafael J. Wysocki [this message]
2011-02-23 11:10     ` Ian Campbell
2011-02-23  9:41 ` Rafael J. Wysocki
2011-02-23  9:41 ` Rafael J. Wysocki
2011-02-23 16:23 ` [PATCH v2] " Shriram Rajagopalan
2011-02-23 16:23 ` Shriram Rajagopalan
2011-02-23 19:51   ` Rafael J. Wysocki
2011-02-23 19:51   ` Rafael J. Wysocki

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=201102251919.26713.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=Ian.Campbell@eu.citrix.com \
    --cc=JBeulich@novell.com \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=pavel@ucw.cz \
    --cc=rshriram@cs.ubc.ca \
    --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.