Home
last modified time | relevance | path

Searched refs:cr0 (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dvcpu.rs172 pub fn vmx_set_cr0(cr0: X86_CR0) -> Result<(), SystemError> { in vmx_set_cr0()
173 let mut hw_cr0 = cr0 & !(X86_CR0::CR0_NW | X86_CR0::CR0_CD); in vmx_set_cr0()
176 vmx_vmwrite(VmcsFields::GUEST_CR0 as u32, cr0.bits() as u64)?; in vmx_set_cr0()
217 let cr0 = X86_CR0::CR0_NW | X86_CR0::CR0_CD | X86_CR0::CR0_ET; in vmcs_init_guest() localVariable
218 Self::vmx_set_cr0(cr0)?; in vmcs_init_guest()
220 vmx_vmwrite(VmcsFields::GUEST_CR0 as u32, cr0.bits() as u64)?; in vmcs_init_guest()
270 controlregs::cr0().bits().try_into().unwrap() in vmcs_init_host()
366 controlregs::cr0().bits().try_into().unwrap() in vmcs_init()
631 let mut cr0 = unsafe { controlregs::cr0() }; in set_cr0_bits() localVariable
633 cr0 |= controlregs::Cr0::from_bits_truncate(ia32_vmx_cr0_fixed0 as usize); in set_cr0_bits()
[all …]
/DragonOS/kernel/src/arch/x86_64/asm/
H A Dhead.S260 mov %cr0, %eax
262 mov %eax, %cr0
491 movq %cr0, %rax
494 movq %rax, %cr0
521 movq %cr0, %rax
524 movq %rax, %cr0
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md1402 * 修改cr0,cr4,msr寄存器enable VMX operations