All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	Keir Fraser <keir@xen.org>, Doug Goldstein <cardoe@cardoe.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v2 3/3] tmem: allow tmem to be disabled with Kconfig
Date: Wed, 16 Mar 2016 02:39:02 -0600	[thread overview]
Message-ID: <56E929B602000078000DCF2E@prv-mh.provo.novell.com> (raw)
In-Reply-To: <20160316073506.GA31125@char.us.oracle.com>

>>> On 16.03.16 at 08:35, <konrad.wilk@oracle.com> wrote:
> On Tue, Mar 15, 2016 at 03:18:50PM -0500, Doug Goldstein wrote:
>> Wrap the various tmem functions with the Kconfig generated CONFIG_TMEM
>> option allowing users to build Xen without tmem support.
> 
> I ended with this change on top of yours (which I will squash):
> 
> The 'bool "tmem" so that if I did make an change in .config
> file it would still take effect even if I forgot XEN_CONFIG_EXPERT.
> 
> Otherwise it would keep on making it
> 
> CONFIG_TMEM=y
> instead of the
> 
> # CONFIG_TMEM is not set.
> 
> which I wrote in the .config file.
> 
> From b9d173eb0e0e1274c784fde5580b119d6f7b4bdc Mon Sep 17 00:00:00 2001
> From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Date: Wed, 16 Mar 2016 03:28:39 -0400
> Subject: [PATCH] squash!     tmem: allow tmem to be disabled with Kconfig
> 
> ---
>  xen/common/Kconfig | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/xen/common/Kconfig b/xen/common/Kconfig
> index 39b0fa7..5bd8a84 100644
> --- a/xen/common/Kconfig
> +++ b/xen/common/Kconfig
> @@ -87,16 +87,21 @@ config LATE_HWDOM
>  
>  	  If unsure, say N.
>  
> -# Enables transactional memory support
> +# Enables transcendent memory support
>  config TMEM
>  	def_bool y
> -	prompt "Transactional Memory Support" if EXPERT = "y"
> +	bool "tmem"
> +	prompt "Transcendent Memory Support" if EXPERT = "y"
>  	---help---
>  	  Transcendent memory allows PV-aware guests to collaborate on memory
>  	  usage. Guests can 'swap' their memory to the hypervisor or have an
>  	  collective pool of memory shared across guests. The end result is
>  	  less memory usage by guests allowing higher guest density.
>  
> +	  You also have to enable it on the Xen commandline by using tmem=1
> +
> +	  If unsure, say Y.

But that will, afaict, disable tmem by default. Forgetting to set
XEN_CONFIG_EXPERT is, well, a mistake that results in a config
change just like the one you've observed.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-03-16  8:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15 20:18 [PATCH v2 0/3] Allow tmem to be disabled via Kconfig Doug Goldstein
2016-03-15 20:18 ` [PATCH v2 1/3] tmem: add tmem_disable() function Doug Goldstein
2016-03-15 20:18 ` [PATCH v2 2/3] tmem: drop direct usage of opt_tmem Doug Goldstein
2016-03-16  8:41   ` Jan Beulich
2016-03-15 20:18 ` [PATCH v2 3/3] tmem: allow tmem to be disabled with Kconfig Doug Goldstein
2016-03-16  7:35   ` Konrad Rzeszutek Wilk
2016-03-16  8:39     ` Jan Beulich [this message]
2016-03-16  8:55       ` Konrad Rzeszutek Wilk
2016-03-16  8:47   ` Jan Beulich
2016-03-16 12:54     ` Doug Goldstein
2016-03-16 13:34       ` Jan Beulich

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=56E929B602000078000DCF2E@prv-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=cardoe@cardoe.com \
    --cc=keir@xen.org \
    --cc=konrad.wilk@oracle.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.