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(a)redhat.com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org