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

[Xen-changelog] [xen-unstable] Initialize the entire hypercall page when running a ring0 kernel



# HG changeset patch
# User Ian.Campbell@xxxxxxxxxxxxx
# Node ID bb89ec7765c75321bb7ed0dca20e6c044da4d13c
# Parent  6bffed2aa78b2a4d213c4d70378135d33565dbc3
Initialize the entire hypercall page when running a ring0 kernel

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
---
 xen/arch/x86/x86_32/traps.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 6bffed2aa78b -r bb89ec7765c7 xen/arch/x86/x86_32/traps.c
--- a/xen/arch/x86/x86_32/traps.c       Mon Jun 12 17:56:20 2006 +0100
+++ b/xen/arch/x86/x86_32/traps.c       Mon Jun 12 18:23:42 2006 +0100
@@ -460,7 +460,7 @@ static void hypercall_page_initialise_ri
 
     /* Fill in all the transfer points with template machine code. */
 
-    for ( i = 0; i < NR_hypercalls; i++ )
+    for ( i = 0; i < (PAGE_SIZE / 32); i++ )
     {
         p = (char *)(hypercall_page + (i * 32));
 

_______________________________________________
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®.