WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] vt-d: Fix crash on x86/32.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Sep 2007 15:50:08 -0700
Delivery-date: Wed, 26 Sep 2007 15:51:31 -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 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] vt-d: Fix crash on x86/32., Xen patchbot-unstable <=