On 11/22/2012 02:34 AM, Dennis Chen wrote: >> Furthermore, if your domain is already running, then you can hotplug the >> tuning via the virDomainGetSchedulerParametersFlags() and >> virDomainSetSchedulerParametersFlags() API, with parameter names such as >> VIR_DOMAIN_SCEDULER_VCPU_PERIOD which maps back to the<period> >> sub-element of the<cputune> domain XML. These APIs are already exposed >> via the 'virsh schedinfo' command. >> > > Hi Eric, > > Those APIs are really the one I needed, thanks very much for the help. > After a rough test, it works! > > though, I can't find the VIR_DOMAIN_SCEDULER_VCPU_PERIOD macro in the > libvirt source code... It's in include/libvirt/libvirt.h.in, which gets installed as <libvirt.h> for application use. -- Eric Blake eblake@xxxxxxxxxx +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users