From: "Jan Beulich" Subject: [PATCH] x86/nested HAP: don't BUG() on legitimate error Date: Fri, 11 Apr 2014 11:28:14 +0100 Message-ID: <5347DFDE0200007800007ECC@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part112308AE.0__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WYYgx-0002Sn-Ue for xen-devel@lists.xenproject.org; Fri, 11 Apr 2014 10:28:16 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Tim Deegan List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part112308AE.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 --- 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); } } =20 --=__Part112308AE.0__= Content-Type: text/plain; name="x86-nHAP-fix-p2m-failure.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-nHAP-fix-p2m-failure.patch" x86/nested HAP: don't BUG() on legitimate error=0A=0Aset_p2m_entry() can = fail without there being a bug in the code - crash=0Athe domain rather = than the host in that case.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/mm/hap/nested_hap.c=0A+++ b/xen/arch/x86/mm/ha= p/nested_hap.c=0A@@ -133,7 +133,7 @@ nestedhap_fix_p2m(struct vcpu *v, = struct=0A gdprintk(XENLOG_ERR,=0A "failed to set = entry for %#"PRIx64" -> %#"PRIx64"\n",=0A L2_gpa, L0_gpa);=0A= - BUG();=0A+ domain_crash(p2m->domain);=0A }=0A }=0A =0A --=__Part112308AE.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part112308AE.0__=--