[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



[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 redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]