Re: [PATCH v4 13/13] Remote protocol changes and implements virDomainSet/GetMemoryParameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 12 Oct 2010 19:27:05 +0200, Daniel Veillard <veillard@xxxxxxxxxx> wrote:
> On Fri, Oct 08, 2010 at 05:47:03PM +0530, Nikunj A. Dadhania wrote:
> > From: Nikunj A. Dadhania <nikunj@xxxxxxxxxxxxxxxxxx>
> > 
> > v4:
> > * prototype change: add unsigned int flags, regenerate files
> > 
> > v3:
> > * Squased all the remote driver changes to one single big patch and
> >   auto-generated is around 40%
> > * Implements domainSetMemoryParameters and domainGetMemoryParameters for remote
> >   driver
> > 	daemon/remote.c
> > 	src/remote/remote_driver.c
> > 
> > * Auto generate the files using rpcgen and helper scripts in daemon/ directory
> > 	src/remote/remote_protocol.x
> > 	daemon/remote_dispatch_args.h
> > 	daemon/remote_dispatch_prototypes.h
> > 	daemon/remote_dispatch_ret.h
> > 	daemon/remote_dispatch_table.h
> > 	src/remote/remote_protocol.c
> > 	src/remote/remote_protocol.h
> > 
> > Acked-by: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> > Signed-off-by: Nikunj A. Dadhania <nikunj@xxxxxxxxxxxxxxxxxx>
> [...]
> > +    nparams = args->params.params_len;
> > +    nparams = args->flags;
> 
>   obvious bug: flags = args->flags;
Oops :) - C&P

> 
> That reminds me that I didn't see flags being checked against 0 on the
> QEmu and LXC drivers, we should check them !
> 
I will take care of this.

> > +    if (nparams > REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX) {
> > +        remoteDispatchFormatError (rerr, "%s", _("nparams too large"));
> > +        return -1;
> 
>   I did a lot of reformating and code cleanups in the non-generated
>   files, to try to keep the source readable on a 80 columns editor.
>
Thanks,
 
>   With that done, I think I can ACK the whole serie, and pushed it, but
> there is still a number of small TODOs for which I would appreciate
> patches,
> 
>   thanks a lot !
> 
Thanks a lot to you and Daniel Berrange. Both of you have spend a lot of time
on reviewing and on top of that fixing the patches as well.

Regards,
Nikunj

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]