[libvirt] [PATCH 07/10] Qemu arbitrary monitor commands.

Eric Blake eblake at redhat.com
Wed Apr 21 17:50:23 UTC 2010


On 04/21/2010 10:01 AM, Chris Lalancette wrote:
> Implement the qemu driver's virDomainQemuMonitorCommand
> and hook it into the API entry point.
> 
>  
> +int qemuMonitorCommand(virDomainPtr domain, const char *cmd,
> +                       char **result, unsigned int flags ATTRIBUTE_UNUSED)
> +{
> +    struct qemud_driver *driver = domain->conn->privateData;
> +    virDomainObjPtr vm = NULL;
> +    int ret = -1;
> +    qemuDomainObjPrivatePtr priv;

virCheckFlags() to reject unknown flags, rather than ignoring it.

Other than this, it looks clean to me, so ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
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/libvir-list/attachments/20100421/b7f68df7/attachment-0001.sig>


More information about the libvir-list mailing list