All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: convert BUG_ON()s to WARN_ON()s in read_descriptor()
@ 2011-12-15 10:25 Jan Beulich
  2011-12-15 12:36 ` Keir Fraser
  2011-12-16  9:09 ` Keir Fraser
  0 siblings, 2 replies; 8+ messages in thread
From: Jan Beulich @ 2011-12-15 10:25 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 855 bytes --]

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 <jbeulich@suse.com>

--- 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
     }




[-- Attachment #2: amd-erratum-700.patch --]
[-- Type: text/plain, Size: 910 bytes --]

x86: convert BUG_ON()s to WARN_ON()s in read_descriptor()

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 <jbeulich@suse.com>

--- 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
     }

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-12-16 17:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-15 10:25 [PATCH] x86: convert BUG_ON()s to WARN_ON()s in read_descriptor() Jan Beulich
2011-12-15 12:36 ` Keir Fraser
2011-12-15 13:06   ` Jan Beulich
2011-12-15 13:10     ` Keir Fraser
2011-12-16  9:09 ` Keir Fraser
2011-12-16 14:44   ` Jan Beulich
2011-12-16 14:48     ` Keir Fraser
2011-12-16 17:59       ` Wei Huang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.