From: "Jan Beulich" Subject: [PATCH] x86-linux: Use MULTI_UVMxxx_INDEX where possible Date: Thu, 27 Jul 2006 15:17:15 +0200 Message-ID: <44C8D8FB.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part93B612CB.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --=__Part93B612CB.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Signed-off-by: Jan Beulich --=__Part93B612CB.0__= Content-Type: text/plain; name="xenlinux-x86-multi-uvm-index.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xenlinux-x86-multi-uvm-index.patch" Subject: Use MULTI_UVMxxx_INDEX where possible Index: 2006-07-27/include/asm-i386/mach-xen/asm/hypervisor.h =================================================================== --- 2006-07-27.orig/include/asm-i386/mach-xen/asm/hypervisor.h 2006-05-22 12:18:55.000000000 +0200 +++ 2006-07-27/include/asm-i386/mach-xen/asm/hypervisor.h 2006-07-27 15:02:59.230960272 +0200 @@ -187,16 +187,14 @@ MULTI_update_va_mapping( mcl->args[0] = va; #if defined(CONFIG_X86_64) mcl->args[1] = new_val.pte; - mcl->args[2] = flags; #elif defined(CONFIG_X86_PAE) mcl->args[1] = new_val.pte_low; mcl->args[2] = new_val.pte_high; - mcl->args[3] = flags; #else mcl->args[1] = new_val.pte_low; mcl->args[2] = 0; - mcl->args[3] = flags; #endif + mcl->args[MULTI_UVMFLAGS_INDEX] = flags; } static inline void @@ -208,19 +206,15 @@ MULTI_update_va_mapping_otherdomain( mcl->args[0] = va; #if defined(CONFIG_X86_64) mcl->args[1] = new_val.pte; - mcl->args[2] = flags; - mcl->args[3] = domid; #elif defined(CONFIG_X86_PAE) mcl->args[1] = new_val.pte_low; mcl->args[2] = new_val.pte_high; - mcl->args[3] = flags; - mcl->args[4] = domid; #else mcl->args[1] = new_val.pte_low; mcl->args[2] = 0; - mcl->args[3] = flags; - mcl->args[4] = domid; #endif + mcl->args[MULTI_UVMFLAGS_INDEX] = flags; + mcl->args[MULTI_UVMDOMID_INDEX] = domid; } #endif /* __HYPERVISOR_H__ */ --=__Part93B612CB.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part93B612CB.0__=--