All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@amd.com>
To: "Huang2, Wei" <Wei.Huang2@amd.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: "xm vcpu-pin" error
Date: Wed, 9 Jul 2008 09:01:44 +0200	[thread overview]
Message-ID: <48746258.6060709@amd.com> (raw)
In-Reply-To: <85CE8AA0A115F64E8267A90E4535A9748ABFF7@sausexmb5.amd.com>

Huang2, Wei wrote:
> I saw a warning message when using "xm vcpu-pin" command on latest 
> xen-unstable tree.
>  
> ========
> # xm vcpu-pin 0 0 0
> Error: Cannot pin vcpu: 0 to cpu: [0] - list assignment index out of range
> Usage: xm vcpu-pin <Domain> <VCPU|all> <CPUs|all>
>  
> Set which CPUs a VCPU can use.
> ========
I have seen this before, this issue is on my list. The problem is only 
occurring on Dom0 repinning. After having done the actual 
xc.vcpu_setaffinity call in XendDomain.py:1426, xend wants to set an 
entry in the Python array: cpus[v] = cpumap. This array has not been 
properly allocated for Dom0, thus forcing an assignment to an empty 
list. This is more or less cosmetic as long as you only pin one VCPU, 
but pinning all (e.g. xm vcpu-pin 0 all 4-7) will stop after the first 
VCPU, so you have to use some kind of shell-for-loop workaround _and_ 
ignore the error message. I haven't found a proper way to fix this yet.

Regards,
Andre.


-- 
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 277-84917
----to satisfy European Law for business letters:
AMD Saxony Limited Liability Company & Co. KG,
Wilschdorfer Landstr. 101, 01109 Dresden, Germany
Register Court Dresden: HRA 4896, General Partner authorized
to represent: AMD Saxony LLC (Wilmington, Delaware, US)
General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy

      parent reply	other threads:[~2008-07-09  7:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-08 20:28 "xm vcpu-pin" error Huang2, Wei
2008-07-09  0:34 ` Masaki Kanno
2008-07-09  7:01 ` Andre Przywara [this message]

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=48746258.6060709@amd.com \
    --to=andre.przywara@amd.com \
    --cc=Wei.Huang2@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.