This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [IA64] Modify p2m converter to avoid hype

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Modify p2m converter to avoid hypervisor crash
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Oct 2006 12:10:23 +0000
Delivery-date: Thu, 26 Oct 2006 05:11:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 3470d9cd27e5caf555b3df6e1b29ae4f3f96c3ac
# Parent  f34e37d0742d80ccfefd017a91f93310ebc2dfe8
[IA64] Modify p2m converter to avoid hypervisor crash

Crash occurs during destruction of VT-i domain with PV-on-HVM.

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@xxxxxxxxxxxxxx>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@xxxxxxxxxxxxxx>
 xen/arch/ia64/xen/mm.c |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r f34e37d0742d -r 3470d9cd27e5 xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Tue Sep 26 19:11:33 2006 -0600
+++ b/xen/arch/ia64/xen/mm.c    Sun Oct 01 10:48:40 2006 -0600
@@ -396,6 +396,12 @@ gmfn_to_mfn_foreign(struct domain *d, un
        unsigned long pte;
+       // This function may be called from __gnttab_copy()
+       // during destruction of VT-i domain with PV-on-HVM driver.
+       if (unlikely(d->arch.mm.pgd == NULL)) {
+               if (VMX_DOMAIN(d->vcpu[0]))
+                       return INVALID_MFN;
+       }
        pte = lookup_domain_mpa(d,gpfn << PAGE_SHIFT, NULL);
        if (!pte) {
                panic("gmfn_to_mfn_foreign: bad gpfn. spinning...\n");

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Modify p2m converter to avoid hypervisor crash, Xen patchbot-unstable <=