提交 00875520 编写于 作者: J Jason Gunthorpe 提交者: 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: NJason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 cc9085b6
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册