From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjRpA-00035D-AY for qemu-devel@nongnu.org; Tue, 06 Oct 2015 08:58:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjRp6-0008S2-V6 for qemu-devel@nongnu.org; Tue, 06 Oct 2015 08:58:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjRp6-0008RS-PV for qemu-devel@nongnu.org; Tue, 06 Oct 2015 08:58:28 -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> From: Paolo Bonzini Message-ID: <5613C56C.1050500@redhat.com> Date: Tue, 6 Oct 2015 14:58:20 +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 14:49, Peter Maydell wrote: > Yeah, there's no guarantee on userspace access. I think the > fastest way to get some kind of count is to use a library > function that boils down to gettimeofday(2), which we will > do purely in userspace in the kernel VDSO if possible. Could we just use CNTVCT_EL0? Which cores have it? Paolo