All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <juergen.gross@ts.fujitsu.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Andre Przywara <andre.przywara@amd.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH]: xl: fix broken cpupool-numa-split
Date: Fri, 28 Jan 2011 12:01:52 +0100	[thread overview]
Message-ID: <4D42A220.4030908@ts.fujitsu.com> (raw)
In-Reply-To: <AANLkTi=bM36G-+VMCQA6zvbXxdH_z-hdqX7kxRv1XBY5@mail.gmail.com>

On 01/28/11 11:53, George Dunlap wrote:
> On Fri, Jan 28, 2011 at 6:26 AM, Juergen Gross
> <juergen.gross@ts.fujitsu.com>  wrote:
>> On 01/27/11 22:36, Andre Przywara wrote:
>>>
>>> Hi,
>>>
>>> the implementation of xl cpupool-numa-split is broken. It basically
>>> deals with only one poolid, but there are two to consider: the one from
>>> the original root CPUpool, the other from the newly created one.
>>
>> Uhh, silly copy and paste error! I think it happened when I introduced
>> libxl_cpupool_cpuadd_node()...
>> The correction is much easier. The root poolid is always 0. See attached
>> patch.
>
> Re patch itself: Acked-by: George Dunlap<george.dunlap@citrix.com>
>
> Re the cpupool interface:
>
> Hang on; if the root poolid is always 0, why does xc_cpupool_create()
> interpret a poolid of 0 as "XEN_SYSCTL_CPUPOOL_PAR_ANY"?  Doesn't that
> mean that if you're trying to create a new cpupool from cpus in the
> root pool, that you might get cpus from other pools?

No. It just creates a cpupool. As cpupool 0 is always created by the
hypervisor, it can't be created via libxc. So specifying 0 as poolid
selects the next free id.

The cpus are allocated later.

>
> If not, what's the point of the "CPUPOOL_PAR_ANY" parsing?

Perhaps you just don't care which poolid you get?


Juergen

-- 
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

  reply	other threads:[~2011-01-28 11:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27 21:36 [PATCH]: xl: fix broken cpupool-numa-split Andre Przywara
2011-01-28  6:26 ` Juergen Gross
2011-01-28 10:53   ` George Dunlap
2011-01-28 11:01     ` Juergen Gross [this message]
2011-01-28 17:41     ` Ian Jackson
2011-01-29  0:35   ` [PATCH] xl: fix broken cpupool-numa-split (part 2) Andre Przywara
2011-01-31  6:56     ` Juergen Gross
2011-02-01 19:07       ` Ian Jackson

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=4D42A220.4030908@ts.fujitsu.com \
    --to=juergen.gross@ts.fujitsu.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=andre.przywara@amd.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.