Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp31534pxu; Tue, 15 Dec 2020 14:37:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzc43b2PapeM1+TiTxLF7PGUu/CHpto4QvK0gVtAh18D1Lv8kKXhdjUR5Ows+pe0Aq1KyAh X-Received: by 2002:a17:906:1510:: with SMTP id b16mr17197629ejd.5.1608071826059; Tue, 15 Dec 2020 14:37:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608071826; cv=none; d=google.com; s=arc-20160816; b=FC8ugU/coXupWJJl6YP3l6YATEgFcD/dMm4X/J7a+glv4sXco7VTjr3pNdp1eCky9Q Xo4Cc+lsB1fyJVJi03LkGlfSwPRodpJ7r23XldALHgDzBTn8CVAXLAkyO/fzqsAH5ODh DUww29SdnabNi+cbwa0nVrXmqyRmdGvGn/w3T1sjigutuE+b3YfV8hbW4PGGKixB94y7 Ulziz3Sj/KLmvO+UKP0l8UWRzwNqlWyvX1ok8pvbFO9T3uDKe0hHhTqfgo3M7Eu6h2UP hMkPH06tjEgZAn34yo1FajE59U4/2GpoZIxyOfAHL9K+acv+AvdPMH8gcDFiphHYZ/DQ ctuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=AodAqwSxT8qVb0KNVb01jp7kOxVR15QYTpc+MfSTHL8=; b=OH1WFaK36DL9vVzDG7tlm1T/rA1GMdJrsjoZamFG3yFYNKx/0COY4vA8atwB9+o9sH MfvH4zWsBl2W6D2NhHMjMXKRPXKYmm6eOT6cMPARorfwYyZKXG9G/fGSylOc8jp2Qoy6 akHP0wHtboI0mkP2WKJEcK2eAIHpHyb/SoTFW1SlAcsSDHKJOrPy1KSNpsa+lE/bhwL2 cgbptg6Uj2Sf0VK40bZBD8o4LEVVnVv3K2mHJRMAODrir5NRFPI4VptxPZVVllWEa6na m1+nutwLQKCskML2IIal9ubs0x23G0o3taUeGbKsF7GdCs7PkNDG8PTxc+zVOJYctW9w U7pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nk8VxAGN; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si1615972edq.432.2020.12.15.14.36.38; Tue, 15 Dec 2020 14:37:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nk8VxAGN; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730803AbgLOWfn (ORCPT + 99 others); Tue, 15 Dec 2020 17:35:43 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:35416 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727068AbgLOWfc (ORCPT ); Tue, 15 Dec 2020 17:35:32 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1608071687; 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: in-reply-to:in-reply-to:references:references; bh=AodAqwSxT8qVb0KNVb01jp7kOxVR15QYTpc+MfSTHL8=; b=nk8VxAGN4PWz+BZskR1A7Ox9M88LfWpTvQWvEPGbIR3e9QpAkHchvLHzTskPnzzCRwPm7J VSKPwzdwmkABT8U6CFK18RmwXjRPIRS+FK8Wvqb0tmzRjU+cGXOoUdSRPUqEztcrFRsMHK yOvLBc+okyF+4Lm6Shyr04IBSmLzrLU4KAi3v6xYNYG1TUOv+zutwS8xDLSgz8+d/Pfl3S VEalFA2RgvrGIa1gYOqMREPl6f+bPfOfAQOGCd5Y+b90FjfoMVNijAFIUE6QdmDodiG9QE KSN7/xLQEOsXElnUhWGZFzVxCbpHtyBVqzMKmHXpmkF1QY6QUuJ9SDEioNOMfg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1608071687; 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: in-reply-to:in-reply-to:references:references; bh=AodAqwSxT8qVb0KNVb01jp7kOxVR15QYTpc+MfSTHL8=; b=1rEbFhcEjnOMCATHobfWvWljuRdE7JwGMfjuCVGsmjXXD7enxnAJLHm2POzi+c7JPQLhM+ mpYzmpNZp1Ti6LDg== To: Marcelo Tosatti , Paolo Bonzini Cc: Maxim Levitsky , kvm@vger.kernel.org, "H. Peter Anvin" , Jonathan Corbet , Jim Mattson , Wanpeng Li , "open list\:KERNEL SELFTEST FRAMEWORK" , Vitaly Kuznetsov , Sean Christopherson , open list , Ingo Molnar , "maintainer\:X86 ARCHITECTURE \(32-BIT AND 64-BIT\)" , Joerg Roedel , Borislav Petkov , Shuah Khan , Andrew Jones , Oliver Upton , "open list\:DOCUMENTATION" Subject: Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE In-Reply-To: <20201215105927.GA3321@fuller.cnet> References: <875z5c2db8.fsf@nanos.tec.linutronix.de> <20201209163434.GA22851@fuller.cnet> <87r1nyzogg.fsf@nanos.tec.linutronix.de> <20201210152618.GB23951@fuller.cnet> <87zh2lib8l.fsf@nanos.tec.linutronix.de> <20201211002703.GA47016@fuller.cnet> <87v9d8h3lx.fsf@nanos.tec.linutronix.de> <20201211141822.GA67764@fuller.cnet> <87k0togikr.fsf@nanos.tec.linutronix.de> <20201215105927.GA3321@fuller.cnet> Date: Tue, 15 Dec 2020 23:34:46 +0100 Message-ID: <877dpiu29l.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 15 2020 at 07:59, Marcelo Tosatti wrote: > On Fri, Dec 11, 2020 at 10:59:59PM +0100, Paolo Bonzini wrote: >> So it's still true that the time advances during live migration brownout; >> 0.1 seconds is just the final part of the live migration process. But for >> _live_ migration there is no need to design things according to "people are >> happy if their clock is off by 0.1 seconds only". > > Agree. What would be a good way to fix this? None of what's proposed is fixing the underlying problem of wreckaging CLOCK_REALTIME. Stop proliferating broken behaviour and please answer the questions I asked several times now: 1) Why has the TSC has to restart at the same value? 2) What is the technical argument that it is correct and acceptable to wreckage CLOCK_REALTIME by doing #1? Thanks, tglx