On Thu, 5 Dec 2019 12:53:50 +0100 Cornelia Huck <coh...@redhat.com> wrote:
> The Posix implementation of guest-set-time invokes hwclock to > set/retrieve the time to/from the hardware clock. If hwclock > is not available, the user is currently informed that "hwclock > failed to set hardware clock to system time", which is quite > misleading. This may happen e.g. on s390x, which has a different > timekeeping concept anyway. > > Let's check for the availability of the hwclock command and > return QERR_UNSUPPORTED for guest-set-time if it is not available. > > Reviewed-by: Laszlo Ersek <ler...@redhat.com> > Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> > Reviewed-by: Michael Roth <mdr...@linux.vnet.ibm.com> > Signed-off-by: Cornelia Huck <coh...@redhat.com> > --- > > v2->v3: > - added 'static' keyword to hwclock_path > > Not sure what tree this is going through; if there's no better place, > I can also take this through the s390 tree. > > --- > qga/commands-posix.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) Queued to s390-next.