]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Ignore vcpupin for not onlined vcpus when parsing
authorOsier Yang <jyang@redhat.com>
Fri, 12 Oct 2012 13:52:07 +0000 (21:52 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 15 Oct 2012 04:13:57 +0000 (12:13 +0800)
commit60b176c3d0f0d5037acfa5e27c7753f657833a0b
tree902f53f704ccd7f5952575e904b7e68574c2405c
parentf108944ae0a88866a0d0b70bc42fb6724e5a3782
conf: Ignore vcpupin for not onlined vcpus when parsing

Setting pinning policy for vcpu which exceeds current vcpus number
just makes no sense, however, it could cause various problems, E.g.

<vcpu current='1'>4</vcpu>
<cputune>
  <vcpupin vcpuid='3' cpuset='4'/>
</cputune>

% virsh start linux
error: Failed to start domain linux
error: cannot set CPU affinity on process 32534: No such process

We must have some odd codes underlying which produces the
"on process 32534", but the point is why we not to prevent
earlier when parsing? Note that this is only one of the
problem it could cause.

This patch is to ignore the <vcpupin> for not onlined vcpus.
src/conf/domain_conf.c