Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp661751imm; Thu, 4 Oct 2018 00:56:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV62uaQTvLjrSw7xT5Fay9uZHCLnzmMNF8VK0KrGMy+c6t2weChJoaU8LgmHppa6ZaBKaSwom X-Received: by 2002:a62:178f:: with SMTP id 137-v6mr5349934pfx.215.1538639798911; Thu, 04 Oct 2018 00:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538639798; cv=none; d=google.com; s=arc-20160816; b=sM6VlXc5DoY+v1Y6XDrSXD/PcQmpivW6rD23p1I3osRbkQVWW3iKzHloUDFhc6zfM+ H3pZgptCDjTzuwiwrbz0Y5NBTSL3TlohRaDqQsjtnDa191lFiSSinM5UCxqQEaWG5559 wEV2dJUXivb9h8HWPkqDheFC9RYDPGkwEZbzIb2EyKsJRAPI1Y8/HpA9Rs4XfnXq4Ts3 xt3PtaIVUk9Vr7ZBGW2BBK2413DtsgtIhFxDIh2os4UYBVG5RoQNSymCR78i+ePnRRBg m18jEkNsczB4rvHu8aipNEs/avdf1U1U9bgLnF+1GAReim9vOVHyZVtfTTR4BnteZAsm KEXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=GseGzOyE0MwAA/PM89EiCxaiMmM3cXmOzQ/MYagnRRA=; b=0YKRCEfqhMWuLauZxr1/kJpuewdQ2vNpeNf3OFICROVkEkVex1dfio9dDXxK9p5zWx wupeYmB2xlzhJ/fhKrb0HLzyQC/yRdvH/x6vwTjEIsnZUHLKISAXA4RhLxCRouXX3gZU 6JTqwG4Oooc2TM6Q17cWlo3rUSnV5Eld5sMGv6sqAe4zZoDjEbg7/8AAhPAGK9QwE8DQ cnRthL6baaAMgv3Smynjp0BEq5R1nzOFm0GKXMcveqlHK93mDE384PYP0LLJ5qdFxTSj 3FB/eJFD+wsc8jFOrupWFv1ngQw6VOTEpcLFpbL1afLz9ApURkhOgXcesqGr0QW8D3Hh AbRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd9-v6si4845818plb.222.2018.10.04.00.56.22; Thu, 04 Oct 2018 00:56:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727642AbeJDOqw (ORCPT + 99 others); Thu, 4 Oct 2018 10:46:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41612 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727311AbeJDOqw (ORCPT ); Thu, 4 Oct 2018 10:46:52 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E53603082129; Thu, 4 Oct 2018 07:54:53 +0000 (UTC) Received: from vitty.brq.redhat.com.redhat.com (unknown [10.40.205.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 260C91710E; Thu, 4 Oct 2018 07:54:47 +0000 (UTC) From: Vitaly Kuznetsov To: Marcelo Tosatti Cc: Andy Lutomirski , Thomas Gleixner , Paolo Bonzini , Radim Krcmar , Wanpeng Li , LKML , X86 ML , Peter Zijlstra , Matt Rickard , Stephen Boyd , John Stultz , Florian Weimer , KY Srinivasan , devel@linuxdriverproject.org, Linux Virtualization , Arnd Bergmann , Juergen Gross Subject: Re: [patch 00/11] x86/vdso: Cleanups, simmplifications and CLOCK_TAI support In-Reply-To: <20181003190617.GC21381@amt.cnet> References: <20180914125006.349747096@linutronix.de> <87sh1ne64t.fsf@vitty.brq.redhat.com> <20181003190617.GC21381@amt.cnet> Date: Thu, 04 Oct 2018 09:54:45 +0200 Message-ID: <87k1mycfju.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Thu, 04 Oct 2018 07:54:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Marcelo Tosatti writes: > On Wed, Oct 03, 2018 at 11:22:58AM +0200, Vitaly Kuznetsov wrote: >> >> There is a very long history of different (hardware) issues Marcelo was >> fighting with and the current code is the survived Frankenstein. > > Right, the code has to handle different TSC modes. > >> E.g. it >> is very, very unclear what "catchup", "always catchup" and >> masterclock-less mode in general are and if we still need them. > > Catchup means handling exposed (to guest) TSC frequency smaller than > HW TSC frequency. > > That is "frankenstein" code, could be removed. > >> That said I'm all for simplification. I'm not sure if we still need to >> care about buggy hardware though. > > What simplification is that again? > I was hoping to hear this from you :-) If I am to suggest how we can move forward I'd propose: - Check if pure TSC can be used on SkyLake+ systems (where TSC scaling is supported). - Check if non-masterclock mode is still needed. E.g. HyperV's TSC page clocksource is a single page for the whole VM, not a per-cpu thing. Can we think that all the buggy hardware is already gone? -- Vitaly