Commit 00875520 authored by Jason Gunthorpe's avatar Jason Gunthorpe Committed by Paolo Bonzini

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: default avatarJason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent cc9085b6
...@@ -79,7 +79,7 @@ static void kvm_get_wallclock(struct timespec *now) ...@@ -79,7 +79,7 @@ static void kvm_get_wallclock(struct timespec *now)
static int kvm_set_wallclock(const struct timespec *now) static int kvm_set_wallclock(const struct timespec *now)
{ {
return -1; return -ENODEV;
} }
static u64 kvm_clock_read(void) static u64 kvm_clock_read(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment