You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: make GuestMemoryRegion a GPA-to-GVA mapping
Change GuestMemoryRegion::HostBaseType from () to usize so that
GuestMemoryRegion becomes a proper mapping: host_region carries
guest physical addresses (GPA) and guest_region carries guest
virtual addresses (GVA). For identity-mapped regions both are
the same. For non-PIE code the Code region's guest_region is
overridden to the ELF-declared virtual address.
Remove the guest_virt_addr field from MemoryRegion_ since its
role is now served by the guest_region/host_region split in
GuestMemoryRegion.
Use checked_add for the code VA overlap check.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6f20a05d-6bee-4e2e-b320-12f8d9759bbc
Signed-off-by: cshung <3410332+cshung@users.noreply.github.com>
0 commit comments