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-devel

[Xen-devel] [PATCH][VT] No DISALLOW pte bit check for VMX domain

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][VT] No DISALLOW pte bit check for VMX domain
From: "Li, Chengyuan" <chengyuan.li@xxxxxxxxx>
Date: Mon, 12 Sep 2005 15:05:27 +0800
Delivery-date: Mon, 12 Sep 2005 07:03:27 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcW3aFqiO4Ank/PBRCa8WZR1RuYuUQ==
Thread-topic: [PATCH][VT] No DISALLOW pte bit check for VMX domain
Hi,

VMX domain don't need DISALLOW pte bit checking.

Signed-off-by: Chengyuan Li <chengyuan.li@xxxxxxxxx>     

diff -r 51fa7e0bd968 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Sat Sep 10 03:34:52 2005
+++ b/xen/arch/x86/mm.c Mon Sep 12 13:48:10 2005
@@ -442,7 +442,7 @@
     if ( !(l1e_get_flags(l1e) & _PAGE_PRESENT) )
         return 1;

-    if ( unlikely(l1e_get_flags(l1e) & L1_DISALLOW_MASK) )
+    if ( !shadow_mode_refcounts(d) && unlikely(l1e_get_flags(l1e) &
L1_DISALLOW_MASK) )
     {
         MEM_LOG("Bad L1 flags %x", l1e_get_flags(l1e) &
L1_DISALLOW_MASK);
         return 0;

Thanks,
Chengyuan


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

<Prev in Thread] Current Thread [Next in Thread>