All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Zhigang Wang <zhigang.x.wang@oracle.com>,
	wei.liu2@citrix.com, ian.campbell@citrix.com,
	ian.jackson@eu.citrix.com
Cc: xen-devel@lists.xenproject.org
Subject: Re: [PATCH] set pv guest default video_memkb to 0
Date: Wed, 19 Nov 2014 16:08:46 -0500	[thread overview]
Message-ID: <20141119210845.GF20440@laptop.dumpdata.com> (raw)
In-Reply-To: <1416344228-24164-1-git-send-email-zhigang.x.wang@oracle.com>

On Tue, Nov 18, 2014 at 03:57:08PM -0500, Zhigang Wang wrote:
> Before this patch, pv guest video_memkb is -1, which is an invalid value.
> And it will cause the xenstore 'memory/targe' calculation wrong:
> 
>     memory/target = info->target_memkb - info->video_memkb

CC-ing the maintainers.

Is this an regression as compared to Xen 4.4 or is this also in Xen 4.4?

Thanks.

> 
> Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
> ---
>  tools/libxl/libxl_create.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c
> index b1ff5ae..1198225 100644
> --- a/tools/libxl/libxl_create.c
> +++ b/tools/libxl/libxl_create.c
> @@ -357,6 +357,8 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,
>          break;
>      case LIBXL_DOMAIN_TYPE_PV:
>          libxl_defbool_setdefault(&b_info->u.pv.e820_host, false);
> +        if (b_info->video_memkb == LIBXL_MEMKB_DEFAULT)
> +            b_info->video_memkb = 0;
>          if (b_info->shadow_memkb == LIBXL_MEMKB_DEFAULT)
>              b_info->shadow_memkb = 0;
>          if (b_info->u.pv.slack_memkb == LIBXL_MEMKB_DEFAULT)
> -- 
> 1.8.3.1
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2014-11-19 21:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 22:17 xl mem-max error Zhigang Wang
2014-11-07 11:05 ` Wei Liu
2014-11-07 14:21   ` Zhigang Wang
2014-11-10 12:37     ` Wei Liu
2014-11-10 12:44       ` Ian Campbell
2014-11-10 15:29         ` Zhigang Wang
2014-11-10 15:30           ` Ian Campbell
2014-11-10 15:38             ` Zhigang Wang
2014-11-12 12:03               ` Ian Campbell
2014-11-17 20:03                 ` Zhigang Wang
2014-11-18  9:26                   ` Ian Campbell
2014-11-18 20:57                     ` [PATCH] set pv guest default video_memkb to 0 Zhigang Wang
2014-11-19 21:08                       ` Konrad Rzeszutek Wilk [this message]
2014-11-19 21:24                         ` Wei Liu
2014-11-20 15:29                           ` Ian Campbell
2014-11-20 15:48                             ` Wei Liu
2014-11-20 19:44                               ` Konrad Rzeszutek Wilk
2014-11-28 12:12                                 ` Ian Campbell
2014-11-20 15:29                       ` Ian Campbell

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=20141119210845.GF20440@laptop.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=zhigang.x.wang@oracle.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.