rivosinc / salus

Risc-V hypervisor for TEE development
92 stars 25 forks source link

vm_pages: Only check subpages from a huge page are contiguous #316

Closed sboeuf closed 1 year ago

sboeuf commented 1 year ago

Both do_get_converted_pages() and get_shareable_pages() were checking the entire range covered by possibly multiple pages was made of contiguous pages. This is not necessary as the ony thing that's needed is to ensure subpages of each huge page are contiguous. This simplifies the requirement.