fn map(&self, hpaddr: Option<HostPhysAddr>, pt: &Mutex<impl RvmPageTable>) {
        let mut pt = pt.lock();
        for offset in (0..self.end_paddr - self.start_paddr).step_by(PAGE_SIZE) {
            if let Some(hpaddr) = hpaddr {
                pt.map(self.start_paddr + offset, hpaddr + offset, self.attr)
                    .unwrap();
            } else {
                pt.map(self.start_paddr + offset, 0, GuestMemoryAttr::empty())
                    .unwrap();
            }
        }
    }
/// Map all pages in the region to page table `pt` to 0 for delay map
Map all pages in the region to page table `pt` to 0 for delay map
Map all pages in the region to page table ` pt ` to 0 for delay map
fn map(&self, hpaddr: Option<HostPhysAddr>, pt: &Mutex<impl RvmPageTable>) {
        let mut pt = pt.lock();
        for offset in (0..self.end_paddr - self.start_paddr).step_by(PAGE_SIZE) {
            if let Some(hpaddr) = hpaddr {
                pt.map(self.start_paddr + offset, hpaddr + offset, self.attr)
                    .unwrap();
            } else {
                pt.map(self.start_paddr + offset, 0, GuestMemoryAttr::empty())
                    .unwrap();
            }
        }
    }
fn map ( & self , hpaddr : Option < HostPhysAddr > , pt : & Mutex < impl RvmPageTable > ) { let mut pt = pt . lock ( ) ; for offset in ( 0 .. self . end_paddr - self . start_paddr ) . step_by ( PAGE_SIZE ) { if let Some ( hpaddr ) = hpaddr { pt . map ( self . start_paddr + offset , hpaddr + offset , self . attr ) . unwrap ( ) ; } else { pt . map ( self . start_paddr + offset , 0 , GuestMemoryAttr :: empty ( ) ) . unwrap ( ) ; } } }
Map all pages in the region to page table `pt` to 0 for delay map
Map all pages in the region to page table ` pt ` to 0 for delay map
&self
hpaddr
Option<HostPhysAddr>
pt
&Mutex<impl RvmPageTable>