Home
last modified time | relevance | path

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

/DragonOS/kernel/src/mm/
H A Dpage.rs196 let virt = vma.lock_irqsave().page_address(&page).unwrap(); in shrink_list() localVariable
198 mapper.unmap(virt, false).unwrap().flush(); in shrink_list()
233 let virt = vma.lock_irqsave().page_address(page).unwrap(); in page_writeback() localVariable
236 mapper.unmap(virt, false).unwrap().flush(); in page_writeback()
242 virt, in page_writeback()
243 mapper.get_entry(virt, 0).unwrap().flags().set_write(false), in page_writeback()
521 pub unsafe fn virt(&self) -> VirtAddr { in virt() method
538 return Some(self.virt().add(i * Arch::PAGE_ENTRY_SIZE)); in entry_virt()
1180 virt: VirtAddr, in map()
1198 return self.map_phys(virt, phys, flags); in map()
[all …]
H A 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()
H A Dmod.rs605 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys()
606 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys()
614 fn virt_is_valid(virt: VirtAddr) -> bool; in virt_is_valid()
/DragonOS/kernel/src/driver/net/
H A Ddma.rs26 let virt = MMArch::phys_2_virt(paddr).unwrap(); in dma_alloc() localVariable
28 core::ptr::write_bytes(virt.data() as *mut u8, 0, count.data() * MMArch::PAGE_SIZE); in dma_alloc()
35 .remap(virt, dma_flags) in dma_alloc()
/DragonOS/kernel/src/driver/virtio/
H A Dvirtio_impl.rs33 let virt = MMArch::phys_2_virt(paddr).unwrap(); in dma_alloc() localVariable
35 core::ptr::write_bytes(virt.data() as *mut u8, 0, count.data() * MMArch::PAGE_SIZE); in dma_alloc()
42 .remap(virt, dma_flags) in dma_alloc()
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs185 fn virt_is_valid(virt: VirtAddr) -> bool { in virt_is_valid()
186 virt.is_canonical() in virt_is_valid()
231 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys()
232 if virt >= KERNEL_BEGIN_VA && virt < KERNEL_END_VA { in virt_2_phys()
233 let r = KERNEL_BEGIN_PA + (virt - KERNEL_BEGIN_VA); in virt_2_phys()
237 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys()
/DragonOS/kernel/src/virt/kvm/
H A Dvm_dev.rs13 use crate::virt::kvm::host_mem::KvmUserspaceMemoryRegion;
14 use crate::virt::kvm::update_vm;
15 use crate::virt::kvm::vcpu_dev::LockedVcpuInode;
16 use crate::virt::kvm::vm;
H A Dvcpu_dev.rs13 use crate::virt::kvm::vcpu::Vcpu;
14 use crate::virt::kvm::vm;
H A Dkvm_dev.rs14 use crate::virt::kvm::vm_dev::LockedVmInode;
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs218 fn virt_is_valid(virt: VirtAddr) -> bool { in virt_is_valid()
219 return virt.is_canonical(); in virt_is_valid()
306 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys()
307 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys()
677 pub unsafe fn kernel_page_flags<A: MemoryManagementArch>(virt: VirtAddr) -> EntryFlags<A> { in kernel_page_flags()
680 if virt.data() >= info.kernel_code_start && virt.data() < info.kernel_code_end { in kernel_page_flags()
683 } else if virt.data() >= info.kernel_data_end && virt.data() < info.kernel_rodata_end { in kernel_page_flags()
/DragonOS/kernel/src/ipc/
H A Dsyscall.rs375 let mut virt = VirtPageFrame::new(vaddr); in shmat() localVariable
379 virt.virt_address(), in shmat()
394 virt = virt.next(); in shmat()
/DragonOS/
H A Dtriagebot.toml83 trigger_files = ["kernel/src/virt", "kernel/src/arch/x86_64/kvm"]
166 "/kernel/src/virt" = ["virtulization"]
/DragonOS/kernel/src/arch/x86_64/kvm/
H A Dmod.rs4 use crate::virt::kvm::vm;
/DragonOS/kernel/src/init/
H A Dinit.rs96 crate::virt::kvm::kvm_init(); in do_start_kernel()
/DragonOS/kernel/src/
H A Dlib.rs68 mod virt; module
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dvmexit.rs4 use crate::virt::kvm::vm;
H A Dmmu.rs5 virt::kvm::host_mem::{__gfn_to_pfn, kvm_vcpu_gfn_to_memslot, PAGE_MASK, PAGE_SHIFT},
H A Dvcpu.rs15 use crate::virt::kvm::vcpu::Vcpu;
16 use crate::virt::kvm::vm::Vm;
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md1410 * cpu virt-50%
1412 * single vcpu virt
1416 * CPU virt overall flow with bug
1420 * run CPU virt with bug
1448 * cpu virt refactor
1454 * add mem-virt workflow
1456 * add mem-virt