]> xenbits.xensource.com Git - libvirt.git/commit
conf: Initialize the pinning policy for vcpus
authorOsier Yang <jyang@redhat.com>
Fri, 12 Oct 2012 09:50:45 +0000 (17:50 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 15 Oct 2012 04:14:22 +0000 (12:14 +0800)
commit10f8a45deb0f057a70a0d49794d3a3d19d17dceb
tree8b299be390ceae1ecec5704685972ee5d2c0d089
parent60b176c3d0f0d5037acfa5e27c7753f657833a0b
conf: Initialize the pinning policy for vcpus

Document for <vcpu>'s "cpuset" says:

Since 0.4.4, this element can contain an optional cpuset attribute,
which is a comma-separated list of physical CPU numbers that virtual
CPUs can be pinned to.

However, it's not the truth, libvirt actually pins the domain
process to the specified pCPUs by "cpuset" of <vcpu>. And the
vcpu thread are pinned to all available pCPUs if no <vcpupin>
is specified for it.

This patch is to implement the codes to inherit <vcpu>'s "cpuset" for
vcpu that doesn't have <vcpupin> specified, and <vcpupin>
for these vcpu will be ignored when formating. Underlying
driver implementation will make sure the vcpu thread pinned
to correct pCPUs.
src/conf/domain_conf.c