Home
last modified time | relevance | path

Searched refs:VmcsFields (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dvcpu.rs2 VMCSRegion, VmcsFields, VmxEntryCtrl, VmxPrimaryExitCtrl, VmxPrimaryProcessBasedExecuteCtrl,
176 vmx_vmwrite(VmcsFields::GUEST_CR0 as u32, cr0.bits() as u64)?; in vmx_set_cr0()
184 vmx_vmwrite(VmcsFields::GUEST_CS_SELECTOR as u32, 0xf000)?; in vmcs_init_guest()
185 vmx_vmwrite(VmcsFields::GUEST_CS_BASE as u32, 0xffff0000)?; in vmcs_init_guest()
193 vmx_vmwrite(VmcsFields::GUEST_TR_SELECTOR as u32, 0)?; in vmcs_init_guest()
194 vmx_vmwrite(VmcsFields::GUEST_TR_BASE as u32, 0)?; in vmcs_init_guest()
195 vmx_vmwrite(VmcsFields::GUEST_TR_LIMIT as u32, 0xffff)?; in vmcs_init_guest()
196 vmx_vmwrite(VmcsFields::GUEST_TR_ACCESS_RIGHTS as u32, 0x008b)?; in vmcs_init_guest()
198 vmx_vmwrite(VmcsFields::GUEST_LDTR_SELECTOR as u32, 0)?; in vmcs_init_guest()
199 vmx_vmwrite(VmcsFields::GUEST_LDTR_BASE as u32, 0)?; in vmcs_init_guest()
[all …]
H A Dvmexit.rs1 use super::vmcs::{VmcsFields, VmxExitReason};
67 VmcsFields::CTRL_VM_ENTRY_INTR_INFO_FIELD as u32, in vmexit_vmx_instruction_executed()
70 vmx_vmwrite(VmcsFields::CTRL_VM_ENTRY_INSTR_LEN as u32, 0)?; in vmexit_vmx_instruction_executed()
71 …let rflags: u64 = vmx_vmread(VmcsFields::GUEST_RFLAGS as u32).unwrap() | 0x0001_0000; // set RF fl… in vmexit_vmx_instruction_executed()
72 vmx_vmwrite(VmcsFields::GUEST_RFLAGS as u32, rflags)?; in vmexit_vmx_instruction_executed()
188 let exit_reason = vmx_vmread(VmcsFields::VMEXIT_EXIT_REASON as u32).unwrap() as u32; in vmexit_handler()
190 let guest_rip = vmx_vmread(VmcsFields::GUEST_RIP as u32).unwrap(); in vmexit_handler()
193 let _guest_rflags = vmx_vmread(VmcsFields::GUEST_RFLAGS as u32).unwrap(); in vmexit_handler()
232 let exit_qualification = vmx_vmread(VmcsFields::VMEXIT_QUALIFICATION as u32).unwrap(); in vmexit_handler()
253 let info = vmx_vmread(VmcsFields::VMEXIT_INSTR_LEN as u32).unwrap() as u32; in vmexit_handler()
[all …]
H A Dseg.rs1 use crate::arch::kvm::VmcsFields::{
4 use crate::arch::kvm::VmcsFields::{
7 use crate::arch::kvm::VmcsFields::{
10 use crate::arch::kvm::VmcsFields::{
13 use crate::arch::kvm::VmcsFields::{
16 use crate::arch::kvm::VmcsFields::{
19 use crate::arch::kvm::VmcsFields::{
22 use crate::arch::kvm::VmcsFields::{
H A Dvmx_asm_wrapper.rs1 use super::vmcs::VmcsFields;
57 let host_rsp = VmcsFields::HOST_RSP as u32; in vmx_vmlaunch()
58 let host_rip = VmcsFields::HOST_RIP as u32; in vmx_vmlaunch()
H A Dmmu.rs14 vmcs::VmcsFields,
17 use crate::arch::kvm::vmx::mmu::VmcsFields::CTRL_EPTP_PTR;
87 let guest_cr3 = vmx_vmread(VmcsFields::GUEST_CR3 as u32).expect("Failed to read eptp"); in tdp_get_cr3()
H A Dvmcs.rs40 pub enum VmcsFields { enum
/DragonOS/kernel/src/arch/x86_64/kvm/
H A Dmod.rs1 use crate::arch::kvm::vmx::vmcs::VmcsFields;
73 let vmx_err = vmx_vmread(VmcsFields::VMEXIT_INSTR_ERR as u32).unwrap(); in kvm_arch_vcpu_ioctl_run()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs39 use super::kvm::vmx::vmcs::VmcsFields;
204 vmx_vmread(VmcsFields::CTRL_EPTP_PTR as u32).expect("Failed to read eptp"); in table()