Re: [PATCH 10/10] KVM: x86: Fix KVM clock precision in __get_kvmclock()

2024-04-19 Thread Paul Durrant
On 18/04/2024 20:34, David Woodhouse wrote: From: David Woodhouse When in 'master clock mode' (i.e. when host and guest TSCs are behaving sanely and in sync), the KVM clock is defined in terms of the guest TSC. When TSC scaling is used, calculating the KVM clock directly from *host* TSC cycles

[PATCH 10/10] KVM: x86: Fix KVM clock precision in __get_kvmclock()

2024-04-18 Thread David Woodhouse
From: David Woodhouse When in 'master clock mode' (i.e. when host and guest TSCs are behaving sanely and in sync), the KVM clock is defined in terms of the guest TSC. When TSC scaling is used, calculating the KVM clock directly from *host* TSC cycles leads to a systemic drift from the values cal