aboutsummaryrefslogtreecommitdiff
path: root/crypto/842.c
diff options
context:
space:
mode:
authorYonghua Huang2022-02-28 05:22:12 +0300
committerGreg Kroah-Hartman2022-03-18 13:49:56 +0100
commit8a6e85f75a83d16a71077e41f2720c691f432002 (patch)
treec75b22c771477f48384fb59e9a8117b860746c9b /crypto/842.c
parentfbeac3dfc762871e72676a065ddd13e5087f26ab (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 <yonghua.huang@intel.com> Signed-off-by: Fei Li <fei1.li@intel.com> Link: https://lore.kernel.org/r/20220228022212.419406-1-yonghua.huang@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/842.c')
0 files changed, 0 insertions, 0 deletions