]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Override TSC_STABLE flag for Xen PV clocks in kvm_guest_time_update()
authorSean Christopherson <seanjc@google.com>
Sat, 1 Feb 2025 01:38:27 +0000 (17:38 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 18:45:55 +0000 (10:45 -0800)
commit1b3c38050b5cc07f6873f244f845fb6c8549ce85
treeac8a9090b64720f97d21118b5e0c72a09cd8a71f
parent847d68abf10c7dc930551318ea41ec96144b8fd6
KVM: x86: Override TSC_STABLE flag for Xen PV clocks in kvm_guest_time_update()

When updating PV clocks, handle the Xen-specific UNSTABLE_TSC override in
the main kvm_guest_time_update() by simply clearing PVCLOCK_TSC_STABLE_BIT
in the flags of the reference pvclock structure.  Expand the comment to
(hopefully) make it obvious that Xen clocks need to be processed after all
clocks that care about the TSC_STABLE flag.

No functional change intended.

Cc: Paul Durrant <pdurrant@amazon.com>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Link: https://lore.kernel.org/r/20250201013827.680235-12-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c