kvm: Return -ENODEV from update_persistent_clock
authorJason Gunthorpe <jgg@ziepe.ca>
Tue, 31 Oct 2017 20:28:09 +0000 (14:28 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Nov 2017 17:23:18 +0000 (18:23 +0100)
commit008755209ce1ae86c0f562a44810b57d9ea31a71
treedc6c407efacaa82779e14863d333bd1b079972bf
parentcc9085b6875323fd0c935ee7176583bb572821ee
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 <jgg@ziepe.ca>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvmclock.c