From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rik van Riel Subject: Re: [PATCH 08/18] Add helper functions for time computation Date: Wed, 14 Jul 2010 15:02:32 -0400 Message-ID: <4C3E09C8.2020806@redhat.com> References: <1278987938-23873-1-git-send-email-zamsden@redhat.com> <1278987938-23873-9-git-send-email-zamsden@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: KVM , Avi Kivity , Marcelo Tosatti , Glauber Costa , Linux-kernel To: Zachary Amsden Return-path: In-Reply-To: <1278987938-23873-9-git-send-email-zamsden@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 07/12/2010 10:25 PM, Zachary Amsden wrote: > Add a helper function to compute the kernel time and convert nanoseconds > back to CPU specific cycles. Note that these must not be called in preemptible > context, as that would mean the kernel could enter software suspend state, > which would cause non-atomic operation. > > Also, convert the KVM_SET_CLOCK / KVM_GET_CLOCK ioctls to use the kernel > time helper, these should be bootbased as well. > > Signed-off-by: Zachary Amsden Acked-by: Rik van Riel -- All rights reversed