From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755088AbcCBLbB (ORCPT ); Wed, 2 Mar 2016 06:31:01 -0500 Received: from foss.arm.com ([217.140.101.70]:57940 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752285AbcCBLa7 (ORCPT ); Wed, 2 Mar 2016 06:30:59 -0500 Subject: Re: [tip:timers/core] hrtimer: Add support for CLOCK_MONOTONIC_RAW To: mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, tn@semihalf.com, christoffer.dall@linaro.org, linux-tip-commits@vger.kernel.org References: <1452879670-16133-2-git-send-email-marc.zyngier@arm.com> From: Marc Zyngier X-Enigmail-Draft-Status: N1110 Organization: ARM Ltd Message-ID: <56D6CEF0.8060607@arm.com> Date: Wed, 2 Mar 2016 11:30:56 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thomas, On 27/01/16 11:42, tip-bot for Marc Zyngier wrote: > Commit-ID: 9c808765e88efb6fa6af7e2206ef89512f1840a7 > Gitweb: http://git.kernel.org/tip/9c808765e88efb6fa6af7e2206ef89512f1840a7 > Author: Marc Zyngier > AuthorDate: Fri, 15 Jan 2016 17:41:08 +0000 > Committer: Thomas Gleixner > CommitDate: Wed, 27 Jan 2016 12:38:04 +0100 > > hrtimer: Add support for CLOCK_MONOTONIC_RAW > > The KVM/ARM timer implementation arms a hrtimer when a vcpu is > blocked (usually because it is waiting for an interrupt) > while its timer is going to kick in the future. > > It is essential that this timer doesn't get adjusted, or the > guest will end up being woken-up at the wrong time (NTP running > on the host seems to confuse the hell out of some guests). > > In order to allow this, let's add CLOCK_MONOTONIC_RAW support > to hrtimer (it is so far only supported for posix timers). It also > has the (limited) benefit of fixing de0421d53bfb ("mac80211_hwsim: > shuffle code to prepare for dynamic radios"), which already uses > this functionnality without realizing wasn't implemented (just being > lucky...). > > Signed-off-by: Marc Zyngier > Cc: Tomasz Nowicki > Cc: Christoffer Dall > Link: http://lkml.kernel.org/r/1452879670-16133-2-git-send-email-marc.zyngier@arm.com > Signed-off-by: Thomas Gleixner I'm afraid this patch is terminally broken - I managed to make this fall over pretty easily (hint to self: __hrtimer_get_next_event needs some serious thoughts to deal with MONOTONIC_RAW, and so does hrtimer_forward at the very least). Can you please drop (or revert): a6e707d KVM: arm/arm64: timer: Switch to CLOCK_MONOTONIC_RAW 9006a01 hrtimer: Catch illegal clockids 9c80876 hrtimer: Add support for CLOCK_MONOTONIC_RAW Thanks, and sorry for the noise. M. -- Jazz is not dead. It just smells funny...