/DragonOS/kernel/src/mm/ |
H A D | page.rs | 196 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 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()
|
H A D | mod.rs | 605 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 D | dma.rs | 26 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 D | virtio_impl.rs | 33 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 D | mod.rs | 185 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 D | vm_dev.rs | 13 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 D | vcpu_dev.rs | 13 use crate::virt::kvm::vcpu::Vcpu; 14 use crate::virt::kvm::vm;
|
H A D | kvm_dev.rs | 14 use crate::virt::kvm::vm_dev::LockedVmInode;
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | mod.rs | 218 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 D | syscall.rs | 375 let mut virt = VirtPageFrame::new(vaddr); in shmat() localVariable 379 virt.virt_address(), in shmat() 394 virt = virt.next(); in shmat()
|
/DragonOS/ |
H A D | triagebot.toml | 83 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 D | mod.rs | 4 use crate::virt::kvm::vm;
|
/DragonOS/kernel/src/init/ |
H A D | init.rs | 96 crate::virt::kvm::kvm_init(); in do_start_kernel()
|
/DragonOS/kernel/src/ |
H A D | lib.rs | 68 mod virt; module
|
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/ |
H A D | vmexit.rs | 4 use crate::virt::kvm::vm;
|
H A D | mmu.rs | 5 virt::kvm::host_mem::{__gfn_to_pfn, kvm_vcpu_gfn_to_memslot, PAGE_MASK, PAGE_SHIFT},
|
H A D | vcpu.rs | 15 use crate::virt::kvm::vcpu::Vcpu; 16 use crate::virt::kvm::vm::Vm;
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.9.md | 1410 * 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
|