Skip to contentSkip to conversation

mm.c: use caching variable

PATCH New Christoph Egger 1 participant 1 message Jun 17, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm.c: use caching variable

Hi!

Attached patch uses cached domain variable rather
dereferencing "current" yet another time.

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
xen/arch/x86/mm.c +1 -1
diff -r 7e00ebe2b7fd xen/arch/x86/mm.c
@@ -3086,7 +3086,7 @@ int do_update_va_mapping(unsigned long v
     if ( unlikely(!access_ok(va, 1) && !paging_mode_external(d)) )
         return -EINVAL;
 
-    rc = xsm_update_va_mapping(current->domain, val);
+    rc = xsm_update_va_mapping(d, val);
     if ( rc )
         return rc;
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel