If the vaddr we consider is not at the start of a page, we could skip over (smaller, not contigous) areas. For example consider this segment of virtual memory: [ 2MB | 4k | 4k | ... ] Starting at 1MB offset, we would get a pgsize of 2MB so would skip straight over 1MB worth of 4k pages.
12 KiB
12 KiB