Function swap::page_handler::remove_memory
source · unsafe fn remove_memory(addr: usize, len: usize) -> Result<(), Error>
Expand description
Remove the memory range on the guest memory.
This is an alternative to [vm_memory::GuestMemory::remove_range()] when working with host addresses instead of guest addresses.
§Safety
The memory range must be on the guest memory.