From: Zachary Amsden Date: Fri, 20 Aug 2010 08:07:25 +0000 (-1000) Subject: KVM: x86: Add helper functions for time computation X-Git-Tag: v2.6.37-rc1~142^2~163 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=759379dd68c2885d1fafa433083d4487e710a685;p=pandora-kernel.git KVM: x86: Add helper functions for time computation 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 Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed