On Tue, Sep 23, 2025 at 09:48:07AM +0530, Nikunj A. Dadhania wrote:
>
>
> On 9/20/2025 3:36 AM, Tom Lendacky wrote:
> > On 9/18/25 05:27, Naveen N Rao (AMD) wrote:
<snip>
> >
> > And does KVM_SET_TSC_KHZ have to be called if "tsc-frequency" wasn't set?
> No, this is not required. This patch has changed a bit from my original
> version, we should have something like below:
>
> if (is_sev_feature_set(sev_common, SVM_SEV_FEAT_SECURE_TSC) &&
> sev_snp_guest->stsc_khz) {
> ...
> }
Right, I suppose I relied on KVM using the default TSC frequency if the
VMM does KVM_SET_TSC_KHZ with a TSC frequency of zero, which is totally
unnecessary. I will update this.
Thanks,
Naveen