Home
last modified time | relevance | path

Searched refs:cr4 (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dvcpu.rs274 controlregs::cr4().bits().try_into().unwrap() in vmcs_init_host()
369 controlregs::cr4().bits().try_into().unwrap() in vmcs_init()
589 let mut cr4 = unsafe { controlregs::cr4() }; in enable_vmx_operation() localVariable
590 cr4.set(controlregs::Cr4::CR4_ENABLE_VMX, true); in enable_vmx_operation()
591 unsafe { controlregs::cr4_write(cr4) }; in enable_vmx_operation()
645 let mut cr4 = unsafe { controlregs::cr4() }; in set_cr4_bits() localVariable
647 cr4 |= controlregs::Cr4::from_bits_truncate(ia32_vmx_cr4_fixed0 as usize); in set_cr4_bits()
648 cr4 &= controlregs::Cr4::from_bits_truncate(ia32_vmx_cr4_fixed1 as usize); in set_cr4_bits()
650 unsafe { controlregs::cr4_write(cr4) }; in set_cr4_bits()
/DragonOS/kernel/src/arch/x86_64/asm/
H A Dapu_boot.S73 mov %cr4, %eax
75 mov %eax, %cr4
H A Dhead.S214 mov %cr4, %eax
216 mov %eax, %cr4
495 movq %cr4, %rax
497 movq %rax, %cr4
525 movq %cr4, %rax
527 movq %rax, %cr4
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs177 if x86::controlregs::cr4().contains(Cr4::CR4_ENABLE_FSGSBASE) { in save_fsbase()
185 if x86::controlregs::cr4().contains(Cr4::CR4_ENABLE_FSGSBASE) { in save_gsbase()
193 if x86::controlregs::cr4().contains(Cr4::CR4_ENABLE_FSGSBASE) { in restore_fsbase()
201 if x86::controlregs::cr4().contains(Cr4::CR4_ENABLE_FSGSBASE) { in restore_gsbase()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dfault.rs82 && unsafe { x86::controlregs::cr4().contains(Cr4::CR4_ENABLE_SMEP) } in show_fault_oops()
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md1402 * 修改cr0,cr4,msr寄存器enable VMX operations