Lines Matching refs:u64
50 pub vmxon_region_physical_address: u64, // vmxon需要该地址
56 pub vmcs_region_physical_address: u64, // vmptrld, vmclear需要该地址
58 pub msr_bitmap_physical_address: u64,
108 unsafe { MMArch::virt_2_phys(vaddr).unwrap().data() as u64 } in alloc()
112 unsafe { MMArch::virt_2_phys(vaddr).unwrap().data() as u64 } in alloc()
116 unsafe { MMArch::virt_2_phys(vaddr).unwrap().data() as u64 } in alloc()
176 vmx_vmwrite(VmcsFields::GUEST_CR0 as u32, cr0.bits() as u64)?; in vmx_set_cr0()
220 vmx_vmwrite(VmcsFields::GUEST_CR0 as u32, cr0.bits() as u64)?; in vmcs_init_guest()
231 vmx_vmwrite(VmcsFields::GUEST_VMCS_LINK_PTR as u32, u64::MAX)?; in vmcs_init_guest()
254 self.vcpu_ctx.regs[VcpuRegIndex::Rsp as usize] as u64, in vmcs_init_guest()
256 vmx_vmwrite(VmcsFields::GUEST_RIP as u32, self.vcpu_ctx.rip as u64)?; in vmcs_init_guest()
257 debug!("vmcs init guest rip: {:#x}", self.vcpu_ctx.rip as u64); in vmcs_init_guest()
260 self.vcpu_ctx.regs[VcpuRegIndex::Rsp as usize] as u64 in vmcs_init_guest()
310 let mut pseudo_descriptpr: x86::dtables::DescriptorTablePointer<u64> = Default::default(); in vmcs_init_host()
323 pseudo_descriptpr.base as usize as u64, in vmcs_init_host()
326 let mut pseudo_descriptpr: x86::dtables::DescriptorTablePointer<u64> = in vmcs_init_host()
329 pseudo_descriptpr.base as usize as u64 in vmcs_init_host()
357 adjust_vmx_pinbased_controls() as u64, in vmcs_init()
373 adjust_vmx_entry_controls() as u64, in vmcs_init()
377 adjust_vmx_exit_controls() as u64, in vmcs_init()
381 adjust_vmx_primary_process_exec_controls() as u64, in vmcs_init()
385 adjust_vmx_secondary_process_exec_controls() as u64, in vmcs_init()
403 set_eptp_fn(ept_root_hpa.data() as u64)?; in kvm_mmu_load()
404 self.mmu.root_hpa = ept_root_hpa.data() as u64; in kvm_mmu_load()
405 debug!("ept_root_hpa:{:x}!", ept_root_hpa.data() as u64); in kvm_mmu_load()
466 pub fn get_segment_base(gdt_base: *const u64, gdt_size: u16, segment_selector: u16) -> u64 { in get_segment_base() argument
481 return virtaddr.data() as u64; in get_segment_base()
606 const VMX_LOCK_BIT: u64 = 1 << 0; in set_lock_bit()
607 const VMXON_OUTSIDE_SMX: u64 = 1 << 2; in set_lock_bit()