From: "Jan Beulich" Subject: Re: XSA-60 - how to get back to a sane state Date: Tue, 03 Dec 2013 15:09:17 +0000 Message-ID: <529E022D02000078001097C8@nat28.tlf.novell.com> References: <529CA7250200007800108CB8@nat28.tlf.novell.com> <529CE2D5.7030805@eu.citrix.com> <529D4030.6040501@citrix.com> <529D9DA902000078001092BC@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VnrbH-0003NB-IQ for xen-devel@lists.xenproject.org; Tue, 03 Dec 2013 15:09:23 +0000 In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper , George Dunlap , Jinsong Liu , xen-devel Cc: Zhenzhong Duan , Keir Fraser , Jun Nakajima , Donald D Dugger List-Id: xen-devel@lists.xenproject.org >>> On 03.12.13 at 15:30, "Liu, Jinsong" wrote: > Jan Beulich wrote: >>>>> On 03.12.13 at 04:06, "Liu, Jinsong" wrote: >>> I also vote option 2, but only revert 86d60e85, keeping 62652c00 >>> (wbinvd at vmx_ctxt_switch_to) since it's used to avoid being >>> polluted when vcpu migrate to another cpu. >> >> Please explain this in more detail. Both Andrew and I are concerned >> about this extra, but pretty pointless (without being done so too in >> other cases) wbinvd(). In particular you'd have to explain what its >> counterpart was in the code prior to your four patch XSA-60 series. > > The wbinvd at vmx_ctxt_switch_to is for case like > 1. vcpu runs at cpu A, flushing cache at vmx_handle_cd; > 2. then the vcpu may switch out and migrate to cpu B; > 3. historically cpu B may has cacheline polluted; > so when the vcpu is scheduled to cpu B, we need flush cache. But you didn't clarify whether/how this case was taken care of _before_ your XSA-60 patches. Jan