aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/mm.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-01-23 14:03:25 +0100
committerJan Beulich <jbeulich@suse.com>2013-01-23 14:03:25 +0100
commita2fd3bc4d44f1fca34fcfcff843b1eb940dc2c9a (patch)
tree169e29c47186cc749f0f60bb2d1d854d0c6400f7 /xen/arch/x86/mm.c
parent3fc87c0c65f83cc613726b2c33942a19715f4289 (diff)
downloadxen-a2fd3bc4d44f1fca34fcfcff843b1eb940dc2c9a.tar.gz
xen-a2fd3bc4d44f1fca34fcfcff843b1eb940dc2c9a.tar.bz2
xen-a2fd3bc4d44f1fca34fcfcff843b1eb940dc2c9a.zip
x86: introduce virt_to_xen_l1e()
Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/mm.c')
-rw-r--r--xen/arch/x86/mm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c
index fa5fbbceaf..9c289e4221 100644
--- a/xen/arch/x86/mm.c
+++ b/xen/arch/x86/mm.c
@@ -5204,12 +5204,9 @@ int map_pages_to_xen(
/* Normal page mapping. */
if ( !(l2e_get_flags(*pl2e) & _PAGE_PRESENT) )
{
- pl1e = alloc_xen_pagetable();
+ pl1e = virt_to_xen_l1e(virt);
if ( pl1e == NULL )
return -ENOMEM;
- clear_page(pl1e);
- l2e_write(pl2e, l2e_from_pfn(virt_to_mfn(pl1e),
- __PAGE_HYPERVISOR));
}
else if ( l2e_get_flags(*pl2e) & _PAGE_PSE )
{