Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1677098imu; Sat, 26 Jan 2019 08:12:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN6cLj1iBoBSMxzv0iu9B4K4nOyvrXpAq1MlqvZGxFhjqtNVzzhNCLlVjCYmqsYLbJQMFk3K X-Received: by 2002:a62:2f06:: with SMTP id v6mr15571564pfv.216.1548519120848; Sat, 26 Jan 2019 08:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548519120; cv=none; d=google.com; s=arc-20160816; b=eeT6YVRekvmIAn3GsDJ+q01/xzCYGWafXUoDuBRPYPer1OfoFoTw5kaqeePI/0ID0n ReprfOqKGCtcV4u5PWiHtAeF74XTZg/0/hEZ7XlxQADYw4D0myBPe0tuMt6HtOjBQrs0 Ch0QWcu1vQp0aUPa5NW4IacxYQVYNWv8qaC0ShIItQzFR969SHn+2WIyC4Zu/RS9+PoW YTlEPL0SEd6DsaH1AaMzdbpJthirXGwxlnGcheaLHRlFtBjxdaCfUC+L405qsAqwYhqd MUAecMvdBXPqwmQT/vf9QQe/uCjzX/oeWcvp5D4W6dXAJEBYtapUrqKgcTgoRKRrJWLa Qi6A== 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:to :from:date:dkim-signature; bh=qMd7WMckPBU0J6P8gJd3WW2lm+h/vDzeqvk7uGoCQXc=; b=u3+ogVql8XOOgvdeDAFYg4R+URGOlqSq/t0YWMyKU14U7yLYstesHGpR6tbP1Gqyx/ APuFLrhEzaonGGzUDC6Nb3yytmbCDXGCEJJNou6adBjFib2rdzDu+F4UlzY9H8utjAq5 OCl9HSXuhv5KsOnBUQFi/sN5gkE3jaZt3wFp9OVyxZD2Og/ZZKMCSWl886ultG9P/ARi iZ8k0ZV+vB0KcuXPcTe/+tNmcjZl0VQi7agjXOBuyacqRRuumtBSr68icQFvm3A5ElJx sEw5maN/XZfnJiqdK0T8lQJvvd9i+w5NR4Cx2PD9KRfS/aTG5i9plTic1iONaauxieiu toNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=DN2I3sui; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k134si28966551pga.401.2019.01.26.08.11.45; Sat, 26 Jan 2019 08:12:00 -0800 (PST) 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; dkim=pass header.i=@soleen.com header.s=google header.b=DN2I3sui; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726309AbfAZQLl (ORCPT + 99 others); Sat, 26 Jan 2019 11:11:41 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:35587 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbfAZQLl (ORCPT ); Sat, 26 Jan 2019 11:11:41 -0500 Received: by mail-qk1-f195.google.com with SMTP id w204so7188463qka.2 for ; Sat, 26 Jan 2019 08:11:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qMd7WMckPBU0J6P8gJd3WW2lm+h/vDzeqvk7uGoCQXc=; b=DN2I3sui3BoN5qNJkF7fP017LUiRES8atPONLF1vfsJ5Ir0CdVJIlhwdd7b6kLfRx5 zRm48QgKPkqbvFjJbVnYy7qaKQ7/UQvOTz5fs+Fc4eSVN7ou1McmOiexePv5vtlxi6qr W6ZNhFxQ/oPOxc+TgAVXcZmsJo5DIhqYJ5rq420TVTgn2rlv6utu8TyeR/feTzsXUDSp SIqY289JsJaNFet++7Q33mPLq+NghL/a6sf1ESJ4gBJPfFj8ZVrXLkMsJA++DDjDgcUM lL7WdApGhHffBYL/3O+NNZ3th2MftCMfcZpg4zSMz49MHJa1kj5Ma9NIyNUMmhyHBVMA gt6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qMd7WMckPBU0J6P8gJd3WW2lm+h/vDzeqvk7uGoCQXc=; b=RWA7EN8PIlbzcjmyIxjwJIFh4sawD9xm9BcnlmP+27HH2tl3LWnuMuKeHA4l+C8+J6 soEE8F8mSSiiIx1MPi8sCe3W1Yx9pUx7eGoaPDkBhG0+qXNO+NzVVh6u3fwyaD6l3lkS zxIOGxFZv9OQEwHw2QbrBw//wdac/O0aGWvp6HycPiDmlX894ByZrKwEf9xCvI8iORdy /EgaS8ceMVoJmbKurIpHbBa6/KQGHG+F23CXG06ks/G+Cz9nnbTgGKBlFNkVksyWYI/o AgUH8AIGtRDMiQHraQb/CfcAogActztQLnE1D5m09WICIlqHWYXJrRdW8ELCYNXO2QYl lVUQ== X-Gm-Message-State: AJcUukelYUCRL03G7w6pAW6G+8DhX+WVgXnrlW9IjxFi7OgrIG7rePu6 reZ2thZlbVB5AXGMjQclEt5w/A== X-Received: by 2002:a37:8247:: with SMTP id e68mr13794945qkd.248.1548519099609; Sat, 26 Jan 2019 08:11:39 -0800 (PST) Received: from soleen.tm1wkky2jk1uhgkn0ivaxijq1c.bx.internal.cloudapp.net ([40.117.208.181]) by smtp.gmail.com with ESMTPSA id o49sm86435749qtf.60.2019.01.26.08.11.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 Jan 2019 08:11:38 -0800 (PST) Date: Sat, 26 Jan 2019 16:11:37 +0000 From: Pavel Tatashin To: Dominique Martinet , Salvatore Bonaccorso , Steven Sistare , Pavel Tatashin , Daniel Jordan , linux@armlinux.org.uk, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, John Stultz , sboyd@codeaurora.org, x86@kernel.org, LKML , mingo@redhat.com, Thomas Gleixner , hpa@zytor.com, douly.fnst@cn.fujitsu.com, Peter Zijlstra , prarit@redhat.com, feng.tang@intel.com, Petr Mladek , gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org, boris.ostrovsky@oracle.com, jgross@suse.com, pbonzini@redhat.com, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, qemu-devel@nongnu.org Subject: Re: [PATCH v15 23/26] sched: early boot clock Message-ID: <20190126161137.gme4vsrz3xmncbkx@soleen.tm1wkky2jk1uhgkn0ivaxijq1c.bx.internal.cloudapp.net> References: <20180719205545.16512-24-pasha.tatashin@oracle.com> <20181106054212.GA31768@nautica> <95c3920e-bf80-0c7e-7854-01a1c3189c23@oracle.com> <20190102202032.GA1034@eldamar.local> <20190103234339.GA17457@nautica> <20190107234839.GA15269@nautica> <20190126020410.GB3796@feynman.vault24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190126020410.GB3796@feynman.vault24.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-01-25 21:04:10, Jon DeVree wrote: > > * KVM_FEATURE_CLOCKSOURCE_STABLE_BIT is always set by the hypervisor > starting with Linux v2.6.35 - 371bcf646d17 ("KVM: x86: Tell the guest > we'll warn it about tsc stability") > * PVCLOCK_TSC_STABLE_BIT is set starting in Linux v3.8 but only if the > clocksource is the TSC - d828199e8444 ("KVM: x86: implement > PVCLOCK_TSC_STABLE_BIT pvclock flag") > > I changed the clocksource of a hypervisor that wasn't having issues from > TSC to HPET and when I started up a guest VM the bug suddenly appeared. > I shut down the guest, set the hypervisor's clocksource back to TSC, > started up the guest and the bug went away again. > > You don't actually have to reboot the guest before the bug is visible > either, just letting the guest sit at the GRUB menu for a minute or two > before loading Linux is enough to make the bug plainly visible in the > printk timestamps. > > I don't know enough to actually fix the bug, but hopefully this is > enough to allow everyone else to reproduce it and come up with a fix. Thank you very much for your analysis, I am now able to reproduce the problem by setting clocksource on my machine to hpet. I will soon submit a patch with a fix. Pasha > > -- > Jon > X(7): A program for managing terminal windows. See also screen(1) and tmux(1).