Re: [PATCH] KVM: x86: Compute the max guest TSC frequency from the current tsc_khz

From: Sean Christopherson

Date: Fri Nov 13 2026 - 17:05:27 EST


On Sat, 24 Oct 2026 13:45:25 -0400, Sasha Levin wrote:
> KVM computes the highest frequency that KVM_SET_TSC_KHZ accepts once,
> during vendor init, from the tsc_khz of the time. When KVM is built in,
> that runs before tsc_refine_calibration_work() refines tsc_khz, about a
> second later. If refinement raises tsc_khz, the cap stays below what the
> maximum scaling ratio gives for the refined frequency, and
> KVM_SET_TSC_KHZ rejects frequencies that set_tsc_khz() would accept, as
> set_tsc_khz() computes the ratio from the current tsc_khz.
>
> [...]

Applied to kvm-x86 misc, thanks!

[1/1] KVM: x86: Compute the max guest TSC frequency from the current tsc_khz
https://github.com/kvm-x86/linux/commit/87ea335ed2bc

--
https://github.com/kvm-x86/linux/tree/next