Description of problem:
The affinity of vcpu is not available after creating a VM based on the
XML file which dumped from a VM with actived affinity.
Version-Release number of selected component (if applicable):
Version : 0.1.7
Release : 2
Steps to Reproduce:
#virsh create /tmp/vm.xml
2.Modify vcpu affinity
#virsh vcpupin 1 0 0
#virsh dumpxml > /tmp/vm1.xml
#virsh shutdown vm
#virsh create /tmp/vm1.xml
The affinity of vcpu is not available after createing a VM with the
XML file, which was made by "virsh dumpxml" with actived affinity of vcpu.
The affinity of vcpu is available after createing a VM with the XML file,
which was make by "virsh dumpxml" with actived affinity of vcpu.
It is thought that it is necessary to succeed to the setting of affinity
because affinity to vcpu can be set with virsh.
The XML file which I used is attached.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
CPU affinity is actually a result of a policy based on a given context and
not a property of the domain itself. The XML dumps are really pure domain data
and it doesn't sound clean to add those policy informations in the dump itself.
The libvirt API still allow to get and set back those settings, so this should
not block saving and restoring the affinity when saving and restoring a domain.
So declined, further discussions on the tpic should occur upstream in the
libvirt list, see