From: "Jan Beulich" Subject: Re: [PATCH] x86: convert BUG_ON()s to WARN_ON()s in read_descriptor() Date: Thu, 15 Dec 2011 13:06:02 +0000 Message-ID: <4EE9FECA020000780006821A@nat28.tlf.novell.com> References: <4EE9D92A020000780006813A@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 15.12.11 at 13:36, Keir Fraser wrote: > On 15/12/2011 10:25, "Jan Beulich" wrote: > >> In the light of AMD erratum #700, and given that these checks happen >> for debugging purposes only and also only in debug builds of the >> hypervisor, make the failures non-fatal. >> >> Signed-off-by: Jan Beulich > > Is this erratum published? Yes, it is in their most recent public revision guide. Jan >> --- a/xen/arch/x86/traps.c >> +++ b/xen/arch/x86/traps.c >> @@ -1544,11 +1544,11 @@ static int read_descriptor(unsigned int >> asm volatile ( >> "larl %2,%0 ; setz %1" >> : "=r" (a), "=qm" (valid) : "rm" (sel)); >> - BUG_ON(valid && ((a & 0x00f0ff00) != *ar)); >> + WARN_ON(valid && ((a & 0x00f0ff00) != *ar)); >> asm volatile ( >> "lsll %2,%0 ; setz %1" >> : "=r" (l), "=qm" (valid) : "rm" (sel)); >> - BUG_ON(valid && (l != *limit)); >> + WARN_ON(valid && (l != *limit)); >> } >> #endif >> } >> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel