[libvirt] [PATCHv4 5/6] Add virDomain{S, G}etInterfaceParameters support to qemu driver

Eric Blake eblake at redhat.com
Sat Dec 31 21:12:53 UTC 2011


On 12/29/2011 12:33 AM, Hu Tao wrote:
> * src/qemu/qemu_driver.c: implement the qemu driver support
> ---
>  src/qemu/qemu_driver.c |  353 ++++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 353 insertions(+), 0 deletions(-)

> +        if (STREQ(param->field, VIR_DOMAIN_BANDWIDTH_IN_AVERAGE)) {
> +            if (param->type != VIR_TYPED_PARAM_UINT) {
> +                qemuReportError(VIR_ERR_INVALID_ARG, "%s",
> +                                _("invalid type for bandwidth average tunable, expected a 'unsigned int'"));

s/a 'unsigned int'/an 'unsigned int'/
Also, these are long lines.

> +    /* average is mandatory, peak and burst is optional. So if no

s/peak and burst is/peak and burst are/

> +     * average is given, we free inbound/outbound here which causes
> +     * inbound/outbound won't be set. */

s/won't be/to not be/

> +        /* virNetDevBandwidthSet() will clear any previous value of
> +         * bandwidth parameters, so merge with old bandwidth parameters
> +         * here to prevent them from losing. */

s/from losing/from being lost/

-- 
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: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111231/fc0cb662/attachment-0001.sig>


More information about the libvir-list mailing list