[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 5/8] tools/livepatch: Remove pointless retry loop
On Wed, Dec 14, 2016 at 07:51:57AM +0000, Ross Lagerwall wrote: > The default timeout in the hypervisor for a livepatch operation is 30 ms, > but xen-livepatch currently waits for up to 30 seconds for the operation > to complete. Instead, remove the retry loop and simply wait for 2 * 30 ms > for the operation to complete. The extra period is to account for the > time to actually start the operation. > > Furthermore, have xen-livepatch set the hypervisor timeout rather than > relying on the hypervisor default since the tool doesn't know how long > it will be. Use nanosleep rather than usleep since usleep has been > removed from POSIX.1-2008. > > Signed-off-by: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> But I would also like Korand's ack on this one. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |