qemu-e2k/qga
Cornelia Huck 5c6096e565 qga: fence guest-set-time if hwclock not available
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 <lersek@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Message-Id: <20191205115350.18713-1-cohuck@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2019-12-14 10:25:50 +01:00
..
installer
vss-win32
channel-posix.c socket: Add backlog parameter to socket_listen 2019-09-03 23:24:42 +02:00
channel-win32.c
channel.h
commands-posix.c qga: fence guest-set-time if hwclock not available 2019-12-14 10:25:50 +01:00
commands-win32.c qga: Add "guest-get-memory-block-info" to blacklist 2019-11-04 08:50:54 -06:00
commands.c
guest-agent-command-state.c
guest-agent-core.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
main.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
Makefile.objs
qapi-schema.json
service-win32.c
service-win32.h
vss-win32.c
vss-win32.h