From: Jason Gunthorpe Date: Tue, 31 Oct 2017 20:28:09 +0000 (-0600) Subject: kvm: Return -ENODEV from update_persistent_clock X-Git-Tag: v4.14-rc8~8^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=008755209ce1ae86c0f562a44810b57d9ea31a71;p=platform%2Fkernel%2Flinux-rpi.git kvm: Return -ENODEV from update_persistent_clock kvm does not support setting the RTC, so the correct result is -ENODEV. Returning -1 will cause sync_cmos_clock to keep trying to set the RTC every second. Signed-off-by: Jason Gunthorpe Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c index d889676..5b609e28 100644 --- a/arch/x86/kernel/kvmclock.c +++ b/arch/x86/kernel/kvmclock.c @@ -79,7 +79,7 @@ static void kvm_get_wallclock(struct timespec *now) static int kvm_set_wallclock(const struct timespec *now) { - return -1; + return -ENODEV; } static u64 kvm_clock_read(void)