Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp309012rdb; Thu, 1 Feb 2024 09:04:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYKDdNrgRublKyCmJ4F9tjVf2aSY/tDZsysHjk+SynIA6WOfTdFD1VRThOV3VA02u+fTNg X-Received: by 2002:a05:6e02:152b:b0:363:9c15:6e33 with SMTP id i11-20020a056e02152b00b003639c156e33mr5352105ilu.24.1706807092255; Thu, 01 Feb 2024 09:04:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706807092; cv=pass; d=google.com; s=arc-20160816; b=jOj9K0vzagXGu3kxu5ncs6+uf8spG12nA3n1WQBzvmhk76K3Fhu0oqe7r372jG+GnU zTonaHlvXgA7x9c84jRGwAhiSEJ5abHwlWFC2S4Ni8xwNkNltZaRtNSRZ9CYu80fBWEv 640sF/LN6wcMgRpVVCeVGIu2FAp0WmyoH0dZ+eGvzOQUEc5jpTNtuMlSEJAdhlmmEXn/ 6iqghPaWCzEpa1S3on2nuxAolpsmTU9KRsDMkUFrzH+nXx8A4M24Yi7rdmW/NVUy8k1O SX8PqwPkdcIXTNz9jCgYfmv1M6O+ZDyqN61ecvA73Nut973NxiX7cHx8JC2aP9uRw1zI qzRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=/x3jlCLNc7UiUHoyVg434LJ4SeDSaVulHM99QrXsAOg=; fh=FTWzMGO8667pxhhUaCQbs+lOVASFHuIjuwro/Cwzwbo=; b=lowrUQMPs3gGNCtDiDRnJ+IUQmGJ0SqafEMBoY2yTXqWatAKgSGoUEWbBGIfpWgeyG c1Bu+ZYitJfzo1BL8SwNH6ovBRo1548r/IBoWe9bo90uJ1oZtYgJPV4W1/z9jOYckl+G M8e0rtE19s4TExAWD0QwSbbU+nOqNQ8BW91RgnEddA/bGzZaVXllAKigCGU5OKg/mfYr kRXXB39OWedDtYDi5lUTYde9RkfYPHxSjfJ7pAC5JUshd3xjZHHlOhZINmfJEh6uX+Ls QAznZa/QioFuvAb237ZUXe3ml/mQOBobp+Qa4Tma5ripwthiBfQf0vJoVQNmtNEJr9MM MHGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=yaSfUf4q; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-48564-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCV9pETLEq0KQUg3JdDllysVklIgZKuVQwcNAI0nd/miQfG8boBud1FpEY9asmOMXI7LCP4csAeoHDuK2YDNt3IIdrB5G5pDtM2uNbLH4w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g4-20020a92c7c4000000b00363747cebf2si27592ilk.154.2024.02.01.09.04.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:04:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48564-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=yaSfUf4q; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-48564-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 68C0528D52C for ; Thu, 1 Feb 2024 17:00:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87B2A5A4FC; Thu, 1 Feb 2024 17:00:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="yaSfUf4q" Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (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 52AB85A4F3 for ; Thu, 1 Feb 2024 17:00:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706806821; cv=none; b=e/Z/zKIfeKY37A9oFUbtl72A8gfLaIjgA8PMRq+VswEkFmRDcl376G7cj7UpceuLg8KMxLZ+O0Sn7VIJBgcL4Po3+4m8oGmvOtuWlTi0O35nImzVhNsYfhRRMn1awkJTPOu7jb9LyQV2I1J5xs1GPXESLbq0ptKqv0nG56KiqKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706806821; c=relaxed/simple; bh=N4n3zRIvR+VTDaguBtwM3JkuHD6WLYuDJPmBPDcTpS4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=koMJTvFDgxN1Fttt7WOAjsErve46FKOVkprcJ0N+bvxpVJmk2NTiKC/+Li6hGInRA7byASTMmbkNxzeouLmaCRlvM9sNLZ5r4Z+7hxA6i40Sj1w96ABAF+7yy9jOAa/Bz6c7GhIfxdQ9m7R11j9YdjlsPZ42eBHg3Q31Dxkwy9I= 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=yaSfUf4q; arc=none smtp.client-ip=209.85.214.201 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 Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-1d8f0e4bd05so9572345ad.3 for ; Thu, 01 Feb 2024 09:00:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706806819; x=1707411619; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=/x3jlCLNc7UiUHoyVg434LJ4SeDSaVulHM99QrXsAOg=; b=yaSfUf4qjNdx+8mecKoY/fSIpRbXUcC2IWLwR+bfxg+bLTfXaQ71owfoew/ibncffw daiLgWckS6VUrYZrsNCMIzJNSMtGrsbjT1yie3bfkFGsg7yZ5c4VIqZ28lcigYR55y+X 48s/LJ5QPWua9VwbW9STTNjS6/pD6yDCh6KN2OL0BCUC+HsU8ColMgXUQzWMjKB75BcG hsn7tKjgBKrYtjupX47SXFqILMW7dN3p8reSLp8nfgHh2zwUCecvCIET3LrrMQfkBTnF GUrmIEtoMhWfBEEcUKjuIutSbAnGn5tJmVmB/HmPWO2m5T7xUanx00SYOn0Zl3ALlbmf itjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706806819; x=1707411619; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/x3jlCLNc7UiUHoyVg434LJ4SeDSaVulHM99QrXsAOg=; b=Fnn219mOUUDOmDAAAuemcW95opcwNqviOJ0HKiuCpM4fQaur4nFtCuvUb/t3zrzsSM kBt/PMSjBYSaujYgecZY0ZwufFq4TQuzfa2R8jzLbZPHCAIqIIPoeHNhyuMiCxZ1279k GZtFIE/Vd8hIkP5OBZBXR7AYLrnPQEuRBT57x0aJmqwW/4ztVo8o1ocUdi49D5/ERY3m WzuaBzkOx5qqzObDq6+kFgMdmwnTA9HaUxd8vpIn9fH2Gh6mn4RtgFvq97ciQo/90K5t cEarmxYwEsKxn5nLBgcK0upevGOhk9jniA8klIjoklSHYhwzu7SqdERdY9G6kW0+DrKR 3Z5A== X-Gm-Message-State: AOJu0YwEI34c7GkuwOw2hxntRe/0qcwaIyiaSzTl5EGIF6MFvHDfs5bS nKDwJGZJkl97+z1hzxlTf/IoISZPKimGXTBxnN+a0YCAKZ6OBv1gIeSqSSdJ8lslXX83A7KkVjP i5Q== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:903:348b:b0:1d7:8535:d089 with SMTP id mg11-20020a170903348b00b001d78535d089mr14916plb.11.1706806819590; Thu, 01 Feb 2024 09:00:19 -0800 (PST) Date: Thu, 1 Feb 2024 09:00:17 -0800 In-Reply-To: <170666266778.3861845.16453599042139259499.b4-ty@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240109141121.1619463-1-vkuznets@redhat.com> <170666266778.3861845.16453599042139259499.b4-ty@google.com> Message-ID: Subject: Re: [PATCH 0/5] KVM: selftests: Fix clocksource requirements in tests From: Sean Christopherson To: kvm@vger.kernel.org, Paolo Bonzini , Vitaly Kuznetsov Cc: linux-kernel@vger.kernel.org, Oliver Upton Content-Type: text/plain; charset="us-ascii" On Tue, Jan 30, 2024, Sean Christopherson wrote: > On Tue, 09 Jan 2024 15:11:16 +0100, Vitaly Kuznetsov wrote: > > It was discovered that 'hyperv_clock' fails miserably when the system is > > using an unsupported (by KVM) clocksource, e.g. 'kvm-clock'. The root cause > > of the failure is that 'hyperv_clock' doesn't actually check which clocksource > > is currently in use. Other tests (kvm_clock_test, vmx_nested_tsc_scaling_test) > > have the required check but each test does it on its own. > > > > Generalize clocksource checking infrastructure, make all three clocksource > > dependent tests run with 'tsc' and 'hyperv_clocksource_tsc_page', and skip > > gracefully when run in an unsupported configuration. > > > > [...] > > Applied to kvm-x86 selftests, thanks! > > [1/5] KVM: selftests: Generalize check_clocksource() from kvm_clock_test > https://github.com/kvm-x86/linux/commit/449d0d6ccf55 > [2/5] KVM: selftests: Use generic sys_clocksource_is_tsc() in vmx_nested_tsc_scaling_test > https://github.com/kvm-x86/linux/commit/a79036441a68 > [3/5] KVM: selftests: Run clocksource dependent tests with hyperv_clocksource_tsc_page too > https://github.com/kvm-x86/linux/commit/436e6e541cb2 > [4/5] KVM: selftests: Make hyperv_clock require TSC based system clocksource > https://github.com/kvm-x86/linux/commit/14fce852a14b > [5/5] KVM: x86: Make gtod_is_based_on_tsc() return 'bool' > https://github.com/kvm-x86/linux/commit/57cc53712934 FYI, I dropped the xen_shinfo patch, and past me wasn't clever enough to make sure that patch was applied last. New hashes are: [1/5] KVM: selftests: Generalize check_clocksource() from kvm_clock_test https://github.com/kvm-x86/linux/commit/e440c5f2e3e6 [2/5] KVM: selftests: Use generic sys_clocksource_is_tsc() in vmx_nested_tsc_scaling_test https://github.com/kvm-x86/linux/commit/410cb01ead5b [3/5] KVM: selftests: Run clocksource dependent tests with hyperv_clocksource_tsc_page too https://github.com/kvm-x86/linux/commit/09951bf2cbb3 [4/5] KVM: selftests: Make hyperv_clock require TSC based system clocksource https://github.com/kvm-x86/linux/commit/b6831a108be1 [5/5] KVM: x86: Make gtod_is_based_on_tsc() return 'bool' https://github.com/kvm-x86/linux/commit/9e62797fd7e8