From: Ian.Campbell@xensource.com Date: Mon, 12 Jun 2006 17:23:42 +0000 (+0100) Subject: Initialize the entire hypercall page when running a ring0 kernel X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15972^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=94850192ba254eb54d1faaebcc69cf3fc4cfa274;p=xen.git Initialize the entire hypercall page when running a ring0 kernel Signed-off-by: Ian Campbell --- diff --git a/xen/arch/x86/x86_32/traps.c b/xen/arch/x86/x86_32/traps.c index 6fce183a17..eb5beb44ad 100644 --- a/xen/arch/x86/x86_32/traps.c +++ b/xen/arch/x86/x86_32/traps.c @@ -460,7 +460,7 @@ static void hypercall_page_initialise_ring0_kernel(void *hypercall_page) /* 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));