<tt><font size=2>John Ferlan <jferlan@redhat.com> wrote on 07/10/2017
06:41:34 AM:<br><br>> From: John Ferlan <jferlan@redhat.com></font></tt><br><tt><font size=2>> To: Scott Garfinkle <seg@us.ibm.com>, libvir-list@redhat.com</font></tt><br><tt><font size=2>> Date: 07/10/2017 06:41 AM</font></tt><br><tt><font size=2>> Subject: Re: [libvirt] [PATCH] Use unsigned timeout
in <br>> cmdMigrateSetMaxDowntime</font></tt><br><tt><font size=2>> <br>> <br>> <br>> On 06/27/2017 11:19 AM, Scott Garfinkle wrote:<br>> > While looking to implement a migrate-getmaxdowntime command (coming),<br>> > I noticed that the setmaxdowntime is incorrectly looking at its<br>> > parameter as a signed longlong. Not sure how that got past gcc,
but<br>> > here's a simple patch to make the command line parsing and the
parameter to<br>> > the worker functions all have the correct (unsigned) type.<br>> > <br>> > Signed-off-by: Scott Garfinkle <seg@us.ibm.com><br>> > ---<br>> >  tools/virsh-domain.c | 4 ++--<br>> >  1 file changed, 2 insertions(+), 2 deletions(-)<br>> > <br>> <br>> "For some commands" allowing a -1 provides a mechanism to
set an almost<br>> infinite time without having to type such a large value.  Still
in this<br>> case since, the "downtime < 1" check immediately follows
it seems that<br>> wouldn't be the case here!<br>Yes, and maybe removing that check would have been a better alternative?
Still, thanks.</font></tt><br><tt><font size=2> <br>> Looking at QEMU code briefly - I do note the QEMU set downtime (and<br>> speed) commands that end up getting called are listed as "deprecated"
in<br>> favor of migrate-set-parameters (downtime-limit and max-bandwidth,
since<br>> QEMU 2.8).  So while you're at thinking about a getmaxdowntime
type<br>> functionality maybe you'd want to give that a go as well (of course<br>> you'd have to add capabilities to detect when it was implemented using<br>> set-parameters)...<br></font></tt><br><tt><font size=2>Thanks for pointing that out. So, I have patches to
implement the get-maxdowntime, which would seem to be a separate but related
effort. Being a newcomer to the code, I'll what are probably obvious questions:
is the concern that qemu will eventually just stop providing that interface?
Or, is there something inherently useful about changing the set-* commands?
Otherwise, I'm not sure what the value to the code is of changing the already-working
set commands.</font></tt><br><br><tt><font size=2>regards, Scott Garfinkle</font></tt><BR>