ia64/xen-unstable

changeset 16535:c67d024fdd2d

x86_64: Do not leak trampoline mapping into dom0's initial address space.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Dec 05 13:49:19 2007 +0000 (2007-12-05)
parents 671ef298d491
children 89e7031e153c
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Wed Dec 05 11:08:07 2007 +0000
     1.2 +++ b/xen/arch/x86/domain_build.c	Wed Dec 05 13:49:19 2007 +0000
     1.3 @@ -646,6 +646,7 @@ int __init construct_dom0(
     1.4          l4start = l4tab = page_to_virt(page);
     1.5      }
     1.6      copy_page(l4tab, idle_pg_table);
     1.7 +    l4tab[0] = l4e_empty(); /* zap trampoline mapping */
     1.8      l4tab[l4_table_offset(LINEAR_PT_VIRT_START)] =
     1.9          l4e_from_paddr(__pa(l4start), __PAGE_HYPERVISOR);
    1.10      l4tab[l4_table_offset(PERDOMAIN_VIRT_START)] =