Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp922765imm; Fri, 5 Oct 2018 14:19:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV63xTpk+GylVwc/8mVXmstZ8vUPKeMt/uDvZONekF5iuMmhccpEt8PLZTs4iv2kLXJHN2594 X-Received: by 2002:a65:4548:: with SMTP id x8-v6mr11705933pgr.414.1538774394410; Fri, 05 Oct 2018 14:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538774394; cv=none; d=google.com; s=arc-20160816; b=qnIJJ/wWOpVLXRoCW2X5rH8JPp3Z6DbwPR9XbNpd17xLTPZ7ZSrCFWTW62mo0zNAj0 BrjM14zw58ZfXS6x2ratGKahavm5oybwORnq1hWSd5MIXtN/4frwi0tfA34dcLTuhXvs BLoGTUBW2nQVyIxKbesZsbDoKZm0X3e8Oc/etrtPpcoy24z/fHi6McKd4dMDGF5myOAD oORrYIqa4cBFDwYNzhJ5qbvsjK1HerYAaZpkpMTHvx5kAWwFbUcyPaggIgT2JyswNfet gBnNSrvHeGQ4gkwQpMObiCjzCcJLur8W1IlE+eB618ZMQybEsMNJ15OekrUuTgWnMYtd 69qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qUTzN0ql6ycaO47TM8dkqWZftLXA+7NGyKJvbKgIFYk=; b=mpAurBKKh5sW16FiiN07XRHcsjlxxh/PtX/qWsW0Bvg8VMpGC6sbrmxwGDs8OEuCr7 FdU49b9oi+rBjEf5q1ehYwak9sEPGVB20klNYq0EA+XnzlpncweegLZo12Gtu30ipszt A97LyWNNhFIaYWL/7S3wvkzoR+OypN9xSmOTowhbMNAX19E3QVQ4j/yHhzWP6fsfH/lB rOYHCfuzV/kIj2x3PZo1yOdUV+j1y9oyEhfnOYtCtmnWt5NDE7iZkvJWeTdJjrE30QpD vGI0NH385FMEEyoNKkw4lbmQf4yi+RyLpOvvaJCKiuKEdzhj1EkvP2XfEeJJdH4iivuH poGw== 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 b9-v6si9378050plr.267.2018.10.05.14.19.38; Fri, 05 Oct 2018 14:19:54 -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 S1726832AbeJFET6 (ORCPT + 99 others); Sat, 6 Oct 2018 00:19:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49086 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbeJFET6 (ORCPT ); Sat, 6 Oct 2018 00:19:58 -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 A5DC7308ED66; Fri, 5 Oct 2018 21:19:26 +0000 (UTC) Received: from amt.cnet (ovpn-112-2.gru2.redhat.com [10.97.112.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 299155C22B; Fri, 5 Oct 2018 21:19:26 +0000 (UTC) Received: from amt.cnet (localhost [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id E788E105148; Fri, 5 Oct 2018 18:18:57 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.7/8.14.7/Submit) id w95LIfkI012495; Fri, 5 Oct 2018 18:18:41 -0300 Date: Fri, 5 Oct 2018 18:18:41 -0300 From: Marcelo Tosatti To: Vitaly Kuznetsov 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 Message-ID: <20181005211838.GB7129@amt.cnet> References: <20180914125006.349747096@linutronix.de> <87sh1ne64t.fsf@vitty.brq.redhat.com> <20181003190617.GC21381@amt.cnet> <87k1mycfju.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k1mycfju.fsf@vitty.brq.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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.44]); Fri, 05 Oct 2018 21:19:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 04, 2018 at 09:54:45AM +0200, Vitaly Kuznetsov wrote: > 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). In that case just use TSC clocksource on the guest directly: i am writing code for that now (its faster than pvclock syscall). > - 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? As Peter mentioned, non sync TSC hardware might exist in the future. And older hardware must be supported.