[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20160503153048.GB27975@potion>
Date: Tue, 3 May 2016 17:30:48 +0200
From: Radim <rkrcmar@...hat.com>
To: Wanpeng Li <wanpeng.li@...mail.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>,
Wincy Van <fanwenyi0529@...il.com>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kvm: robustify steal time record
2016-05-03 03:19+0000, Wanpeng Li:
> From: Wanpeng Li <wanpeng.li@...mail.com>
>
> Guest should only trust data to be valid when version haven't changed
> before and after reads of steal time. Besides not changing, it has to
> be an even number. Hypervisor may write an odd number to version field
> to indicate that an update is in progress.
>
> kvm_steal_clock() in guest has already done the read side, make write
> side in hypervisor more robust by following the above rule.
>
> Reviewed-by: Wincy Van <fanwenyi0529@...il.com>
> Signed-off-by: Wanpeng Li <wanpeng.li@...mail.com>
> ---
Queued, thanks.
Powered by blists - more mailing lists