Home
last modified time | relevance | path

Searched refs:virt (Results 1 – 17 of 17) sorted by relevance

/DragonOS-0.1.9/kernel/src/mm/
Dpage.rs79 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 …]
Dearly_ioremap.rs152 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()
Dmod.rs555 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/
Dmod.rs120 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/
Ddma.rs24 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/
Dvirtio_impl.rs31 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/
Dvm_dev.rs11 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;
Dvcpu_dev.rs11 use crate::virt::kvm::vcpu::Vcpu;
12 use crate::virt::kvm::vm;
Dkvm_dev.rs13 use crate::virt::kvm::vm_dev::LockedVmInode;
/DragonOS-0.1.9/kernel/src/arch/x86_64/mm/
Dmod.rs206 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/
Dmod.rs4 use crate::virt::kvm::vm;
/DragonOS-0.1.9/kernel/src/init/
Dinit.rs85 crate::virt::kvm::kvm_init(); in do_start_kernel()
/DragonOS-0.1.9/kernel/src/
Dlib.rs66 mod virt; module
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/vmx/
Dmmu.rs6 virt::kvm::host_mem::{__gfn_to_pfn, kvm_vcpu_gfn_to_memslot, PAGE_MASK, PAGE_SHIFT},
Dvmexit.rs4 use crate::virt::kvm::vm;
Dvcpu.rs15 use crate::virt::kvm::vcpu::Vcpu;
16 use crate::virt::kvm::vm::Vm;
/DragonOS-0.1.9/docs/community/ChangeLog/V0.1.x/
DV0.1.9.md1409 * 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