Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp20444rdg; Tue, 10 Oct 2023 03:04:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6y/+q+1NKwr01USRqXfyv9ksxTm5c4/bg/0piMAyOboHIkFcA1phr3yTHY8A6rL6hxANk X-Received: by 2002:a05:6a00:84b:b0:693:3cac:7897 with SMTP id q11-20020a056a00084b00b006933cac7897mr18199180pfk.9.1696932271480; Tue, 10 Oct 2023 03:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696932271; cv=none; d=google.com; s=arc-20160816; b=deir2YbkRV389GF/LHEvs9HRv/Bu9x/Uaahqw5Wyq6P1F8tx41d/77qTVGaIGvFmxz SiybQmWGHaaiyYtLsTutaMOuajkIPeOEcyxeMf2QvbexoKCgEZDUICLRCyjTnbj04Ey/ bM8aSmL0wOjc23jnFtjR7JVLQ0fxJZzz+564WpH0jYSargf/uduintY03Epoo2/njZP/ hYU4xV0PmuQNUUBkIRNeD5DG7gmocB61JZMmRkQG2Zw7cOg0/Gm39vdZb6rwhrCMIgS9 jWRW7C2DbhU/bCH7z+3IHWl7V7+2+WjtQ8PqPjPPmRPdXnvDy6af+n3rU2zMp6W/r2Cn esOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=0VuAuXHjC6TcrB2Upe0J5kYBATdZNMJL7jMHDwWl1Oc=; fh=wXlDLG97ngErMPG1CBbU3UMB1OriNvHvjtHPzqaeFZQ=; b=DVz+WcXtoHHfJNVabr3p0wdq6G0FJqWF6oZrBGiUA8W0m5NcN9aOW47fJJ8OgP3Veh 0lhjP8A7V5ykC4W1CLL1kULFPpGq9jEmqyOMftFLXzwJIQaHq1VEHQQ+6WXuKBXDqIvo oIhEg3EMgjeuLfnrUNPbBPOPWzLpQzcHu2yhVvf+nO8sXjdQRBCoTay0QWmfLVDITVLl WP2GVt+8Fhkrk8j3Dq9D71G/1iDdSVCec1cxKAczXccU5HgsWZ/aj6ZlhlXxJkbU6M0w F5S/hZ7SCyXsn229gDSrwOqZvO0I4Bz4CdzPJFEUYEtFxhW58lHI/yJz4b7HiyTCi3V9 iIAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=lNdGO3IQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p6-20020a63f446000000b00578a9ea5686si11239967pgk.660.2023.10.10.03.04.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 03:04:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=lNdGO3IQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 73F7481444C2; Tue, 10 Oct 2023 03:04:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230213AbjJJKEH (ORCPT + 99 others); Tue, 10 Oct 2023 06:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbjJJKEG (ORCPT ); Tue, 10 Oct 2023 06:04:06 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4978693; Tue, 10 Oct 2023 03:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-ID:References:In-Reply-To:Subject:CC:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=0VuAuXHjC6TcrB2Upe0J5kYBATdZNMJL7jMHDwWl1Oc=; b=lNdGO3IQ0dDFm7Nxs4ZgXMdgpL KJozlc2DyNANXv8kN+v0JoGHveW2KI3SmTqQ8lF6pv4fPzNstjiCR/QbxzzQWXnSXM32hqHu9ZiKe nqp8OJsifwiqTiXlM7oFIiq3tDEhie4E1TIe2FNcKGckePUE7qGpFi5RBpBzzP6XMefB8BMw95YQj RPhoml90CO5ZTXLBNfIVp8fQLxpKhulFeMKbLkxE+J4xfrb1ROEXsrsaH+cf07joo4H62b42W7Iq2 OuU03P04e6PBTDh7GLgWTqK2r1+v3PMaztXArg3lgcdr+MgZXCf4iQbuBv4a1qRyV/Xn+StFItrsE 1BqsBUBA==; Received: from [46.18.216.58] (helo=[127.0.0.1]) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qq9ag-00GlJC-2H; Tue, 10 Oct 2023 10:03:53 +0000 Date: Tue, 10 Oct 2023 11:03:50 +0100 From: David Woodhouse To: Sean Christopherson , Paolo Bonzini , Like Xu CC: Oliver Upton , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v7=5D_KVM=3A_x86/tsc=3A_Don=27t_sync?= =?US-ASCII?Q?_user-written_TSC_against_startup_values?= User-Agent: K-9 Mail for Android In-Reply-To: <169689823852.390348.16203872510226635933.b4-ty@google.com> References: <20231008025335.7419-1-likexu@tencent.com> <169689823852.390348.16203872510226635933.b4-ty@google.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SRS-Rewrite: SMTP reverse-path rewritten from by desiato.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 03:04:13 -0700 (PDT) On 10 October 2023 01:44:32 BST, Sean Christopherson = wrote: >On Sun, 08 Oct 2023 10:53:35 +0800, Like Xu wrote: >> The legacy API for setting the TSC is fundamentally broken, and only >> allows userspace to set a TSC "now", without any way to account for >> time lost to preemption between the calculation of the value, and the >> kernel eventually handling the ioctl=2E >>=20 >> To work around this we have had a hack which, if a TSC is set with a >> value which is within a second's worth of a previous vCPU, assumes that >> userspace actually intended them to be in sync and adjusts the newly- >> written TSC value accordingly=2E >>=20 >> [=2E=2E=2E] > >Applied to kvm-x86 misc, thanks! I massaged away most of the pronouns in= the >changelog=2E Yes, they bug me that much, and I genuinely had a hard time= following >some of the paragraphs even though I already knew what the patch is doing= =2E > >Everyone, please take a look and make sure I didn't botch anything=2E I = tried my >best to keep the existing "voice" and tone of the changelog (sans pronoun= s >obviously)=2E I definitely don't want to bikeshed this thing any further= =2E If >I've learned anything by this patch, it's that the only guaranteed outcom= e of >changelog-by-committee is that no one will walk away 100% happy :-) LGTM=2E I forgive you for not respecting my pronouns=2E :) Thanks=2E