Skip to content

Commit 0087552

Browse files
jgunthorpebonzini
authored andcommitted
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 <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent cc9085b commit 0087552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/kvmclock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static void kvm_get_wallclock(struct timespec *now)
7979

8080
static int kvm_set_wallclock(const struct timespec *now)
8181
{
82-
return -1;
82+
return -ENODEV;
8383
}
8484

8585
static u64 kvm_clock_read(void)

0 commit comments

Comments
 (0)