Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4162263imu; Mon, 7 Jan 2019 17:06:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN7E8BDrpSx07eC1cWxhIfIyuCPalu4Hj8gIrinZ4rUL0Km83v7rI/XnkNnSK0IJrM3opud2 X-Received: by 2002:a17:902:5a0b:: with SMTP id q11mr21303133pli.186.1546909591409; Mon, 07 Jan 2019 17:06:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546909591; cv=none; d=google.com; s=arc-20160816; b=LXI4xC34MDfwA3j39/dPClP+joeFrSzWMHyEwLYQiRtCgnHgzBE5Y7USKD7qLL6N3f HGxcAX89VMT1cZWAIocXBcK4dm3mviFpEDtmbiwcX32WA8AQjMMU1pfeN7jZ9Wj/mBLg NXtl1HsbTyDrgyS+N/f/hvwYuLUiSd0uXQsIFhxeicnPH37tgUSnkh2vV4gZsN+6sapM tJnKvHhtyHDo8GbfwBJRPTLwCJqZu5iZpYnxjoaXbbiUcH2T1GxLh0LOr4qiWtdAILEW wrTEpTuUFWWDwabMrZ/2vSCqln4lTnCjOWMUdGyC6v1MO9bUHaEhnzjNHRFCVFMJaznA eT4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Jfz85C+6xrWpbT69Wjav07+ezscLJMqYctzQHWCklFg=; b=Z134ANsAYrhGKEohRDuF/8oULl+mlp/2pA4HKRpSMo7iqFOszoKY8hSip8bfleHBCB rIVVaCOfD1BhpnR5QRllibgxh2+BX00fEoRiZ0b1nCf4+L/qijh25NbuoWCg91vncRfG PFgBUKtQv10fnJbRPZnhPhQZt4Dm+bLh9rqRzvYRdxsuqu7gPI1qWdT3DEidMtrEH2Hs A9NKnGoU2haeUTEppEN1tLyS9wzRkBOWBK6T980GNlf+KvkjeIEKMRp2cPQU+LblS+sr wcHYbylGbLfoikw3ekCNLMKIzSQWS5in00CyHUBCULB6XJtQMKH/Oq44IDnb2Q9GnRPJ 7q1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=KuMzPMpW; 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 r19si4656912plx.321.2019.01.07.17.06.15; Mon, 07 Jan 2019 17:06:31 -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=KuMzPMpW; 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 S1727145AbfAHBEy (ORCPT + 99 others); Mon, 7 Jan 2019 20:04:54 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:44260 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbfAHBEy (ORCPT ); Mon, 7 Jan 2019 20:04:54 -0500 Received: by mail-ed1-f66.google.com with SMTP id y56so2607042edd.11 for ; Mon, 07 Jan 2019 17:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Jfz85C+6xrWpbT69Wjav07+ezscLJMqYctzQHWCklFg=; b=KuMzPMpWsYUa4V2oUUHrzzpOTJYXO2dqqCAjYwyVHyNXddv3jYfWDPsNzvow2YL7Z5 NH+U1ZsiFkQIPAqlNKepfhxjzrSN3BnY6OZ92U3RhNKab8TR4oOJyGhS7Np9EYl2PGgF l8iyZ+49B6rB3/xthA8fX/KQ3+g8Fi3ytRg3JVaHCNT8+0KLqhnOqV2M+lKcJ4Fs3QDD ZnDj7WOfoi32z3Y1dNxxbApvL2T2Wxtkn8E/0Mg73DAURRFuJGa3DhSSS4kGDJ1Keylo 9d11yyf8N5Dl4YpXS2Z1Yh/ArQKHnW2z0g7FhRjLCcpP8DCQqDQOOuh72pl3o0x4xqLT TDjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Jfz85C+6xrWpbT69Wjav07+ezscLJMqYctzQHWCklFg=; b=jtfrtgpOMT9+9c8BFcTAi3EU7dHX+QnII8YMShdCQgJSGMp9KFW2rg24bjTFUpHXTW 5PVTnZ+JZcySchUXbNieZoi8pthARAQtASagAzktPQGj9RivLHE7tqrgw0u5UT/NUpZb KC/IZBBwI1LBw9fwjdskZlgX1c5JZfCShCGDehzsDG98UPOoYNBpbM4uGGQy0Yo2BTrR TrxybyR/ZRWWS9NU9b7w7edf31+GCDft6I+LGI/54DjxxHOQgR2nVt3Wz5KzY4p6H2yd n/H1Ovkjunh/yHXmuCbgbrwRJet/IGnny3nOljzU6QdM7CCjDfBFFEOh6AWjwyymvxvT jpew== X-Gm-Message-State: AJcUukd+96cEUG2eEJ/lqKmEiKAVadTlrvqfKDAVbcGOYQxqiEJuQBet LuvnA17dzzY9lGtOrjy+cl7a6g7DTkdwvLwF4tGwDw== X-Received: by 2002:a17:906:1598:: with SMTP id k24-v6mr86559ejd.132.1546909492272; Mon, 07 Jan 2019 17:04:52 -0800 (PST) MIME-Version: 1.0 References: <20180719205545.16512-1-pasha.tatashin@oracle.com> <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> In-Reply-To: <20190107234839.GA15269@nautica> From: Pavel Tatashin Date: Mon, 7 Jan 2019 20:04:41 -0500 Message-ID: Subject: Re: [PATCH v15 23/26] sched: early boot clock To: Dominique Martinet Cc: 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I did exactly the same sequence on Kaby Lake CPU and could not reproduce it. What is your host CPU? Thank you, Pasha On Mon, Jan 7, 2019 at 6:48 PM Dominique Martinet wrote: > > Pavel Tatashin wrote on Mon, Jan 07, 2019: > > I could not reproduce the problem. Did you suspend to memory between > > wake ups? Does this time jump happen every time, even if your laptop > > sleeps for a minute? > > I'm not sure I understand "suspend to memory between the wake ups". > The full sequence is: > - start a VM (just in case, I let it boot till the end) > - suspend to memory (aka systemctl suspend) the host > - after resuming the host, soft reboot the VM (login through > serial/ssh/whatever and reboot or in the qemu console 'system_reset') > > I've just slept exactly one minute and reproduced again with the fedora > stock kernel now (4.19.13-300.fc29.x86_64) in the VM. > > Interestingly I'm not getting the same offset between multiple reboots > now despite not suspending again; but if I don't suspend I cannot seem > to get it to give an offset at all (only tried for a few minutes; this > might not be true) ; OTOH I pushed my luck further and even with a five > seconds sleep I'm getting a noticeable offset on first VM reboot after > resume: > > [ 0.000000] Hypervisor detected: KVM > [ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00 > [ 179.362163] kvm-clock: cpu 0, msr 13c01001, primary cpu clock > [ 179.362163] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns > > Honestly not sure what more information I could give, I'll try on some > other hardware than my laptop (if I can get a server to resume after > suspend through ipmi or wake on lan); but I don't have anything I could > install ubuntu on to try their qemu's version... although I really don't > want to believe that's the difference... > > Thanks, > -- > Dominique