Re: [PATCH v1 1/2] qemu-timer: gracefully handle the end of time

2020-07-28 Thread Paolo Bonzini
On 28/07/20 18:08, Alex Bennée wrote: > > Paolo Bonzini writes: > >> On 28/07/20 16:10, Alex Bennée wrote: >>> +/* >>> + * Check to see if we have run out of time. Most of our time >>> + * sources are nanoseconds since epoch (some time around the fall >>> + * of Babylon 5, the st

Re: [PATCH v1 1/2] qemu-timer: gracefully handle the end of time

2020-07-28 Thread Alex Bennée
Paolo Bonzini writes: > On 28/07/20 16:10, Alex Bennée wrote: >> +/* >> + * Check to see if we have run out of time. Most of our time >> + * sources are nanoseconds since epoch (some time around the fall >> + * of Babylon 5, the start of the Enterprises five year mission >> +

Re: [PATCH v1 1/2] qemu-timer: gracefully handle the end of time

2020-07-28 Thread Paolo Bonzini
On 28/07/20 16:10, Alex Bennée wrote: > +/* > + * Check to see if we have run out of time. Most of our time > + * sources are nanoseconds since epoch (some time around the fall > + * of Babylon 5, the start of the Enterprises five year mission > + * and just before the arrival o

[PATCH v1 1/2] qemu-timer: gracefully handle the end of time

2020-07-28 Thread Alex Bennée
The previous behaviour was rather user hostile as timers set for INT64_MAX would continually re-arm leaving the system locked in a loop and the console unavailable. With this patch we detect the situation and gracefully suspend the machine. NB: we need a proper fix before the 23rd century. Signed