From: Ian Campbell <ian.campbell@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>,
Xen-devel <xen-devel@lists.xenproject.org>
Cc: Dario Faggioli <dario.faggioli@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH for-4.6 v2 1/3] xl: fix vNUMA vdistance parsing
Date: Sun, 16 Aug 2015 09:46:42 +0100 [thread overview]
Message-ID: <1439714802.3480.9.camel@citrix.com> (raw)
In-Reply-To: <1439480480-20939-2-git-send-email-wei.liu2@citrix.com>
On Thu, 2015-08-13 at 16:41 +0100, Wei Liu wrote:
> We should parse the output from splitting function, not the original
> string.
What is the previous incorrect behaviour in practice? It is useful to
say this so that when someone comes along and says I'm seeing strange
behaviour $FOO there is some chance of either remembering this or
spotting it in the commit message.
It would also inform my opinion as to whether/why this change is
correct.
>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
> ---
> tools/libxl/xl_cmdimpl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
> index 499a05c..078acd1 100644
> --- a/tools/libxl/xl_cmdimpl.c
> +++ b/tools/libxl/xl_cmdimpl.c
> @@ -1188,7 +1188,7 @@ static void parse_vnuma_config(const XLU_Config
> *config,
> len = libxl_string_list_length(&vdist);
>
> for (j = 0; j < len; j++) {
> - val = parse_ulong(value);
> + val = parse_ulong(vdist[j]);
> p->distances[j] = val;
> }
> libxl_string_list_dispose(&vdist);
next prev parent reply other threads:[~2015-08-16 8:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-13 15:41 [PATCH for-4.6 v2 0/3] More vNUMA fixes Wei Liu
2015-08-13 15:41 ` [PATCH for-4.6 v2 1/3] xl: fix vNUMA vdistance parsing Wei Liu
2015-08-16 8:46 ` Ian Campbell [this message]
2015-08-13 15:41 ` [PATCH for-4.6 v2 2/3] xl: error out if vNUMA specifies more vcpus than pcpus Wei Liu
2015-08-13 23:25 ` Dario Faggioli
2015-08-13 23:38 ` Wei Liu
2015-08-14 10:19 ` Dario Faggioli
2015-08-16 8:51 ` Ian Campbell
2015-08-17 18:42 ` Wei Liu
2015-08-13 15:41 ` [PATCH for-4.6 v2 3/3] libxc: fix vNUMA memory allocation Wei Liu
2015-08-16 8:47 ` Ian Campbell
2015-08-14 15:19 ` Empty memory nodes in VNUMA Boris Ostrovsky
2015-08-14 15:35 ` Wei Liu
2015-08-14 15:38 ` Boris Ostrovsky
2015-08-14 15:44 ` Wei Liu
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=1439714802.3480.9.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=dario.faggioli@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 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.