[Libvir] [PATCH] BZ#251641: Allow to change the cpu pinning for inactive domain

Saori Fukuta fukuta.saori at jp.fujitsu.com
Mon Nov 26 02:12:29 UTC 2007


I want to change the cpu pinning for inactive domain on RHEL-5.1.
So, I just add the xenXMDomainPinVcpu to xm_internal.c.
We will be allowed to change "cpus" parameter in configuration file
with "vcpupin" command by this patch, like "setmem" or "setvcpus".

There is 2 things to note:
  - This is an effective feature for inactive domain with
    Xen3.0.3 (less than 3 of xendConfigVersion).
  - On the above environment, the number which specified as 
    <vcpu> is ignored, because the virtual CPUs is not present 
    when domain is shut off. So, when executing "vcpupin" command
    with this option
       # virsh vcpupin Guest 0 1
    "0"(vcpu) is ignored and "1"(cpulist) is set to configuration file
    as "cpus".
       # cat /etc/xen/Guest | grep cpus
       cpus = "1"

Saori Fukuta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_vcpupin.patch
Type: application/octet-stream
Size: 3967 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071126/06f00a08/attachment-0001.obj>

More information about the libvir-list mailing list