Use arbitrary_virt_to_machine() to deal with ioremapped pmd updates.
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 24 Mar 2011 14:26:51 +0000 (14:26 +0000)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 20 May 2011 21:26:39 +0000 (14:26 -0700)
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/mmu.c

index eb6d83a458c9cabf5f26e47dc17a8b268328095e..c03101e47425528c43217d6727287c76f1ba4c39 100644 (file)
@@ -233,7 +233,7 @@ static void xen_set_pmd_hyper(pmd_t *ptr, pmd_t val)
        xen_mc_batch();
 
        /* ptr may be ioremapped for 64-bit pagetable setup */
-       u.ptr = virt_to_machine(ptr).maddr;
+       u.ptr = arbitrary_virt_to_machine(ptr).maddr;
        u.val = pmd_val_ma(val);
        xen_extend_mmu_update(&u);