Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1997832rwb; Mon, 7 Nov 2022 08:03:49 -0800 (PST) X-Google-Smtp-Source: AMsMyM5G6CR/ccQxG/jypaigW0PpM9nOor5fzb6Bk5+oecrqp4+DQIJKueXnfqQmJ1B+5d3n3MmB X-Received: by 2002:a17:902:ba8d:b0:187:11c7:e878 with SMTP id k13-20020a170902ba8d00b0018711c7e878mr45728057pls.67.1667837029706; Mon, 07 Nov 2022 08:03:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667837029; cv=none; d=google.com; s=arc-20160816; b=ROO3o6KaC6n5YaTbSsbZv22AvN/wiyQmNAPz5zwyKi6rvo0XAL6NW2/Ubxnhjo96dN OvpwGsaUPwOn3wdYtgGKhpqhHMxVluQABBTWrKyNqI9ialzmEBd/UTg7lRxNipvkKB3z BiYVJCRvIFlORDtGiqn/5zk/2QYr6FKmktmOsynKUFpEt5OmZgrgnqTFDktnO/9qCj8g JiKcqzI2lmfOdu2E7fQhZiN9f6mTWVLZDAEPKo0DRzamHytlT82lpqV1+o4FTAsZEOVa ZQ23PSdHeX3+tj5iZahXRmlwBVsVrmRtRy0jJ6XKYXdjMG++dxjKc3s9L1C7nxiYNGRb 0jVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QUo3Yz5ia9UMUQGTPgPFcFGdU9WNRAlf7H3KnO5VN4Q=; b=dew2DUOvvOvJxUDwJ4e8L8F36DmJ6ll9Ysg/bfxIhGCzaOGqEtWht8/ln2w6sKA45B /W/RuserK44ejDHQ6zGRlyjNhlCVDqFWBDRvYSKhveDV4CbS/MOcGXyBnERqA1a12jOE d3E3a10B+khd+vEb1FgyQZ+U59YxbZuuAhDem4Iwaa/WJQCxhKqPSZeQBD2ufTdEh155 uJWLSvuIPwt/5aQBzZGgEjBuS3kIdx3dTPpPw+QU5Vkipoxuqd2ZgXTnXCttWRlnH6NV M8O8ErzqAM0y7Vk+WZIHtd6mke9zlBwr76SeGOpBpyyfO1YXnJlbH8HmBc/utpvON/xb RDvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=HSFUJUtt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s70-20020a637749000000b004700d8746b0si10353208pgc.406.2022.11.07.08.03.32; Mon, 07 Nov 2022 08:03:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=HSFUJUtt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231733AbiKGPak (ORCPT + 92 others); Mon, 7 Nov 2022 10:30:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231671AbiKGPae (ORCPT ); Mon, 7 Nov 2022 10:30:34 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6F0613D20 for ; Mon, 7 Nov 2022 07:30:32 -0800 (PST) Received: from zn.tnic (p200300ea9733e71f329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e71f:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 25C211EC0716; Mon, 7 Nov 2022 16:30:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1667835031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=QUo3Yz5ia9UMUQGTPgPFcFGdU9WNRAlf7H3KnO5VN4Q=; b=HSFUJUttLvRpbfId/bjL5ZOhWnD0ziekIu2cal3mX1/0FzlHMJUDZuIrjQE2BEdl5d5t5U 37fg/Jlc8bCYy639dA15egpFLCta5pEMAC81JKOPBcbeYaZmSSuHpe8QQ4bob6rGZ188FE TwNW0iUgT9yWcx2SAP+ILxgHImghNGI= Date: Mon, 7 Nov 2022 16:30:27 +0100 From: Borislav Petkov To: Fei Li Cc: linux-kernel@vger.kernel.org, x86@kernel.org, peterz@infradead.org, dave.hansen@intel.com, gregkh@linuxfoundation.org, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, hpa@zytor.com, Yu1.Wang@intel.com, conghui.chen@intel.com, fengwei.yin@intel.com Subject: Re: [PATCH v2] x86/acrn: Set X86_FEATURE_TSC_KNOWN_FREQ Message-ID: References: <20221101053019.174948-1-fei1.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221101053019.174948-1-fei1.li@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 01, 2022 at 01:30:19PM +0800, Fei Li wrote: > If the TSC frequency is known from the acrn_get_tsc_khz(), > the TSC frequency does not need to be recalibrated. What if the HV has unstable TSCs? How do you handle that? > Avoiding recalibration by setting X86_FEATURE_TSC_KNOWN_FREQ. Pls read section "2) Describe your changes" in Documentation/process/submitting-patches.rst for more details on how to write your commit message. > This patch also removes `inline` for acrn_get_tsc_khz() since > it doesn't make sense. Avoid having "This patch" or "This commit" in the commit message. It is tautologically useless. Also, do $ git grep 'This patch' Documentation/process for more details. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette