Searched refs:vcpu (Results 1 – 11 of 11) sorted by relevance
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/vmx/ |
D | mmu.rs | 13 vcpu::VmxVcpu, 67 vcpu: &mut VmxVcpu, 109 vcpu: &mut VmxVcpu, in tdp_page_fault() 117 mmu_topup_memory_caches(vcpu)?; in tdp_page_fault() 125 let pfn = mmu_gfn_to_pfn_fast(vcpu, gpa, prefault, gfn, write == 0, &mut map_writable)?; in tdp_page_fault() 127 __direct_map(vcpu, gpa, write, map_writable, level, gfn, pfn, prefault)?; in tdp_page_fault() 172 pub fn kvm_mmu_setup(vcpu: &Mutex<VmxVcpu>) { in kvm_mmu_setup() 174 init_kvm_tdp_mmu(vcpu); in kvm_mmu_setup() 182 pub fn init_kvm_tdp_mmu(vcpu: &Mutex<VmxVcpu>) { in init_kvm_tdp_mmu() 183 let context = &mut vcpu.lock().mmu; in init_kvm_tdp_mmu() [all …]
|
D | vmexit.rs | 240 let vcpu = kvm.vcpu[0].clone(); in vmexit_handler() localVariable 242 let kvm_ept_page_fault = vcpu.lock().mmu.page_fault.unwrap(); in vmexit_handler() 243 kvm_ept_page_fault(&mut (*vcpu.lock()), gpa, error_code as u32, false) in vmexit_handler()
|
D | mod.rs | 5 pub mod vcpu; module
|
D | vcpu.rs | 15 use crate::virt::kvm::vcpu::Vcpu;
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/ |
D | mod.rs | 16 use self::vmx::vcpu::VmxVcpu; 66 let vcpu = VmxVcpu::new(id, vm(0).unwrap()).unwrap(); in kvm_arch_vcpu_create() localVariable 67 return Ok(Arc::new(Mutex::new(vcpu))); in kvm_arch_vcpu_create() 70 pub fn kvm_arch_vcpu_setup(vcpu: &Mutex<VmxVcpu>) -> Result<(), SystemError> { in kvm_arch_vcpu_setup() 71 kvm_vcpu_mtrr_init(vcpu)?; in kvm_arch_vcpu_setup() 72 kvm_mmu_setup(vcpu); in kvm_arch_vcpu_setup()
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | vcpu_dev.rs | 1 use crate::arch::kvm::vmx::vcpu::VcpuContextFrame; 11 use crate::virt::kvm::vcpu::Vcpu; 159 let vcpu = vm(0).unwrap().vcpu[0].clone(); in ioctl() localVariable 160 vcpu.lock().virtualize_cpu()?; in ioctl() 161 KVMArch::kvm_arch_vcpu_ioctl_run(vcpu.as_ref())?; in ioctl() 183 let vcpu = vm(0).unwrap().vcpu[0].clone(); in ioctl() localVariable 184 vcpu.lock().set_regs(kvm_regs)?; in ioctl()
|
D | vm.rs | 1 use crate::arch::kvm::vmx::vcpu::VmxVcpu; 23 pub vcpu: Vec<Arc<Mutex<VmxVcpu>>>, field 33 let vcpu = Vec::new(); in new() localVariable 38 vcpu, in new()
|
D | vm_dev.rs | 211 let vcpu = KVMArch::kvm_arch_vcpu_create(id).unwrap(); in kvm_vm_ioctl_create_vcpu() localVariable 212 KVMArch::kvm_arch_vcpu_setup(vcpu.as_ref())?; in kvm_vm_ioctl_create_vcpu() 215 current_vm.vcpu.push(vcpu); in kvm_vm_ioctl_create_vcpu()
|
D | host_mem.rs | 3 use super::{vcpu::Vcpu, vm}; 178 pub fn kvm_vcpu_gfn_to_memslot(vcpu: &mut dyn Vcpu, gfn: u64) -> Option<KvmMemorySlot> { in kvm_vcpu_gfn_to_memslot() 179 return __gfn_to_memslot(kvm_vcpu_memslots(vcpu), gfn); in kvm_vcpu_gfn_to_memslot()
|
D | mod.rs | 11 pub mod vcpu; module
|
/DragonOS-0.1.9/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.9.md | 1411 * single vcpu virt 1459 * add vcpu ioctl set_regs
|