From: Radim <rkrcmar@redhat.com>
To: Wanpeng Li <wanpeng.li@hotmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Wincy Van <fanwenyi0529@gmail.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kvm: robustify steal time record
Date: Tue, 3 May 2016 17:30:48 +0200 [thread overview]
Message-ID: <20160503153048.GB27975@potion> (raw)
In-Reply-To: <SG2PR02MB15505F09CE84881969A53848807A0@SG2PR02MB1550.apcprd02.prod.outlook.com>
2016-05-03 03:19+0000, Wanpeng Li:
> From: Wanpeng Li <wanpeng.li@hotmail.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@gmail.com>
> Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
> ---
Queued, thanks.
next parent reply other threads:[~2016-05-03 15:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <SG2PR02MB15505F09CE84881969A53848807A0@SG2PR02MB1550.apcprd02.prod.outlook.com>
2016-05-03 15:30 ` Radim [this message]
2016-05-03 3:43 [PATCH] kvm: robustify steal time record Wanpeng Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160503153048.GB27975@potion \
--to=rkrcmar@redhat.com \
--cc=fanwenyi0529@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=wanpeng.li@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox