]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
x86_64: Do not leak trampoline mapping into dom0's initial address
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 17:31:45 +0000 (17:31 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 17:31:45 +0000 (17:31 +0000)
space.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   16535:c67d024fdd2d3527ccd08e513ca3ed3c9dcb4b68
xen-unstable date:        Wed Dec 05 13:49:19 2007 +0000

xen/arch/x86/domain_build.c

index d651b215308cbeff4acd33b973e6efd5fcebd679..9684be0881f7cca01eebc0c0d5a76f8f72496df9 100644 (file)
@@ -642,6 +642,7 @@ int __init construct_dom0(
         l4start = l4tab = page_to_virt(page);
     }
     copy_page(l4tab, idle_pg_table);
+    l4tab[0] = l4e_empty(); /* zap trampoline mapping */
     l4tab[l4_table_offset(LINEAR_PT_VIRT_START)] =
         l4e_from_paddr(__pa(l4start), __PAGE_HYPERVISOR);
     l4tab[l4_table_offset(PERDOMAIN_VIRT_START)] =