On Wed, May 18, 2022 at 04:02:16PM +0300, Yonghua Huang wrote:
acrn_vm_memseg_unmap can't do EPT unmapping for memory type of ACRN_MEMMAP_RAM, while such kind of unmapping is required for case that user memory pages are taggeg with VM_PFNMAP flag.
This patch fixes logic to support EPT unmapping for memory region with type of ACRN_MEMMAP_RAM.
Hi Yonghua
IMHO, you could only unmap the ACRN_MEMMAP_RAM memory region which Page-ranges managed without "struct page", just pure PFN (VM_PFNMAP set in vm_flags).