ia64/xen-unstable

changeset 15986:3c1e76dda38b

vt-d: Fix crash on x86/32.

On 32-bit xen, dom0 crashes when using VT-d to assign devices. It is
caused by setting m2p in clear_mmio_p2m_entry(), because
machine_to_phys_map[] entry for mmio address is not mapped.

Signed-off-by: Weidong Han <weidong.han@intel.com>
author Keir Fraser <keir@xensource.com>
date Wed Sep 26 09:15:34 2007 +0100 (2007-09-26)
parents e54226c3b796
children 0b873d909ad3
files xen/arch/x86/mm/p2m.c
line diff
     1.1 --- a/xen/arch/x86/mm/p2m.c	Wed Sep 26 09:14:33 2007 +0100
     1.2 +++ b/xen/arch/x86/mm/p2m.c	Wed Sep 26 09:15:34 2007 +0100
     1.3 @@ -912,11 +912,6 @@ clear_mmio_p2m_entry(struct domain *d, u
     1.4      }
     1.5      rc = set_p2m_entry(d, gfn, _mfn(INVALID_MFN), 0);
     1.6  
     1.7 -#if !defined(__x86_64__)
     1.8 -    /* x86_64 xen does not map mmio entries in machine_to_phys_mapp[] */
     1.9 -    set_gpfn_from_mfn(mfn, INVALID_M2P_ENTRY);
    1.10 -#endif
    1.11 -
    1.12      return rc;
    1.13  }
    1.14