Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793821072; b=LpUR9gynMyO6tBJcPvtmecibvzMjjIeC+HvjLFnLr6eH81uZaDKtwx76ZZy7RYqrGAfw v3IUhGvVxIvc9o5LOYU951HKoS9vXBicG//CDwg5Qgnx6pwIGukJgwm0ywfjSbdehcw26 dUe3u00WDqD2uV8qP/kIv8lwcAGxozI8zDfmy/StzL35VrfmowTnM6llGaHvT07XJPTj/ iLsLg6KKh4JNlkTDucDC3YsvZrdcp2FKkvKLsEjdBgSlX/o95qXSQUGecEFgOcuACacL1 547C4hz70H8MCWpnUnqCkRdLBI++v7cEhpVBnY1nfI9449hMOEttOuzo8It+8SnctVg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793821072; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type: Content-Transfer-Encoding; bh=/5MszlfJHB7Xr7Xp5GjEvhWx25u5UBjAyc2/c9bnue0=; b=ANYNj56ufMdfbgJN1sZaM9hB1UDjYM3TcdDVZgpzxxdPf+qyd8eZ2rHKYIZ7qWms+y5N tv1Pd6ClQfYSq9Ozz+2lafzIpPZxFFQtRVPTRG3yNXYhZvPds/0KU8/C0zaRhKv0XDAEu Xn4pbpPdhRtXp5R+xfXtos4rlUGwgb+JVxYhFpJl1CuvCBzMIhaLUfeINJJSXR+a6GPTY Lzrc+wqfRqdleg5YpmN5/CV108B7CPSkkMNIPH8TnYhwo3htMWLDdl2eGI7v1xvV6752a pedkVXmhTml43MqwG3RMeqfDiVFoMKy2Lng9fe2xFkTI6qt6KZJTFvviHZhaztIK0UA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=gJSq+Ubr; arc=none smtp.remote-ip=209.85.214.198 Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00FCC607F292 for ; Wed, 4 Nov 2026 19:37:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 00FCC607F292 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=gJSq+Ubr Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2ed08904845so14892335ad.3 for ; Wed, 04 Nov 2026 11:37:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1793821071; x=1794425871; darn=vger.kernel.org; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:from:to:cc :subject:date:message-id:reply-to:content-type; bh=/5MszlfJHB7Xr7Xp5GjEvhWx25u5UBjAyc2/c9bnue0=; b=gJSq+Ubr/frgSSD/tMBcT+f/kIR/X/CwpTlD2bbtEwjhhi/+7hJcvCLXB4IDL5V/qy 0+bqsQxIR/t3oEcE59hSTJ+W72qYXOOEgW2ZEriC6BJrsT25yqSEtIMBN47ZOPwQwFWG F09buADkQ/trjIAMVNHiW4Q15+CfcFtOoR9LnDt5A+X0L0eFj1vmhP+XBx/Xdw5jIJe3 bUJna5nkRV02U3UPBg8vELTNy1bogwnSGNgalHMSLWcpVlAKsOwLSREX1jesGpUwlHV9 0ZQ/YrbnQFOhvhaTw+uAJCPwi+9GbI2gBvYy2qC2s+UpLpC9HaizJLtW6AlznPEGfb7w YaHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793821071; x=1794425871; h=content-transfer-encoding:content-type: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 :content-type; bh=/5MszlfJHB7Xr7Xp5GjEvhWx25u5UBjAyc2/c9bnue0=; b=wWIX7SXHrdr57SBRWWpDUn0KRAICnbffqu3pvdaEDlx+pBv+yDWtBlMlryt8ITH9O6 p2tQZ/VFxPM6IOPcgdPL9gIKmVowoBf7Z1DQa9Gqn7JLydRP9wLpPvv6DA/u4wfzd+1T L9LYulqFXjt0dWL+U6EaTv4rkTytMj5ZYbE3nvvBjc7ZrtXUQLozNGJV0wD/L0GrG2dC dAPgQPSaCLhUQS8DwFnpiKl1nfI4CmOq0tZsJoLbifuB95q6Ju8olCPCQ4WZ87QLTp91 tgOE82a4qCFm5n7ZTLjfsuyoNqDzoQcNP0YLQAWo+0FqOvElNWhFJSeqoLPULs2lsDlk eqHA== X-Forwarded-Encrypted: i=1; AKwUvBx49hRDpc2D4BlRzY+wPTRm7c3t36ucy1/o1pdLoVs00EGFxaL6GaBGdwDhnoLcD6QgB7w=@vger.kernel.org X-Gm-Message-State: APuU4Z9SH0HMX1F5uk2/l7fQmbKkApOU6SI1JbsqhO7NRKDgRuqR6kyX LgqGFZHRYmZfjcr987tY25D5vc3Ps5xwduG65SPuCIgooim7JDsFlRBh9B5gUQJRBd9TMMr/tGC DWld5Pw== X-Received: from plww1.prod.google.com ([2002:a17:902:d101:b0:2e9:4a78:9294]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:1986:b0:2e9:4d9f:a65b with SMTP id d9443c01a7336-2eb3651d564mr160599195ad.53.1793821071087; Wed, 04 Nov 2026 11:37:51 -0800 (PST) Date: Wed, 4 Nov 2026 11:37:50 -0800 In-Reply-To: X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20260806233609.212337-1-seanjc@google.com> Message-ID: Subject: Re: [PATCH v6 00/51] x86: Try to wrangle PV clocks vs. TSC From: Sean Christopherson To: David Woodhouse Cc: Kiryl Shutsemau , Rick Edgecombe , Paolo Bonzini , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Ajay Kaher , Alexey Makhalov , Jan Kiszka , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Juergen Gross , Daniel Lezcano , Thomas Gleixner , John Stultz , Vitaly Kuznetsov , Broadcom internal kernel review list , Boris Ostrovsky , Stephen Boyd , Miroslav Lichvar , x86@kernel.org, linux-coco@lists.linux.dev, kvm@vger.kernel.org, linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, Michael Kelley , Tom Lendacky , Nikunj A Dadhania , Thomas Gleixner Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thu, Sep 10, 2026, David Woodhouse wrote: > On Thu, 2026-09-10 at 10:59 -0700, Sean Christopherson wrote: > > On Thu, Aug 06, 2026, Sean Christopherson wrote: > > > The primary goal of this series to fix flaws with SNP and TDX guests = where a > > > PV clock provided by the untrusted hypervisor is used instead of the = secure > > > TSC that is controlled by trusted firmware. > > >=20 > > > The secondary goal is modernize running under KVM.=C2=A0 Currently, K= VM guests will > > > use TSC for clocksource, but not sched_clock.=C2=A0 And Linux-as-a-KV= M-guest doesn't > > > support paravirt enumeration of the TSC/APIC frequencies, even though= QEMU > > > provides that information by default. > > >=20 > > > The tertiary goal is to clean up the PV clock code to deduplicate log= ic across > > > hypervisors, and to hopefully make it all easier to maintain going fo= rward. > > >=20 > > > The quaternary goal is to clean up the TSC calibration code, which wa= s made > > > stupidly hard to follow by hypervisor code mixing in with the native > > > calibration routines, instead of being implemented as a pure alternat= ive. > > >=20 > > > Note, the VMware and Xen changes still probably should get acks from = those > > > maintainers, as my understanding of what they're trying to do may be = flawed. > >=20 > > This (thankfully) still applies cleanly.=C2=A0 What can I do to help mo= ve this forward? >=20 > Nudge Thomas to spot that this is guest-side and we want him to pick it u= p, I guess? Amazingly, still applies cleanly on 7.4-rc1 and tip/master. I know we're s= hortly after the merge window, but this has been sitting idle for months and addre= sses issues that are impacting a variety of end users. Note, this also provides meaningful hardening for SNP and TDX. /me stares = intently in the direction of Dave and Boris.