Skip to content
Commit 8a6e85f7 authored by Yonghua Huang's avatar Yonghua Huang Committed by Greg Kroah-Hartman
Browse files

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: 88f537d5 ("virt: acrn: Introduce EPT mapping management")
Signed-off-by: default avatarYonghua Huang <yonghua.huang@intel.com>
Signed-off-by: default avatarFei Li <fei1.li@intel.com>
Link: https://lore.kernel.org/r/20220228022212.419406-1-yonghua.huang@intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fbeac3df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment