ia64/xen-unstable
changeset 11636:3470d9cd27e5
[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@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Crash occurs during destruction of VT-i domain with PV-on-HVM.
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
author | awilliam@xenbuild.aw |
---|---|
date | Sun Oct 01 10:48:40 2006 -0600 (2006-10-01) |
parents | f34e37d0742d |
children | f6007621cc0c |
files | xen/arch/ia64/xen/mm.c |
line diff
1.1 --- a/xen/arch/ia64/xen/mm.c Tue Sep 26 19:11:33 2006 -0600 1.2 +++ b/xen/arch/ia64/xen/mm.c Sun Oct 01 10:48:40 2006 -0600 1.3 @@ -396,6 +396,12 @@ gmfn_to_mfn_foreign(struct domain *d, un 1.4 { 1.5 unsigned long pte; 1.6 1.7 + // This function may be called from __gnttab_copy() 1.8 + // during destruction of VT-i domain with PV-on-HVM driver. 1.9 + if (unlikely(d->arch.mm.pgd == NULL)) { 1.10 + if (VMX_DOMAIN(d->vcpu[0])) 1.11 + return INVALID_MFN; 1.12 + } 1.13 pte = lookup_domain_mpa(d,gpfn << PAGE_SHIFT, NULL); 1.14 if (!pte) { 1.15 panic("gmfn_to_mfn_foreign: bad gpfn. spinning...\n");