From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: XSA-60 - how to get back to a sane state Date: Tue, 3 Dec 2013 15:14:57 +0000 Message-ID: <529DF571.3010107@eu.citrix.com> References: <529CA7250200007800108CB8@nat28.tlf.novell.com> <529CE2D5.7030805@eu.citrix.com> <529D4030.6040501@citrix.com> <529D9DA902000078001092BC@nat28.tlf.novell.com> <529E022D02000078001097C8@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vnrgm-00043q-BA for xen-devel@lists.xenproject.org; Tue, 03 Dec 2013 15:15:05 +0000 In-Reply-To: <529E022D02000078001097C8@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , Andrew Cooper , Jinsong Liu , xen-devel Cc: Zhenzhong Duan , Keir Fraser , Jun Nakajima , Donald D Dugger List-Id: xen-devel@lists.xenproject.org On 12/03/2013 03:09 PM, Jan Beulich wrote: >>>> 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. Is this still about guests doing wbinvd? As Jan said, there is no point in doing wbinvd piecemeal: if it's not 100% reliable (to the best of our knowledge), then the more unreliable the better really. -George