Use arbitrary_virt_to_machine() to deal with ioremapped pmd updates.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
Jeremy Fitzhardinge 2011-03-24 14:26:51 +00:00
parent c86d8077b3
commit f05608d278

View 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);