]> xenbits.xensource.com Git - xen.git/commitdiff
x86/nested HAP: don't BUG() on legitimate error
authorJan Beulich <jbeulich@suse.com>
Mon, 14 Apr 2014 10:50:56 +0000 (12:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Apr 2014 10:50:56 +0000 (12:50 +0200)
p2m_set_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>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/hap/nested_hap.c

index 5c41725f1d76e910c87b4d99fd54123a1e35c9fd..9d8bfc884e14cd7bc7daf4a0b5b4493ca420f7cb 100644 (file)
@@ -134,7 +134,7 @@ nestedhap_fix_p2m(struct vcpu *v, struct p2m_domain *p2m,
         gdprintk(XENLOG_ERR,
                  "failed to set entry for %#"PRIx64" -> %#"PRIx64" rc:%d\n",
                  L2_gpa, L0_gpa, rc);
-        BUG();
+        domain_crash(p2m->domain);
     }
 }