From: Andres Lagar-Cavilla <andres@lagarcavilla.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Vincent Hanquez <Vincent.Hanquez@eu.citrix.com>
Subject: Re: [PATCH] libxenlight: implement libxl_set_memory_target
Date: Wed, 09 Dec 2009 15:47:17 -0500 [thread overview]
Message-ID: <4B200CD5.30807@lagarcavilla.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0912091249190.9654@kaball-desktop>
Stefano Stabellini wrote:
> On Tue, 8 Dec 2009, Andres Lagar-Cavilla wrote:
>
>> Hi,
>> couple of comments:
>> - PV domains without videoram won't be able to use this
>>
>
> PV domains just have videoram = 0.
>
But you abort libxl_set_memory_target if the videoram node is not found.
Which won't be for PVs with no videoram...
+ videoram_s = libxl_xs_read(ctx, XBT_NULL, libxl_sprintf(ctx,
"%s/memory/videoram", dompath));
+ if (!videoram_s)
+ return -1;
Andres
>
>> - Further, doesn't the PV domain build function need to use
>> target_memkb? (That's my read of what xend does at least)
>>
>
> Yes, you are right, I'll fix this.
>
>
>> - Finally, LIBXL_MAXMEM_CONSTANT looks like an "evil constant we should
>> avoid". Where did it come from?
>>
>
> I decided to introduce this constant after a discussion with developers
> of the memory management functions in xapi: after thorough testing they
> found that adding 1 MB to maxmem increases the robustness of the system.
>
> BTW the current value of the constant is wrong because it should be
> expressed in KB, I'll send a patch to fix this later today.
>
>
next prev parent reply other threads:[~2009-12-09 20:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20091208200031.4903B5980EB@homiemail-mx11.g.dreamhost.com>
2009-12-08 20:29 ` [PATCH] libxenlight: implement libxl_set_memory_target Andres Lagar-Cavilla
2009-12-09 13:19 ` Stefano Stabellini
2009-12-09 20:47 ` Andres Lagar-Cavilla [this message]
2009-12-10 13:37 ` Stefano Stabellini
2009-12-10 14:01 ` Andres Lagar-Cavilla
2009-12-10 14:41 ` Stefano Stabellini
2009-12-10 15:10 ` Andres Lagar-Cavilla
2009-12-08 18:23 Stefano Stabellini
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=4B200CD5.30807@lagarcavilla.com \
--to=andres@lagarcavilla.com \
--cc=Vincent.Hanquez@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--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.