Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp217654lqa; Fri, 26 Apr 2024 22:39:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEd2qhNqS1sDVnxqKVglv4eRqZirzQpU0OxkyHJtk1/aocfaGQXeTLGhuUJ2iIwjU/ipY3IHZJ42iykN9U4U2Z3ROSpCS7JtYKSWOgQg== X-Google-Smtp-Source: AGHT+IH0S+M43jJdSPxbQOFqnVF3/g0ap6LjZWYuLebYeONyKJc7bsujgG86yTTc17cmYszmRm6H X-Received: by 2002:a05:622a:1906:b0:434:f229:28cf with SMTP id w6-20020a05622a190600b00434f22928cfmr7039161qtc.45.1714196341918; Fri, 26 Apr 2024 22:39:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714196341; cv=pass; d=google.com; s=arc-20160816; b=0tsBla9oS8aPRqmzSCduyMSgXV0ZT97bsSegfgOKKyaYSmzXqI6hIJeBi/JX4KyHJe tABHgjp8zxAbTyebPGTViRNHS2sKcVs3U4r4R85nHkslQDduGZfCdF0hUbONqCI5SaKB VM/ezGVt0oeSpY3t0cw4r3kuOohtSI38wBd/FqEOHoP5FyFRLL9i5sxV+h9GoMyMslBR Q6SBty3T0U2VW5DAL9+w05kVuct64DwYGO4bNtqIfex1zFyhFaq+oihy1n28a8Xt7dyP fvypCTy6AolNCwcMuVM34wG/IuVTTuzEm0ZRlV98tEBGdrM19f/oXZK9WyX/EU0OvEI+ 3a4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=nMk3IUnLyw4bhDWAwk47ncrQSThwMI2XpCs3/wamQCk=; fh=mU9kXoZulgCy1JMUGL6C4peBkoV8lHWEKyJ4WfagBSY=; b=Nhx/JOZds/ORPdW3wId/axYblZ08z6vaO85X9LqEtbpKXHY0TvxrNUXJT1f1dGOkL2 SS9oRwCRC2oIhOT/BeUl+/pCx2PIlJvqECCki9x3x4mGdLKmBKT+uDE8AQp2lej4Rejn faP9MDWXY0dYdIlS+lcBdyQLt8JIvfina9+CcHgsoEhhPO3YsZHM32qLxzDutibSPkh6 pFHh3q6FGUYXN9CBdYrJRXQg2BllX7gq5W3oJiJ4bHkE96HEhkJfswTMnhGxdQ41Z8vy H7l8rOq+aEftShgh1gJs4ZiuiqWZ9/1B7KossCts6dRlS946VTYlTFb4p80V+ChRR+7k 81cA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WsULUO2u; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-160911-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160911-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id en5-20020a05622a540500b00434e17e9297si19648632qtb.600.2024.04.26.22.39.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 22:39:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160911-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=@intel.com header.s=Intel header.b=WsULUO2u; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-160911-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160911-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 A3C011C21553 for ; Sat, 27 Apr 2024 05:39:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB41340854; Sat, 27 Apr 2024 05:38:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WsULUO2u" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F292381C7; Sat, 27 Apr 2024 05:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714196333; cv=none; b=tapBpXwNDoQZ5s8nG16Q/wIYOSlnVtfDT4qq/RUaRhc7teBYjNyv7OWXPOdRw/wUUo8l2Ubh5GkG7crdBS4gCuDcMda+TDoW8XJzANQHdF2gUiVveRmv+Ljxe25B5IoVSm48RlWM7UdI0X1XfTi8U3jzHB4pVGIlUbIH/bDmWh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714196333; c=relaxed/simple; bh=K4EbgByRT7TtstqD4HXOVYBvbr60newEfJFOinghURg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PH3XwcG5QFw08RegimstVu8lgBsrzompxOGpNaT9PWYCS/N/v9UwYREQyVixLDX0qg3x1hJEQt0dPCO+fw7pKcIhYOHKyUNwjOyK5ZygBWrCTFcoFzwjP1m2awkUVlSu+6Ol7Dc5jHXYklQRXfwmfS47oBrjm/RIbBslEgA+/jo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=WsULUO2u; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714196331; x=1745732331; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=K4EbgByRT7TtstqD4HXOVYBvbr60newEfJFOinghURg=; b=WsULUO2u9s6Xa1/9ZIYCeVyeZGeWzGYFd7FTqSREUsBUkyq4VHqdlenE vKzB0EfHhJ/BFye6kh/Q1VCVT0m2RYYDA23t9TeUkVgR2yR0oy4mK4fI+ p5B3Kp0+/5anBdtrUlnFGuLzDO4C4rUBe4XzaNkB5tjWbCqgWaRROKTAS 4mKq/p7j/bb6zXg+49qyjMcZtgzajp2DZkZrgFyFZLscbV655wQAEK/jG Fyy+CeBOsnNpLyNlvLCW8zwgzMB7JCW90ObeDnNkD2pJy9eXJRDYtc1WE CwPWtgy+L7hV2KtZn/yj+oepjwMJFiegDD2o3mXIhyr4Lj2IwI8adkKSY Q==; X-CSE-ConnectionGUID: bemiSHTFSsuIXRdzsYhDRw== X-CSE-MsgGUID: 0MuWYMa2QNSUuMiDdzICEQ== X-IronPort-AV: E=McAfee;i="6600,9927,11056"; a="32437623" X-IronPort-AV: E=Sophos;i="6.07,234,1708416000"; d="scan'208";a="32437623" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 22:38:51 -0700 X-CSE-ConnectionGUID: 0FfLCUrISlq89yEGnkD66w== X-CSE-MsgGUID: 6Edd325aRAGxni0rsDbMoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,234,1708416000"; d="scan'208";a="56530661" Received: from akalapal-mobl.amr.corp.intel.com (HELO [10.124.149.167]) ([10.124.149.167]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 22:38:50 -0700 Message-ID: <002340b7-86e2-4be3-8468-71d59233c32e@intel.com> Date: Fri, 26 Apr 2024 22:38:49 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V5 4/4] KVM: selftests: Add test for configure of x86 APIC bus frequency To: Reinette Chatre , isaku.yamahata@intel.com, pbonzini@redhat.com, erdemaktas@google.com, vkuznets@redhat.com, seanjc@google.com, vannapurve@google.com, jmattson@google.com, mlevitsk@redhat.com, xiaoyao.li@intel.com, chao.gao@intel.com, rick.p.edgecombe@intel.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <12445519-efd9-42e9-a226-60cfa9d2a880@intel.com> Content-Language: en-US From: "Chen, Zide" In-Reply-To: <12445519-efd9-42e9-a226-60cfa9d2a880@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/26/2024 4:26 PM, Reinette Chatre wrote: > Hi Zide, > > On 4/26/2024 4:06 PM, Chen, Zide wrote: >> >> >> On 4/25/2024 3:07 PM, Reinette Chatre wrote: >>> diff --git a/tools/testing/selftests/kvm/x86_64/apic_bus_clock_test.c b/tools/testing/selftests/kvm/x86_64/apic_bus_clock_test.c >>> new file mode 100644 >>> index 000000000000..5100b28228af >>> --- /dev/null >>> +++ b/tools/testing/selftests/kvm/x86_64/apic_bus_clock_test.c >>> @@ -0,0 +1,166 @@ >>> +// SPDX-License-Identifier: GPL-2.0-only >>> +/* >>> + * Test configure of APIC bus frequency. >>> + * >>> + * Copyright (c) 2024 Intel Corporation >>> + * >>> + * To verify if the APIC bus frequency can be configured this test starts >> >> Nit: some typos here? > > Apologies but this is not obvious to me. Could you please help > by pointing out all those typos to me? Do you think it's more readable to add a ","? - * To verify if the APIC bus frequency can be configured this test starts + * To verify if the APIC bus frequency can be configured, this test starts * by setting the TSC frequency in KVM, and then: