Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)