diff options
author | Yonghua Huang <[email protected]> | 2022-02-28 05:22:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-03-18 13:49:56 +0100 |
commit | 8a6e85f75a83d16a71077e41f2720c691f432002 (patch) | |
tree | c75b22c771477f48384fb59e9a8117b860746c9b /net/lapb/lapb_in.c | |
parent | fbeac3dfc762871e72676a065ddd13e5087f26ab (diff) |
virt: acrn: obtain pa from VMA with PFNMAP flag
acrn_vm_ram_map can't pin the user pages with VM_PFNMAP flag
by calling get_user_pages_fast(), the PA(physical pages)
may be mapped by kernel driver and set PFNMAP flag.
This patch fixes logic to setup EPT mapping for PFN mapped RAM region
by checking the memory attribute before adding EPT mapping for them.
Fixes: 88f537d5e8dd ("virt: acrn: Introduce EPT mapping management")
Signed-off-by: Yonghua Huang <[email protected]>
Signed-off-by: Fei Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions