Re: [PATCH v10 06/25] tools/xenstore: add live update command to xenstore-control

2021-01-13 Thread Edwin Torok
On Wed, 2021-01-13 at 17:34 +0100, Jürgen Groß wrote: > On 06.01.21 15:42, Edwin Torok wrote: > > [...] > > > > I'd prefer it if there was a more asynchronous protocol available > > for > > live-update: > > * the live-update on its own queues up the live update request and > > returns a generation

Re: [PATCH v10 06/25] tools/xenstore: add live update command to xenstore-control

2021-01-13 Thread Jürgen Groß
On 06.01.21 15:42, Edwin Torok wrote: On Tue, 2020-12-15 at 17:35 +0100, Juergen Gross wrote: [...] +static int live_update_start(struct xs_handle *xsh, bool force, unsigned int to) +{ +    int len = 0; +    char *buf = NULL, *ret; +    time_t time_start; + +    if (asprintf(&ret, "%u", to) < 0

Re: [PATCH v10 06/25] tools/xenstore: add live update command to xenstore-control

2021-01-06 Thread Edwin Torok
On Tue, 2020-12-15 at 17:35 +0100, Juergen Gross wrote: > [...] > +static int live_update_start(struct xs_handle *xsh, bool force, > unsigned int to) > +{ > +    int len = 0; > +    char *buf = NULL, *ret; > +    time_t time_start; > + > +    if (asprintf(&ret, "%u", to) < 0) > +    return 1;

[PATCH v10 06/25] tools/xenstore: add live update command to xenstore-control

2020-12-15 Thread Juergen Gross
Add the "live-update" command to xenstore-control enabling updating xenstored to a new version in a running Xen system. With -c it is possible to pass a different command line to the new instance of xenstored. This will replace the command line used for the invocation of the just running xenstore