From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjS0n-0008Jm-Lc for qemu-devel@nongnu.org; Tue, 06 Oct 2015 09:10:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjS0j-0007DU-P5 for qemu-devel@nongnu.org; Tue, 06 Oct 2015 09:10:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjS0j-0007DP-JD for qemu-devel@nongnu.org; Tue, 06 Oct 2015 09:10:29 -0400 References: <1430417667-4245-5-git-send-email-christopher.covington@linaro.org> <1443123824-26866-1-git-send-email-cov@codeaurora.org> <560A9B3B.3090407@codeaurora.org> <560EB472.1000901@codeaurora.org> <560EDA12.1090307@codeaurora.org> <560EEDBA.2020201@codeaurora.org> <561284B0.4070007@redhat.com> <561288D0.9000205@redhat.com> <5613C56C.1050500@redhat.com> From: Paolo Bonzini Message-ID: <5613C83D.20908@redhat.com> Date: Tue, 6 Oct 2015 15:10:21 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-arm: Use common CPU cycle infrastructure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "qemu-devel@nongnu.org Developers" , Laurent Vivier , Peter Crosthwaite , Christopher Covington , Alistair Francis On 06/10/2015 15:06, Peter Maydell wrote: > Looking closer, clock_gettime() also has a userspace > only fastpath in the VDSO. Yup, hence the patch that changed the default cpu_get_real_ticks() implementation to get_clock(). >> > Could we just use CNTVCT_EL0? Which cores have it? > > Not guaranteed to be enabled for userspace access by the kernel, > and even if it is enabled, the kernel folks don't (last time I > checked) consider this userspace ABI -- it's only there for > the benefit of the VDSO. Ok, thanks. > (CNTVCT_EL0 is how the fast clock_gettime > and getimeofday paths are implemented.) Yes. Paolo