xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Eric Shelton <eshelton@pobox.com>
Cc: xen-devel@lists.xenproject.org, wei.liu2@citrix.com,
	ian.jackson@eu.citrix.com, ian.campbell@citrix.com,
	stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH 1/1] libxl: set stub domain size based on VRAM size
Date: Fri, 10 Jul 2015 17:59:16 +0200	[thread overview]
Message-ID: <20150710155916.GB5645@type.lan> (raw)
In-Reply-To: <1436542562-1118-2-git-send-email-eshelton@pobox.com>

Eric Shelton, le Fri 10 Jul 2015 11:36:02 -0400, a écrit :
> Allocate additional memory to the stub domain for qemu-traditional if
> more than 4 MB is assigned to the video adapter to avoid out of memory
> condition for QEMU.
> 
> Signed-off-by: Eric Shelton <eshelton@pobox.com>

Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

> ---
>  tools/libxl/libxl_dm.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
> index 317a8eb..9a5a937 100644
> --- a/tools/libxl/libxl_dm.c
> +++ b/tools/libxl/libxl_dm.c
> @@ -1087,6 +1087,8 @@ void libxl__spawn_stub_dm(libxl__egc *egc, libxl__stub_dm_spawn_state *sdss)
>  
>      dm_config->b_info.max_vcpus = 1;
>      dm_config->b_info.max_memkb = 32 * 1024;
> +    if (guest_config->b_info.video_memkb > 4096)
> +        dm_config->b_info.max_memkb += guest_config->b_info.video_memkb - 4096;
>      dm_config->b_info.target_memkb = dm_config->b_info.max_memkb;
>  
>      dm_config->b_info.u.pv.features = "";
> -- 
> 2.1.0
> 

-- 
Samuel
Client: "This program has been successfully installed."
Vendeur (surpris): "Et où voyez-vous une erreur ?"
Client: "C'est << HAS BEEN >> !"

  parent reply	other threads:[~2015-07-10 15:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-10 15:36 [PATCH 0/1] libxl: set stub domain size based on VRAM size Eric Shelton
2015-07-10 15:36 ` [PATCH 1/1] " Eric Shelton
2015-07-10 15:48   ` Ian Jackson
2015-07-10 15:59   ` Samuel Thibault [this message]
2015-07-10 15:58 ` [PATCH 0/1] " Samuel Thibault

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=20150710155916.GB5645@type.lan \
    --to=samuel.thibault@ens-lyon.org \
    --cc=eshelton@pobox.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).