Il 14/06/2013 23:30, Marcelo Tosatti ha scritto:
> 
> Serialize RDTSC so its executed inside kvmclock_read 
> section.
> 
> Fixes https://bugzilla.redhat.com/show_bug.cgi?id=922285
> 
> Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com>
> 
> diff --git a/x86/kvmclock.c b/x86/kvmclock.c
> index 0624da3..5b831c5 100644
> --- a/x86/kvmclock.c
> +++ b/x86/kvmclock.c
> @@ -177,10 +177,10 @@ cycle_t pvclock_clocksource_read(struct 
> pvclock_vcpu_time_info *src)
>  
>       do {
>               version = pvclock_get_time_values(&shadow, src);
> -             barrier();
> +             mb();
>               offset = pvclock_get_nsec_offset(&shadow);
>               ret = shadow.system_timestamp + offset;
> -             barrier();
> +             mb();
>       } while (version != src->version);
>  
>       if ((valid_flags & PVCLOCK_RAW_CYCLE_BIT) ||
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Applied, thanks.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to