[libvirt-users] How to lookup the driver instance through virConnectPtr pointer

Eric Blake eblake at redhat.com
Thu Nov 22 13:36:42 UTC 2012

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 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: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121122/58d6f724/attachment.sig>

More information about the libvirt-users mailing list