Mailing List Archive

Changing (soft) VCPU affinity while VM is running
Hi all,

I've seen that "VCPUs-params:mask=......" does not
force a running VM's VCPU to relocate on another PCPU.

It is rather required to power-cycle the VM in order the above setting to
take effect.

My questions are:
a) Does Xen-Api expose a configuration setting for setting "soft-affinity"
(Xen v4.5)? Does it have an effect is VM is already running? Keep in mind
that I use xenserver/buildroot.

b) Is there any way (via Xen-Api) that I could force the VCPU of a running
VM to be pinned on a different PCPU ?

Regarding a), it seems that this is already possible via 'xl':
http://wiki.xen.org/wiki/Tuning_Xen_for_Performance#vCPU_Soft_Affinity_for_guests


Thank you