/DragonOS-0.1.9/kernel/src/mm/ |
D | page.rs | 79 pub unsafe fn virt(&self) -> VirtAddr { in virt() method 96 return Some(self.virt().add(i * Arch::PAGE_ENTRY_SIZE)); in entry_virt() 588 virt: VirtAddr, in map() 594 return self.map_phys(virt, phys, flags); in map() 600 virt: VirtAddr, in map_phys() 605 if !(virt.check_aligned(Arch::PAGE_SIZE) && phys.check_aligned(Arch::PAGE_SIZE)) { in map_phys() 608 virt, in map_phys() 614 let virt = VirtAddr::new(virt.data() & (!Arch::PAGE_NEGATIVE_MASK)); in map_phys() localVariable 622 let i = table.index_of(virt)?; in map_phys() 628 kwarn!("Page {:?} already mapped", virt); in map_phys() [all …]
|
D | early_ioremap.rs | 152 pub fn unmap(virt: VirtAddr) -> Result<(), SystemError> { in unmap() 153 if virt < MMArch::FIXMAP_START_VADDR || virt >= MMArch::FIXMAP_END_VADDR { in unmap() 167 if vaddr_start <= virt && virt < vaddr_end { in unmap()
|
D | mod.rs | 555 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() 556 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys() 564 fn virt_is_valid(virt: VirtAddr) -> bool; in virt_is_valid()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/mm/ |
D | mod.rs | 120 fn virt_is_valid(virt: crate::mm::VirtAddr) -> bool { in virt_is_valid() 121 virt.is_canonical() in virt_is_valid() 147 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() 148 if virt >= KERNEL_BEGIN_VA && virt < KERNEL_END_VA { in virt_2_phys() 149 let r = KERNEL_BEGIN_PA + (virt - KERNEL_BEGIN_VA); in virt_2_phys() 153 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys()
|
/DragonOS-0.1.9/kernel/src/driver/net/ |
D | dma.rs | 24 let virt = MMArch::phys_2_virt(paddr).unwrap(); in dma_alloc() localVariable 26 core::ptr::write_bytes(virt.data() as *mut u8, 0, count.data() * MMArch::PAGE_SIZE); in dma_alloc() 33 .remap(virt, dma_flags) in dma_alloc()
|
/DragonOS-0.1.9/kernel/src/driver/virtio/ |
D | virtio_impl.rs | 31 let virt = MMArch::phys_2_virt(paddr).unwrap(); in dma_alloc() localVariable 33 core::ptr::write_bytes(virt.data() as *mut u8, 0, count.data() * MMArch::PAGE_SIZE); in dma_alloc() 40 .remap(virt, dma_flags) in dma_alloc()
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | vm_dev.rs | 11 use crate::virt::kvm::host_mem::KvmUserspaceMemoryRegion; 12 use crate::virt::kvm::update_vm; 13 use crate::virt::kvm::vcpu_dev::LockedVcpuInode; 14 use crate::virt::kvm::vm;
|
D | vcpu_dev.rs | 11 use crate::virt::kvm::vcpu::Vcpu; 12 use crate::virt::kvm::vm;
|
D | kvm_dev.rs | 13 use crate::virt::kvm::vm_dev::LockedVmInode;
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 206 fn virt_is_valid(virt: VirtAddr) -> bool { in virt_is_valid() 207 return virt.is_canonical(); in virt_is_valid() 291 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() 292 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys() 628 pub unsafe fn kernel_page_flags<A: MemoryManagementArch>(virt: VirtAddr) -> PageFlags<A> { in kernel_page_flags() 631 if virt.data() >= info.kernel_code_start && virt.data() < info.kernel_code_end { in kernel_page_flags() 634 } else if virt.data() >= info.kernel_data_end && virt.data() < info.kernel_rodata_end { in kernel_page_flags()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/ |
D | mod.rs | 4 use crate::virt::kvm::vm;
|
/DragonOS-0.1.9/kernel/src/init/ |
D | init.rs | 85 crate::virt::kvm::kvm_init(); in do_start_kernel()
|
/DragonOS-0.1.9/kernel/src/ |
D | lib.rs | 66 mod virt; module
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/vmx/ |
D | mmu.rs | 6 virt::kvm::host_mem::{__gfn_to_pfn, kvm_vcpu_gfn_to_memslot, PAGE_MASK, PAGE_SHIFT},
|
D | vmexit.rs | 4 use crate::virt::kvm::vm;
|
D | vcpu.rs | 15 use crate::virt::kvm::vcpu::Vcpu; 16 use crate::virt::kvm::vm::Vm;
|
/DragonOS-0.1.9/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.9.md | 1409 * cpu virt-50% 1411 * single vcpu virt 1415 * CPU virt overall flow with bug 1419 * run CPU virt with bug 1447 * cpu virt refactor 1453 * add mem-virt workflow 1455 * add mem-virt
|