Lines Matching refs:u64
50 pub guest_phys_addr: u64, // 虚机内存区间起始物理地址
51 pub memory_size: u64, // 虚机内存区间大小
52 pub userspace_addr: u64, // 虚机内存区间对应的主机虚拟地址
57 pub base_gfn: u64, // 虚机内存区间起始物理页框号
58 pub npages: u64, // 虚机内存区间页数,即内存区间的大小
59 pub userspace_addr: u64, // 虚机内存区间对应的主机虚拟地址
87 fn __gfn_to_memslot(slots: KvmMemorySlots, gfn: u64) -> Option<KvmMemorySlot> { in __gfn_to_memslot()
99 fn __gfn_to_hva(slot: KvmMemorySlot, gfn: u64) -> u64 { in __gfn_to_hva() argument
100 return slot.userspace_addr + (gfn - slot.base_gfn) * (PAGE_SIZE as u64); in __gfn_to_hva()
104 gfn: u64, in __gfn_to_hva_many() argument
105 nr_pages: Option<&mut u64>, in __gfn_to_hva_many() argument
107 ) -> Result<u64, SystemError> { in __gfn_to_hva_many() argument
141 fn hva_to_pfn(addr: u64, _atomic: bool, _writable: &mut bool) -> Result<u64, SystemError> { in hva_to_pfn() argument
152 return Ok(hpa.data() as u64 >> PAGE_SHIFT); in hva_to_pfn()
158 return Ok(hpa.data() as u64 >> PAGE_SHIFT); in hva_to_pfn()
163 gfn: u64, in __gfn_to_pfn() argument
167 ) -> Result<u64, SystemError> { in __gfn_to_pfn() argument
176 pub fn kvm_vcpu_gfn_to_memslot(vcpu: &mut dyn Vcpu, gfn: u64) -> Option<KvmMemorySlot> { in kvm_vcpu_gfn_to_memslot()