pub fn shim_phys_to_host_virt<U>(&self, shim_phys: PhysAddr) -> HostVirtAddr<U> {
        let this = self.read();

        let virt_addr = this.get_virt_addr(shim_phys).unwrap_or_else(|| {
            panic!(
                "Trying to get virtual offset from unmmapped location {:#?}",
                shim_phys
            )
        });

        unsafe { HostVirtAddr::new(Address::<u64, U>::unchecked(virt_addr.as_u64() as _)) }
    }
/// Translate a shim physical unencrypted address to a host virtual address
Translate a shim physical unencrypted address to a host virtual address
Translate a shim physical unencrypted address to a host virtual address
pub fn shim_phys_to_host_virt<U>(&self, shim_phys: PhysAddr) -> HostVirtAddr<U> {
        let this = self.read();
        let virt_addr = this.get_virt_addr(shim_phys).unwrap_or_else(|| {
            panic!(
                "Trying to get virtual offset from unmmapped location {:#?}",
                shim_phys
            )
        });
        unsafe { HostVirtAddr::new(Address::<u64, U>::unchecked(virt_addr.as_u64() as _)) }
    }
pub fn shim_phys_to_host_virt < U > ( & self , shim_phys : PhysAddr ) -> HostVirtAddr < U > { let this = self . read ( ) ; let virt_addr = this . get_virt_addr ( shim_phys ) . unwrap_or_else ( | | { panic ! ( " " shim_phys ) } ) ; unsafe { HostVirtAddr :: new ( Address :: < u64 , U > :: unchecked ( virt_addr . as_u64 ( ) as _ ) ) } }
Translate a shim physical unencrypted address to a host virtual address
Translate a shim physical unencrypted address to a host virtual address
&self
shim_phys
PhysAddr
&self
shim_phys
PhysAddr