Skip to contentSkip to conversation

xl: introduce specific VCPU to PCPU mapping in config file

PATCH Superseded Dario Faggioli 2 participants 4 messages May 14, 2012 – May 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 xl: introduce specific VCPU to PCPU mapping in config file

xm supports the following syntax (in the config file) for specific VCPU to PCPU mapping:

cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3

Allow for the same in xl.

docs/man/xl.cfg.pod.5 +19 -7
@@ -108,9 +108,25 @@ created online and the remainder will be
 =item B<cpus="CPU-LIST">
 
 List of which cpus the guest is allowed to use. Default behavior is
-`all cpus`. A list of cpus may be specified as follows: `cpus="0-3,5,^1"`
-(all vcpus will run on cpus 0,2,3,5), or `cpus=["2", "3"]` (all vcpus
-will run on cpus 2 and 3).
+`all cpus`. A C<CPU-LIST> may be specified as follows:
+
+=over 4
+
+=item "all"
+
+To allow all the vcpus of the guest to run on all the cpus on the host.
+
+=item "0-3,5,^1"
+
+To allow all the vcpus of the guest to run on cpus 0,2,3,5.
+
+=item ["2", "3"] (or [2, 3])
+
+To ask for specific vcpu mapping. That means (in this example), vcpu #0
+of the guest will run on cpu #2 of the host and vcpu #1 of the guest will
+run on cpu #3 of the host.
+
+=back
 
 =item B<cpu_weight=WEIGHT>
 
@@ -951,10 +967,6 @@ XXX
 
 XXX
 
-=item B<cpus=XXX>
-
-XXX
-
 =item B<maxmem=NUMBER>
 
 XXX
tools/libxl/xl_cmdimpl.c +44 -0

68 lines not on this page · raw message

#1 lore raw
Quoted 9 lines · Dario Faggioli

xm supports the following syntax (in the config file) for specific VCPU to PCPU mapping:

cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3

Allow for the same in xl.

Gah! Forgot to qpop and qpush it to have the changelog (to which I added some more information, as agreed with Ian C) refreshed ... Sorry for the noise, and, please, consider the other posting I've just sent!

Thanks and Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 6 lines · Dario Faggioli
Quoted 5 lines · Dario Faggioli

xm supports the following syntax (in the config file) for specific VCPU to PCPU mapping:

cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3

Quoted 7 lines
Quoted 4 lines

Allow for the same in xl.

Gah! Forgot to qpop and qpush it to have the changelog (to which I added some more information, as agreed with Ian C) refreshed ... Sorry for the noise, and, please, consider the other posting I've just sent!

Specifically the second version of v3 with message-id:
<3d90429f3ad323525332.1337016642@Solace> is the one we want, right?

Ian.

#3 lore raw
Quoted 9 lines · Ian Campbell
Quoted 8 lines · Dario Faggioli
Quoted 7 lines · Dario Faggioli

xm supports the following syntax (in the config file) for specific VCPU to PCPU mapping:

cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3

Allow for the same in xl.

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Gah! Forgot to qpop and qpush it to have the changelog (to which I added some more information, as agreed with Ian C) refreshed ... Sorry for the noise, and, please, consider the other posting I've just sent!

Specifically the second version of v3 with message-id:
<3d90429f3ad323525332.1337016642@Solace> is the one we want, right?

Yep, the one with the longer changelog and that very msg-id. Sorry again for the confusion. :-(

Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel