diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2007-12-05 13:49:19 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2007-12-05 13:49:19 +0000 |
commit | ea4f3a408e5e9993a9292eed301abd0b41dab74d (patch) | |
tree | ffed56320da5c2b16d1212cb9b9f3350492159d8 | |
parent | c5f554d5c14726ad02f8539a8af352d70a8be733 (diff) | |
download | xen-ea4f3a408e5e9993a9292eed301abd0b41dab74d.tar.gz xen-ea4f3a408e5e9993a9292eed301abd0b41dab74d.tar.bz2 xen-ea4f3a408e5e9993a9292eed301abd0b41dab74d.zip |
x86_64: Do not leak trampoline mapping into dom0's initial address space.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
-rw-r--r-- | xen/arch/x86/domain_build.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c index f530e27f57..7279f20075 100644 --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domain_build.c @@ -646,6 +646,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)] = |