aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/x86_64/compat/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/arch/x86/x86_64/compat/traps.c')
-rw-r--r--xen/arch/x86/x86_64/compat/traps.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/arch/x86/x86_64/compat/traps.c b/xen/arch/x86/x86_64/compat/traps.c
index 03b90b2126..6e0ff11073 100644
--- a/xen/arch/x86/x86_64/compat/traps.c
+++ b/xen/arch/x86/x86_64/compat/traps.c
@@ -362,6 +362,9 @@ static void hypercall_page_initialise_ring1_kernel(void *hypercall_page)
for ( i = 0; i < (PAGE_SIZE / 32); i++ )
{
+ if ( i == __HYPERVISOR_iret )
+ continue;
+
p = (char *)(hypercall_page + (i * 32));
*(u8 *)(p+ 0) = 0xb8; /* mov $<i>,%eax */
*(u32 *)(p+ 1) = i;