[libvirt] how to adjust the value passed by xml dynamicly
Eric Blake
eblake at redhat.com
Fri Feb 7 12:59:32 UTC 2014
On 02/07/2014 01:42 AM, Michal Privoznik wrote:
>> <filterref filter='hcount'>
>> <parameter name='HC' value='16'/>
>> <parameter name='HC' value='20'/>
>> </filterref>
>> i do not want to restart or interrupt the running state of vms(via api,
>> not command line tools).
If you can make the change using the virsh command line tool, then you
can make the same change using API (since virsh is just a shell wrapper
around the API).
>
> For a runtime change, maybe you can use virDomainUpdateDeviceFlags() but
> I haven't try if it works with <filterref/>.
I see 'virsh nwfilter-edit' as a way to edit a nwfilter definition; but
I'm not familiar enough with nwfilter to know if live edits of the
hcount filterref will affect a live domain definition. It seems like it
should be doable technically, although it may require someone to write a
patch.
--
Eric Blake eblake 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: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140207/334fc328/attachment-0001.sig>
More information about the libvir-list
mailing list