On 02/06/2013 01:49 AM, Michael Wolf wrote:I may be missing something, but how do we know how much time has passed? That is whyAdd a helper routine to scheduler/core.c to allow the kvm moduleSorry: What is the business of a timer in here?
to retrieve the cpu hardlimit settings. The values will be used
to set up a timer that is used to separate the consigned from the
steal time.
Whenever we read steal time, we know how much time has passed and with
that information we can know the entitlement for the period. This breaks
if we suspend, but we know that we suspended, so this is not a problem.
I agree provided I know the amount of total time that the steal time was accumulated.
Everything bigger the entitlement is steal time.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html