]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86: Avoid periodic KVM clock updates in master clock mode
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 28 Apr 2024 13:14:22 +0000 (14:14 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 22 May 2024 00:05:41 +0000 (17:05 -0700)
commit6e8be39976f93fa2830eea13847fe69b02ee2f15
tree3f3137e7a1392c44ab4a80863ee518cccc1356e5
parente3105770a46661e5dc8db4f3afb801a1bc6d9eb2
KVM: x86: Avoid periodic KVM clock updates in master clock mode

When the KVM clock is in master clock mode, updating the KVM clock is
pointless. Let the periodic work 'expire', and start it running again
from kvm_end_pvclock_update() if the master clock mode is ever turned
off again.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kvm/x86.c