[libvirt] How to add custom tag to the libvirt xml file for a new feature of the VM

Eric Blake eblake at redhat.com
Wed Jun 6 11:46:56 UTC 2012


[re-adding the list]

On 06/05/2012 09:53 PM, Yashwanth K P wrote:

>>> I am working on libvirt development and I wanted to add a custom tag to
>>> the libvirt xml to add a new feature to the VM. I am having trouble
>>> getting started with this. It would be really helpful if you can help me
>>> get started with this and guide me on what part of the source code that
>>> has to be modified to achieve the goal.
>> It would help if we knew more information about what you wanted.
>>

> What I would like to do is that I want to add a new tag to the xml file
> which which when parsed should have an effect on the cpuset value of the
> vcpu tag. Thus starting the VM with a particular set of CPUs to run on.
> I am not sure on to implement this since I am new to development by
> making changes in the source code. It would be really helpful if u guide
> me to achive the goal.

This is already possible, via the 'cpuset' attribute of the top-level
<vcpu> element:
http://libvirt.org/formatdomain.html#elementsCPUAllocation

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120606/ea80ee64/attachment-0001.sig>


More information about the libvir-list mailing list