All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/nested HAP: don't BUG() on legitimate error
@ 2014-04-11 10:28 Jan Beulich
  2014-04-11 11:08 ` Andrew Cooper
  2014-04-13 21:01 ` Tim Deegan
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Beulich @ 2014-04-11 10:28 UTC (permalink / raw)
  To: xen-devel; +Cc: Tim Deegan

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

set_p2m_entry() can fail without there being a bug in the code - crash
the domain rather than the host in that case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/x86/mm/hap/nested_hap.c
+++ b/xen/arch/x86/mm/hap/nested_hap.c
@@ -133,7 +133,7 @@ nestedhap_fix_p2m(struct vcpu *v, struct
         gdprintk(XENLOG_ERR,
 		"failed to set entry for %#"PRIx64" -> %#"PRIx64"\n",
 		L2_gpa, L0_gpa);
-        BUG();
+        domain_crash(p2m->domain);
     }
 }
 




[-- Attachment #2: x86-nHAP-fix-p2m-failure.patch --]
[-- Type: text/plain, Size: 543 bytes --]

x86/nested HAP: don't BUG() on legitimate error

set_p2m_entry() can fail without there being a bug in the code - crash
the domain rather than the host in that case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/x86/mm/hap/nested_hap.c
+++ b/xen/arch/x86/mm/hap/nested_hap.c
@@ -133,7 +133,7 @@ nestedhap_fix_p2m(struct vcpu *v, struct
         gdprintk(XENLOG_ERR,
 		"failed to set entry for %#"PRIx64" -> %#"PRIx64"\n",
 		L2_gpa, L0_gpa);
-        BUG();
+        domain_crash(p2m->domain);
     }
 }
 

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

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

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

end of thread, other threads:[~2014-04-13 21:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11 10:28 [PATCH] x86/nested HAP: don't BUG() on legitimate error Jan Beulich
2014-04-11 11:08 ` Andrew Cooper
2014-04-11 11:41   ` Jan Beulich
2014-04-13 21:01 ` Tim Deegan

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.