aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2019-11-27 11:43:25 +0100
committerCornelia Huck <cohuck@redhat.com>2019-12-14 10:25:50 +0100
commit5c6096e5656d34f5414834e2e2104646294976fe (patch)
treea2074ffa2e47a353f385d079bf5c343ab7dea64e /plugins
parentbcf88d56efec4ffc153bbe98d11b689a5ebe1a91 (diff)
downloadqemu-5c6096e5656d34f5414834e2e2104646294976fe.zip
qemu-5c6096e5656d34f5414834e2e2104646294976fe.tar.gz
qemu-5c6096e5656d34f5414834e2e2104646294976fe.tar.bz2
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>
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions