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

From: Yosry Ahmed
Date: Thu Oct 09 2025 - 19:19:32 EST


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@xxxxxxxxx> wrote:
> >
> > From: Yosry Ahmed <yosryahmed@xxxxxxxxxx>
> >
> > 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@xxxxxxxxx>
> > ---
> > ...
> > + /* 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.