Bug 213379

Summary: The actived affinity of vcpu is not available when the domain is created next time
Product: Red Hat Enterprise Linux 5 Reporter: mizushima.kazuk <mizushima.kazuk>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: clalance, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-22 13:51:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mizushima.kazuk@jp.fujitsu.com 2006-11-01 08:00:30 UTC
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):
 libvirt-0.1.7-2.src.rpm
  Version     : 0.1.7
  Release     : 2

How reproducible:
 everytime

Steps to Reproduce:
 1.Start domain
   #virsh create /tmp/vm.xml
 2.Modify vcpu affinity
   #virsh vcpupin 1 0 0
 3.Dump xml
   #virsh dumpxml > /tmp/vm1.xml
 4.Stop domain
   #virsh shutdown vm
 5.Start domain
   #virsh create /tmp/vm1.xml

Actual results:
 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.

Expected results:
 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. 

Additional info:
 The XML file which I used is attached.

Comment 1 RHEL Program Management 2006-11-20 17:01:09 UTC
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
inclusion.

Comment 3 Daniel Veillard 2006-11-22 13:51:56 UTC
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
    http://libvirt.org/bugs.html

Daniel