Lines Matching refs:u64
52 pub guest_phys_addr: u64, // 虚机内存区间起始物理地址
53 pub memory_size: u64, // 虚机内存区间大小
54 pub userspace_addr: u64, // 虚机内存区间对应的主机虚拟地址
59 pub base_gfn: u64, // 虚机内存区间起始物理页框号
60 pub npages: u64, // 虚机内存区间页数,即内存区间的大小
61 pub userspace_addr: u64, // 虚机内存区间对应的主机虚拟地址
89 fn __gfn_to_memslot(slots: KvmMemorySlots, gfn: u64) -> Option<KvmMemorySlot> { in __gfn_to_memslot()
101 fn __gfn_to_hva(slot: KvmMemorySlot, gfn: u64) -> u64 { in __gfn_to_hva() argument
102 return slot.userspace_addr + (gfn - slot.base_gfn) * (PAGE_SIZE as u64); in __gfn_to_hva()
106 gfn: u64, in __gfn_to_hva_many() argument
107 nr_pages: Option<&mut u64>, in __gfn_to_hva_many() argument
109 ) -> Result<u64, SystemError> { in __gfn_to_hva_many() argument
143 fn hva_to_pfn(addr: u64, _atomic: bool, _writable: &mut bool) -> Result<u64, SystemError> { in hva_to_pfn() argument
154 return Ok(hpa.data() as u64 >> PAGE_SHIFT); in hva_to_pfn()
160 return Ok(hpa.data() as u64 >> PAGE_SHIFT); in hva_to_pfn()
165 gfn: u64, in __gfn_to_pfn() argument
169 ) -> Result<u64, SystemError> { in __gfn_to_pfn() argument
178 pub fn kvm_vcpu_gfn_to_memslot(vcpu: &mut dyn Vcpu, gfn: u64) -> Option<KvmMemorySlot> { in kvm_vcpu_gfn_to_memslot()