On Thu, Feb 26, 2009 at 02:42:20PM -0500, Glauber Costa wrote: > Matt T. Yourst noted that we're currently having a dumb > race for no reason in paravirtual wall clock. This is due > to the use of a static variable to hold the counting. > > This can race with multiple guests reading wallclock > at the same time, since the static variable value would > then be accessible to all callers. This wasn't noted > before because it is a rather rare scenario. > > Instead, just use a normal stack variable. This will > mean that each caller will have it's version written > separatedly. No need for a global counter. Applied, thanks. -- 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