lkml.org 
[lkml]   [2015]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kvm: x86: fix kvmclock update protocol
2015-04-23 13:46+0200, Paolo Bonzini:
> From: Radim Krčmář <rkrcmar@redhat.com>
>
> The kvmclock spec says that the host will increment a version field to
> an odd number, then update stuff, then increment it to an even number.
> The host is buggy and doesn't do this, and the result is observable
> when one vcpu reads another vcpu's kvmclock data.
>
> There's no good way for a guest kernel to keep its vdso from reading
> a different vcpu's kvmclock data, but we don't need to care about
> changing VCPUs as long as we read a consistent data from kvmclock.
> (VCPU can change outside of this loop too, so it doesn't matter if we
> return a value not fit for this VCPU.)
>
> Based on a patch by Radim Krčmář.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---

Nice,

Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>


\
 
 \ /
  Last update: 2015-04-23 18:01    [W:0.068 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site