Re: [PATCH 04/12] KVM: selftests: Extend vmx_nested_tsc_scaling_test to cover SVM

Yosry Ahmed
2025-10-09T23:19:18Z

On Thu, Oct 09, 2025 at 03:51:13PM -0700, Jim Mattson wrote:
> On Wed, Oct 1, 2025 at 8:03 AM Yosry Ahmed <yosry.ahmed@linux.dev> wrote:
> >
> > From: Yosry Ahmed <yosryahmed@google.com>
> >
> > Add SVM L1 code to run the nested guest, and allow the test to run with
> > SVM as well as VMX.
> >
> > Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
> > ---
> > ...
> > + /* enable TSC scaling for L2 */
> > + wrmsr(MSR_AMD64_TSC_RATIO, (L2_SCALE_FACTOR << 32) | 1);
>
> Why set bit 0 here?

Brainfart. Will fix in the next version, thanks.