Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1365803rdb; Tue, 30 Jan 2024 17:01:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEt4gJt8P+fm+K8vD8cBcgob8oHxewnVIDPABFTRFmSpZOV43OHehTRcT6Z1kPMumYj5CoE X-Received: by 2002:a05:6122:13a:b0:4bd:789a:64dd with SMTP id a26-20020a056122013a00b004bd789a64ddmr114320vko.2.1706662910064; Tue, 30 Jan 2024 17:01:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706662910; cv=pass; d=google.com; s=arc-20160816; b=BHFHIfCWwkBrmKsKEs3xL/DlODmL7SySFlFkLYtKzParvKrE3ecvAiEXSP51hwL5n7 QIXgpKJDJHP+SWdY5rU4cT9fQU2/1+3e+bZ6kW7Il3xcKMXuqkldfvVjItWDzaNYe/1a I0V9bseO/GFPz87xefPwMUMytNohk+C3Yqsu8j1AMYlLs1MzkEvv25xYKGOuQfjx66rp 9hr2FJBIMe+DS80RZTKEGvHVG9gqiDofKBZjtkiy4OUJpopMGDzR5YUoXl+EwK4yUfXC poCE5NQQiYitF/1GDyGlJODLsBJ45DoPEA65s2gzHpd1QZU6HAeFyk5e8OTRBAQa08qp HVVA== 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=z/6EISmcdKMqUmU1fWbqozYT/7mLbV7Sl1T8e65+Jmc=; fh=8N+/VXoaBtdyvuCZqW8gS+xi1Ug7bhrS7A8V4prljM0=; b=cfhaSFR3xnc6SJ69VvBCEU2HwAdzBweW3Nl4pIxqzrHv7Rq77Ovalodl//kvKcPN3B b6eVVDlyffhngtt84Jj91tkyzJRhn0Oln+IjYg06XDYKaewbYKCb7XoxCJ7Itciv2DwG rkSqK3mB2WSERKw5OJu/RgycH/QdCWLPdGk+AV54U9VnOOr89MOLKzyTw23qVSU+PB4s GqT/LNAb2X99yy7jSfM92/6ek7G7RktD8hRnI5NVQbrpKLeGQbrhnnx+OIbir5MQVQcC whIqVTiT1R5pmeGLqBie5KA7m1ViXL5YhrQGyeE639fVbUWhEywQDLnC0zIJ47l2dttX 7RRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=UV5kZgwq; 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-45562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45562-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; AJvYcCX7HwlwaDxsaXpglmgPcp/t74vZKRx/vE2YXRySJyas5r9DNgsnzFD7z5XqFKo4/8Hxn+FidsSHpHXDUu5UgMdjayBUyqV4EYfUkqULNg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 3-20020ad45b83000000b0068c69ce7eb0si813475qvp.364.2024.01.30.17.01.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 17:01:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=UV5kZgwq; 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-45562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45562-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CB9821C214F3 for ; Wed, 31 Jan 2024 01:01:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4E0015C9; Wed, 31 Jan 2024 01:00:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="UV5kZgwq" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.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 8D299139E for ; Wed, 31 Jan 2024 01:00:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706662846; cv=none; b=WFkmnG6Y+yzthNTFZP0GLpZz3QYWJXtGs64jOhNLS1fCjV8LEzGRlZD82Mm/2gcPGhcisnQpgPq5mqk3n3TJtqn/ao5W7HUr8nKmZqlPjSSH1vi+boW6xOzCdFhRhWATnIUQ5ufTS/NZMkbcbQ9Kta55137zfhYtySFYW5xpvXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706662846; c=relaxed/simple; bh=8m5C1gxxrH7lFcMvyPtH0gAVFVKsHtRapWc9S9fULhs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=YMApLuhtHieEfcxRFIfPwj4cC93UGupXZWRFg6Qf9iN1BFEt8u+4Cv/Wfa7rQ89r9aa2Hkt3dHgQROD3gWme7y0wT6Jv8P0WMqnkyceIZel8M1OE7KGxT0O/8Z58qOuV5/vwFzm64t0m+yLA0ZPS/9F1VZ0tAOIHxZgAuOrG3Fk= 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=UV5kZgwq; arc=none smtp.client-ip=209.85.128.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-yw1-f201.google.com with SMTP id 00721157ae682-60402c8d651so8848107b3.3 for ; Tue, 30 Jan 2024 17:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706662843; x=1707267643; 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=z/6EISmcdKMqUmU1fWbqozYT/7mLbV7Sl1T8e65+Jmc=; b=UV5kZgwq1sp8eLPXdWu4KK3eB/35IJg7ilZRmE8c4lZdvAoyW+dhuO8yRwJF1opLA+ rbJHzNdTLRBpZTCPsUEf4CJxTQHKmtA/2tf/NqyHzOrg0wIMFMHlImzwoEejAxE+euyz 8/Q48Ty6zjF4IZYz2ceabqxt61Vgmi9+R4nteIUnC2ahmumxDvNFlbXoaUpUjyEODGio UiNEVYKhxgnzV6cNd4CmGy9KdP/fy66DTUEtfKGEmi00bcw3FA4ZiVsD2USV6VU5AEgu ba7gS2QjTDi0ZVVVndPrtfzNj8j26f8A3R//qXpPPE2QZllqNu1CSUHHuIuDj7R/c5Nb uEZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706662843; x=1707267643; 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=z/6EISmcdKMqUmU1fWbqozYT/7mLbV7Sl1T8e65+Jmc=; b=fzYOE9C3YmF+vA3Mk8Lzf9WsG6ple2E1mclUwRTjxE/TUAxf/81JSpq75hDZxpc3hS HoAVWaCWzAltaict0bx4P7lv9CcpqEwDtYuL/jFr+cA4sg0szsPe6O8ivHYtpEUIh1CW QgQwhk4yYN3BLCU/QWNN2msNzQvDRnDa1HOxnU2brtxmkCSLZfYEK+B8gTe0fz/ocXPe kiRmt60RXwMCHYhpYL9p2h5EnDv5dybypFe81vu5ujK+uIkjLjXlT+88Go69uEQ0UuYD ju3/KGesCHVf8pRTNjBVQ1mecqMLqvVpVv/MODYUe4XYJb7sPqj+8jaWvzZ2pZ9DwGgd H62w== X-Gm-Message-State: AOJu0Yy2dHluZUUkxQd8Oo8FKp5rq07o3GYls40088dPUaTwnP2sjxAN uPVuCCsi6v8YjjfI6CRnMuswHhTTrGZG64cdusoeDWhN2rQ2zE9hc+wMSydPdLBMRnrd8Mjp6Cl M5A== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a81:7996:0:b0:5ff:80cb:23c7 with SMTP id u144-20020a817996000000b005ff80cb23c7mr430ywc.1.1706662843535; Tue, 30 Jan 2024 17:00:43 -0800 (PST) Date: Tue, 30 Jan 2024 16:59:27 -0800 In-Reply-To: <20240109141121.1619463-1-vkuznets@redhat.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> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Message-ID: <170666266778.3861845.16453599042139259499.b4-ty@google.com> Subject: Re: [PATCH 0/5] KVM: selftests: Fix clocksource requirements in tests From: Sean Christopherson To: Sean Christopherson , kvm@vger.kernel.org, Paolo Bonzini , Vitaly Kuznetsov Cc: linux-kernel@vger.kernel.org, Oliver Upton Content-Type: text/plain; charset="utf-8" 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 -- https://github.com/kvm-x86/linux/tree/next