Re: [PATCH v15 10/13] tsc: Upgrade TSC clocksource rating

From: Nikunj A. Dadhania
Date: Fri Jan 03 2025 - 09:04:10 EST




On 1/3/2025 5:36 PM, Borislav Petkov wrote:
> On Fri, Jan 03, 2025 at 03:39:56PM +0530, Nikunj A. Dadhania wrote:
>> Right, let me limit this only to virtualized environments as part of
>> CONFIG_PARAVIRT.
>
> That's not what you do below - you check whether you're running as a guest.
>
> And that's not sufficient as I just said. I think the only somewhat reliable
> thing you can do is when you're running as a STSC guest.

This is for all guest running with TSC that is constant, non-stop and
stable[1] (and detailed response here [2]), STSC is one of them.

Thanks
Nikunj

1. https://lore.kernel.org/kvm/ZuR2t1QrBpPc1Sz2@xxxxxxxxxx/
2. https://lore.kernel.org/all/8c3cc8a5-1b85-48b3-9361-523f27fb312a@xxxxxxx/