qemu/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 qga-win: install service with --retry-path set by default 2018-10-31 09:04:20 -05:00
vss-win32 Clean up ill-advised or unusual header guards 2019-05-13 08:58:55 +02:00
Makefile.objs qga: linux: report disk serial number 2018-10-31 09:04:20 -05:00
channel-posix.c socket: Add backlog parameter to socket_listen 2019-09-03 23:24:42 +02:00
channel-win32.c qga-win: report specific error when failing to open channel 2018-10-31 09:04:20 -05:00
channel.h qga: add systemd socket activation support 2017-03-06 00:54:18 -06:00
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 glib: bump min required glib library version to 2.40 2018-06-29 12:22:28 +01:00
guest-agent-command-state.c qga: use local path for local headers 2018-06-01 19:20:38 +03:00
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
qapi-schema.json qga: update docs with systemd suspend support info 2019-03-18 10:24:20 -05:00
service-win32.c qga: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
service-win32.h qga-win: changing --retry-path option behavior 2018-10-31 09:04:20 -05:00
vss-win32.c qga-win: add support for qmp_guest_fsfreeze_freeze_list 2018-10-30 16:48:49 -05:00
vss-win32.h qga-win: add support for qmp_guest_fsfreeze_freeze_list 2018-10-30 16:48:49 -05:00