-
由 Yonghua Huang 提交于
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: NYonghua Huang <yonghua.huang@intel.com> Signed-off-by: NFei Li <fei1.li@intel.com> Link: https://lore.kernel.org/r/20220228022212.419406-1-yonghua.huang@intel.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
8a6e85f7