From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1AB5576EA3 for ; Wed, 30 Sep 2026 17:38:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790789883; cv=none; b=bbAhEdRIO61SLYIBhtVYe8MpAVP8thB3i5qhOOuSrJ/MijFQHWl+h5JTlFX7F69FJDmmJnBl6M4DN6w8PkREF2qypYS+3cspLfniO04o+/fMvmipGqnVXi+FDRfQfgkX62ZX/njjpJfJOYoibopFWhWtoa6zfXROB7IuZmXRXhg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790789883; c=relaxed/simple; bh=3UL/O7JJtcbVlG+Lw38GP1NlGChJ2E5u5BgNXEqqqME=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=npDtXLVWyCsD69Qp4qLiOF6HGJsaa3BzwijezufvjvzCyTvawYmFUooWBpVwSzF+oVYFIj+q0iPwh0UVDFnO3AXPbTWtCiVJmPZxP2QO5yGclPri4J4ubJkJiK7ORSDJ4WctTw8MX3wiGaegDla4ZxgT8OHwUFbmuuokj/p7yLg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=hqcrkKb2; arc=none smtp.client-ip=209.85.214.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hqcrkKb2" Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2d6f80c76e6so48111095ad.3 for ; Wed, 30 Sep 2026 10:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1790789881; x=1791394681; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:reply-to:from:to:cc:subject:date:message-id :reply-to:content-type; bh=8uTYOk/MhFfjsdPif1vpatkjMmwikL+0Ht9vhlLQI1E=; b=hqcrkKb2GWl3iq/daL7JOrlD4PQyWybyJdNrq62a6F7gcAAKmYDFO3LCVsvXhe+aOy i1kr8GJcaah/pb7qGIbxjoFYu4Fnaegv8Vz3e86HFybvCG45A0g9HUh4SG9UYeBqUx1S C7qgdQeuwghI5NQjRZuSs15N8SvC+aS63zWagfu/jYUR73KogIQhaVphXawxeTyDVH1w epPOfKgOPZpb6Dr20eg9bCTuFv6e04Iefzx21vsZsh+I/v6uUqslzLcIQL0XZVIamDf3 1j7149bHGrpYT2m7ojLGvQ8yVLfi1QQ/A3r5JZXMaiZPwCND9t0nDWs6DdnxEWeI1Dib zrvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790789881; x=1791394681; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:reply-to:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=8uTYOk/MhFfjsdPif1vpatkjMmwikL+0Ht9vhlLQI1E=; b=durY5LOvU5XgvPQWXvhtiDkK1Vb5hjzLH6LF8owDQcn4nOEHw+yL+l/Fz11J7v+2Fz /fl//5K3ftRNXEc/qG0UnYS1KhJx5MB4IYJ6MyPCw2Bij8TRY8/mqT1PLlAJcLyUe8Xw 7dQ80ZxuEtejXm5EwmQWNgab4uw7BqeeMuSTfEeW7KY+54/0tHEw8vJ2hwvgTiPCTxfR S9vKxUPa8IzBvo4kUyQTezz8LGZpIwXizutFixlE+34+Wvgi+gytsdL3ee29rUDyzzOK Ud0F30h8jP35vbmcE1udubV/WYww1PXipielhn5s+i6SwtglqGporLVuIjI5yvZL1QYf 1a8Q== X-Forwarded-Encrypted: i=1; AKwUvBxe9AVKTa1x1BXKSQZsZrss+w/MPw0fp0liPtbocN4J+s1k8XfSjtQeCRtgIGaK+cUbg3kxrE0f75O0wO0=@vger.kernel.org X-Gm-Message-State: AFq9FYJfkmLp8Rt+3kCo7BVxibCGg+MP7y5LEOl/pwUDhoeW0T77SRjo 5HNyT01hLU4mbsoKaypuLz5grAPzQtYq6pNstuesJlYC169zcqKVpVXDjFgyQIQANO0xJgWTPaA ObjuUuA== X-Received: from plao21.prod.google.com ([2002:a17:903:3015:b0:2dd:a96a:60ac]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:f712:b0:2df:a392:276e with SMTP id d9443c01a7336-2e2e4a016cbmr19316765ad.49.1790789881110; Wed, 30 Sep 2026 10:38:01 -0700 (PDT) Reply-To: Sean Christopherson Date: Wed, 30 Sep 2026 10:36:32 -0700 In-Reply-To: <20260930173635.3362655-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260930173635.3362655-1-seanjc@google.com> X-Mailer: git-send-email 2.56.0.rc1.315.gc6ed9934b7-goog Message-ID: <20260930173635.3362655-19-seanjc@google.com> Subject: [PATCH v3 18/21] KVM: selftests: Test non-zero TSC offset on SVM in nested TSC scaling test From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Amirmohammad Eftekhar , Sashiko Bot Content-Type: text/plain; charset="UTF-8" Set L2's TSC offset for SVM as well as VMX in the nested TSC scaling test. Odds are good skipping SVM was pure oversight. Fixes: e6bcdd212238 ("KVM: selftests: Extend vmx_nested_tsc_scaling_test to cover SVM") Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/x86/nested_tsc_scaling_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/kvm/x86/nested_tsc_scaling_test.c b/tools/testing/selftests/kvm/x86/nested_tsc_scaling_test.c index 4cacd87f129b..571fc214c925 100644 --- a/tools/testing/selftests/kvm/x86/nested_tsc_scaling_test.c +++ b/tools/testing/selftests/kvm/x86/nested_tsc_scaling_test.c @@ -75,6 +75,7 @@ static void l1_svm_code(struct svm_test_data *svm) guest_check_tsc_freq(UCHECK_L1); generic_svm_setup(svm, l2_guest_code); + svm->vmcb->control.tsc_offset = TSC_OFFSET_L2; /* enable TSC scaling for L2 */ wrmsr(MSR_AMD64_TSC_RATIO, l2_multiplier); -- 2.56.0.rc1.315.gc6ed9934b7-goog