On 05/28/2013 09:23 PM, liyangfnst wrote:
> Hey, the modify in the class LibvirtXML is necessary. Look at LibvirtXML.__init__(), LibvirtXML.xml comes from 
> self.dict_get('virsh').capabilities(). It's diffrent from VMCPUXML(it comes from self.dict_get('virsh').dumpxml(vm_name + " --update-device")).
> Some elements in them are same, but these elements in LibvirtXML are about HOST. In VMCPUXML are about GUEST.

Yes, you are right, we should treat host CPU and guest CPU objects
differently.  So LibvirtXML is not the right place, we do need new
class.  My mistake.