mirror of https://gitee.com/openkylin/linux.git
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:
parent
c86d8077b3
commit
f05608d278
|
@ -233,7 +233,7 @@ static void xen_set_pmd_hyper(pmd_t *ptr, pmd_t val)
|
||||||
xen_mc_batch();
|
xen_mc_batch();
|
||||||
|
|
||||||
/* ptr may be ioremapped for 64-bit pagetable setup */
|
/* 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);
|
u.val = pmd_val_ma(val);
|
||||||
xen_extend_mmu_update(&u);
|
xen_extend_mmu_update(&u);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue