[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] vt-d: Fix crash on x86/32.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1190794534 -3600
# Node ID 3c1e76dda38b2e584637a3acdb0b7d14eefd2024
# Parent  e54226c3b7965124718e9b070e099cd2e494ad6a
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@xxxxxxxxx>
---
 xen/arch/x86/mm/p2m.c |    5 -----
 1 files changed, 5 deletions(-)

diff -r e54226c3b796 -r 3c1e76dda38b xen/arch/x86/mm/p2m.c
--- a/xen/arch/x86/mm/p2m.c     Wed Sep 26 09:14:33 2007 +0100
+++ b/xen/arch/x86/mm/p2m.c     Wed Sep 26 09:15:34 2007 +0100
@@ -912,11 +912,6 @@ clear_mmio_p2m_entry(struct domain *d, u
     }
     rc = set_p2m_entry(d, gfn, _mfn(INVALID_MFN), 0);
 
-#if !defined(__x86_64__)
-    /* x86_64 xen does not map mmio entries in machine_to_phys_mapp[] */
-    set_gpfn_from_mfn(mfn, INVALID_M2P_ENTRY);
-#endif
-
     return rc;
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.