From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kai Huang Subject: Re: [PATCH v3] x86/EPT: work around hardware erratum setting A bit Date: Wed, 14 Oct 2015 09:17:23 +0800 Message-ID: <561DAD23.7020704@linux.intel.com> References: <560BE55602000078000A711F@prv-mh.provo.novell.com> <20150930122548.GM13821@zion.uk.xensource.com> <20151002093606.GE25714@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZmAkV-0002DF-JQ for xen-devel@lists.xenproject.org; Wed, 14 Oct 2015 01:20:59 +0000 In-Reply-To: <20151002093606.GE25714@zion.uk.xensource.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: Wei Liu , Jan Beulich Cc: Kevin Tian , George Dunlap , Andrew Cooper , xudong.hao@intel.com, Ross Lagerwall , Jun Nakajima , robert.hu@intel.com, xen-devel List-Id: xen-devel@lists.xenproject.org On 10/02/2015 05:36 PM, Wei Liu wrote: > On Wed, Sep 30, 2015 at 01:25:49PM +0100, Wei Liu wrote: >> On Wed, Sep 30, 2015 at 05:36:22AM -0600, Jan Beulich wrote: >>> Since commit 191b3f3344ee ("p2m/ept: enable PML in p2m-ept for >>> log-dirty"), the A and D bits of EPT paging entries are set >>> unconditionally, regardless of whether PML is enabled or not. This >>> causes a regression in Xen 4.6 on some processors due to Intel Errata >>> AVR41 -- HVM guests get severe memory corruption when the A bit is set >>> due to incorrect TLB flushing on mov to cr3. The errata affects the Atom >>> C2000 family (Avoton). >>> >>> To fix, do not set the A bit on this processor family. >>> >>> Signed-off-by: Ross Lagerwall >>> >>> Move feature suppression to feature detection code. Add command line >>> override. >>> >>> Signed-off-by: Jan Beulich >>> >> Release-acked-by: Wei Liu >> >> Thanks for handling this issue! > In light of both the author and vmx maintainer are on vacation until > October 8, I think we might as well commit this today. > > Kevin and Kai, when you're back, please have a look at this patch. And, > if you disagree with the approach, please provide a patch to be > backported to 4.6.1. Hi Wei, Sorry for late response. Our QA (Xudong and Robert, also copied here) has conducted PML testing on Xen 4.6 release (which contains this patch) and looks everything works fine. Thanks, -Kai > > Wei. >